Homepage › Forums › RetroPie Project › New to RetroPie? Start Here! › How to Auto Mount sda1? › Reply To: How to Auto Mount sda1?
I am trying to follow this guide:
http://linuxconfig.org/automatically-mount-usb-external-drive-with-autofs
replacing “udevinfo -a -p /sys/block/sdc/ | grep model” with “udevadm info -a -n /dev/sda1”
I get down to:
# /etc/init.d/udev restart
Stopping the hotplug events dispatcher: udevd.
Starting the hotplug events dispatcher: udevd.
Plug in external USB and your new base name is:
ls -l /dev/Iomega*
lrwxrwxrwx 1 root root 3 2011-02-23 12:36 /dev/Iomega -> sdc
lrwxrwxrwx 1 root root 12 2011-02-23 12:36 /dev/Iomega0 -> bsg/14:0:0:0
lrwxrwxrwx 1 root root 4 2011-02-23 12:36 /dev/Iomega1 -> sdc1
lrwxrwxrwx 1 root root 3 2011-02-23 12:36 /dev/Iomega3 -> sg3
Please note that /dev/Iomega1 points to a /dev/sdc1, which is exactly the partition we are interested in and we use it next to configure autofs.
——–
And I do not have the custom directory in /dev/
As a work around I updated to xbmc.sh script to read:
#!/bin/bash
sudo mount /dev/sda1 /mnt && kodi
Though I’d prefer if ALL of my drives auto mounted.