I am pretty new to Raspberry Pi and I am trying to permanently mount an external HD. I am running Raspian on a Pi 3. I have installed Plex and intend to use this drive, which already contains my media, as the drive for the server.
The drive is this type:
/dev/sda1: LABEL="extsmall" UUID="3721afc7-bdb1-4979-8349-abc18f378896" TYPE="ext4" PARTUUID="b71d3e39-01"
I ran the sudo ls -l /dev/disk/by-uuid/
which returned this:
lrwxrwxrwx 1 root root 15 Mar 28 22:01 3461-3439 -> ../../mmcblk0p1
lrwxrwxrwx 1 root root 10 Mar 28 22:01 3721afc7-bdb1-4979-8349-abc18f378896 -> ../../sda1
lrwxrwxrwx 1 root root 15 Mar 28 22:01 540aa4bc-b2c7-4894-9f03-ffc7aabfc110 -> ../../mmcblk0p5
lrwxrwxrwx 1 root root 15 Mar 28 22:01 91E2-DB03 -> ../../mmcblk0p6
lrwxrwxrwx 1 root root 15 Mar 28 22:01 e2b3289b-6c40-404a-9059-57813cce2039 -> ../../mmcblk0p7
I edited fstab by adding this line:
UUID=3721afc7-bdb1-4979-8349-abc18f378896 /mnt/usbstorage ext4 nofail,uid=pi,gid=pi $
I still cannot see the HD when I run cd /mnt/usbstorage
then ls
. In addition, I cannot see anything in that directory when running the GUI.
mount
with no arguments is more definitive thancd ...; ls
. I don't thinkauto
is required as an option, but you could try it (sincenoauto
is also an option, it's impliedauto
is for something). You may want to check that before and after a call tomount -a
(seeman mount
andman fstab
). Although it's not related to your problem, you probably also wantasync
andnoatime
with an ext4 fs.sudo mount -a
should mount everything in fstab that doesn't have thenoauto
keyword. I believe that's exactly what happens at boot (but the question then remains, what isauto
for?). Plainmount
(you don't needsudo
) will show everything that's mounted; it doesn't show UUIDs, but it will show the mount points (and the list should be easy enough to skim through). So you can fiddle with fstab and usesudo mount -a
and check withmount
without having to reboot...journalctl | tail -n 40
right after you try to see if any errors are logged by the system.sudo mount -a
to fstab. The only change to the output tomount
is that the linegvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
appears in the output before the change. There are no errors logged from thejournalctl | tail -n 40
command.