I have 2 external HDD connected to my Raspberry Pi 2. One [NTFS] (auto)mounts and flawlessly.
The other one does not mount via /etc/fstab and returns a filesystem error but mounts when I manually mount it.
manual mounting:
pi@raspberrypi ~ $ sudo mount -t ext4 /dev/sdb1 /media/flashdrive/
pi@raspberrypi ~ $
dmesg output:
[82502.877207] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
mounting from /etc/fstab:
pi@raspberrypi ~ $ mount /media/flashdrive/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg output:
[82436.724478] EXT4-fs (sdb1): Unrecognized mount option "uid=1000" or missing value
/etc/fstab:
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, so no using swapon|off from here on, use dphys-swapfile swap[on|off] for that
UUID=f31eb8dc-cfca-4e23-8e85-070256e3d9c9 /media/flashdrive ext4 auto,users,rw,uid=pi,gid=pi 0 0
UUID=CEB0EF1CB0EF09B3 /media/toshiba ntfs auto,users,rw,uid=pi,gid=pi 0 0
Any ideas where the issue is? (UUID is correct)
As you can see in the /etc/fstab uid=pi
is identical for both drives. Still mounting only works for one of them.
dmesg | tail
?uid=pi
but that option is identical to both drives. Actually all options are identical except for the fs-type.