mount -a
works fine as a one-time action. But auto-mount of removable media reverts to settings that were in fstab at the last reboot.
How to make the OS reload /etc/fstab
so auto-mounts use the new settings when media is connected?
The specific example seen with Raspbian (Debian) Stretch:
FAT-formatted SD card; configured fstab to auto-mount; rebooted; volume auto-mounts, but read-only.
Changed
umask
options in/etc/fstab
;mount -a
while media is connected, and volume is now read-write.Unmount and re-insert the media; auto-mount works, but using the options in
/etc/fstab
from the last reboot, so volume is read-only.Reboot; OS loads updated
/etc/fstab
; auto-mount works when media is connected, and volume is read-write. How to get this effect without a reboot?
FWIW, the (updated) /etc/fstab
syntax was:
/dev/sdb1 /Volumes/boot vfat rw,user,exec,nofail,umask=0000 0 0
/etc/fstab
reminding/advising people it has now been deprecated - and how to updatesystemd
- would go a long way. – Chris Davies Oct 25 '18 at 20:14mount -a
is nowadays masked. – JdeBP Oct 26 '18 at 00:03