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
umaskoptions in/etc/fstab;mount -awhile media is connected, and volume is now read-write.Unmount and re-insert the media; auto-mount works, but using the options in
/etc/fstabfrom 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