I need an SD card to be mounted unattended, as soon as it is inserted in its slot. Usual enough, but the prbm is it does not get mounted and I am missing why.
In /etc/fstab
:
#Entry for /dev/mmcblk0p1 :
UUID=_____ /mnt/SD-root ext3 defaults,nofail,umask=0027,utf8,comment=x-gvfs-show,x-gvfs-name=SD-root 0 2
EDIT-1: I also tried replacing /mnt/
with /media/myname/
above, and including the options user,uid=1000
(that's me) or users
, to no avail.
Mount point is either /mnt/SD-root
or /media/myname/SD-root
. Mountpoint ownership is set to "root : adm".
$ ls -Al /mnt/ | grep -e 'SD-root'
1 drwxr-x--- 3 root adm 1024 Sep 25 16:51 SD-root/
Right now the only way for a non-root user to mount the SD card is to:
$ sudo mount /dev/mmcblk0p1 /mnt/SD-root/
What am I missing ?
/etc/fstab
is read at boot time whenmountall
is invoked to mount filesystems and detected block-devices are listed and don't have optionnoauto
set . However/etc/fstab
can also be and is used to list mounting options for devices not meant to be mounted at boot. Isn't that's the raison d'être of the optionnoauto
? – Cbhihe Sep 29 '15 at 15:10udev
rules! – Fabby Sep 29 '15 at 23:44