You are not logged in.
I have an external HDD, which I want to mount statically. Therefore I created an fstab entry:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0
UUID=2a24e6d6-d54f-4bb1-8724-68bfc052843e /home ext3 defaults,noatime,nodiratime 0 1
UUID=429e0e2e-5291-4cd8-93d2-0ba1b46386c4 swap swap defaults 0 0
UUID=d515da77-e57f-4c7a-841f-5e2a6cabcfd6 / ext3 defaults,noatime,nodiratime 0 1
UUID=471A-2217 /mnt/small_external vfat users,rw,dmask=077,fmask=177,auto,shortname=lower,flush 0 0
It's the last entry you can see there. I got the values from here:
$ blkid
/dev/sda1: UUID="d515da77-e57f-4c7a-841f-5e2a6cabcfd6" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: TYPE="swap" UUID="429e0e2e-5291-4cd8-93d2-0ba1b46386c4"
/dev/sda3: UUID="2a24e6d6-d54f-4bb1-8724-68bfc052843e" SEC_TYPE="ext2" TYPE="ext3"
/dev/sdb1: UUID="471A-2217" TYPE="vfat"
Now, first of all this external hard drive is not mounted automatically on boot, although 'auto' has been set as an option. Next, if I issue a 'sudo mount -a' and then try to access the external, permission is denied:
$ cd /mnt/small_external/
bash: cd: /mnt/small_external/: Permission denied
Ideas?
EDIT: Solution see edit in last post.
Last edited by Stalafin (2008-11-11 01:19:20)
Offline
Indeed, I can access the hard drive as root.
I just realized, if I mount the hard drive without root rights, I can actually access it as my user:
$ mount /mnt/small_external
But as mount -a only works with root rights, I am not able to access it... But as this was the whole idea of putting that entry into fstab something seems to be wrong....
Is there something wrong with the entry?
EDIT: Solved by adding the uid of my user to fstab options.
Last edited by Stalafin (2008-11-11 01:18:53)
Offline