Recently I made some edits in my fstab file after some change in my partitions. (check Partitions mounted with fstab, not opening from Nautilus nor Unity sidebars ) In the process I wanted to include a removable device so it would be present for all users when it was present.
It automatically mounted as \media\activeuser\HDDMaker
with user access permissions set to activeuser
only. My idea was to mount it as \media\HDDMaker
with access permissions to any user in a given group (gid=1004 common
).
The fstab file looks like this:
UUID=543Exxxxxx /mnt/543Exxxxxx ntfs-3g rw,nosuid,nodev,noexec,auto,gid=1004,umask=0002 0 0
/mnt/543Exxxxxx /media/HDDMaker auto rbind,x-gvfs-show,x-gvfs-name=HDDMaker 0 0
This works fine when the HDD is attached to the computer at startup (except for the detail in my other question: Partitions mounted with fstab, not opening from Nautilus nor Unity sidebars ), but when the HDD is not attached I have two problems.
- It reports at startup that the device cannot be mounted. (and the startup process is halted until you press
S
) When plug, after the system is up, it doesn't automatically mounts. You have to manually mount it as
sudo mount /dev/sdb1 /media/HDDMaker
The desired behavior is that it reports no problem at startup, and that, when plugged, it automatically mounts on /media/HDDMaker
, with permissions set to all users in group common
.
/etc/fstab
. The first entry needs to be a block device, not a directory. There should only be one single entry, mounting the partition to/media/HDDMaker
, or whatever directory you want it to be. – Marty Fried Nov 26 '14 at 17:40