How to force OS reload of fstab?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












'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 actually reload fstab so auto-mounts use the new settings when media is connected?



Specific example seen with Raspbian (Debian) Stretch:



  • FAT-formatted SD card; configured fstab to auto-mount; rebooted; volume auto-mounts, but RO


  • Changed umask options in fstab; mount -a while media is connected, and volume is now RW


  • Unmount and re-insert the media; auto-mount works, but using the options in fstab from the last reboot, so volume is RO



  • Reboot; OS loads updated fstab; auto-mount works when media is connected, and volume is RW - how to get this effect without a reboot?



    FWIW, the fstab syntax was:
    /dev/sdb1 /Volumes/boot vfat rw,user,exec,nofail,umask=0000 0 0









share







New contributor




RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Possible duplicate of Script to "remount" a partition (umount then mount)
    – Christopher
    5 mins ago














up vote
0
down vote

favorite












'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 actually reload fstab so auto-mounts use the new settings when media is connected?



Specific example seen with Raspbian (Debian) Stretch:



  • FAT-formatted SD card; configured fstab to auto-mount; rebooted; volume auto-mounts, but RO


  • Changed umask options in fstab; mount -a while media is connected, and volume is now RW


  • Unmount and re-insert the media; auto-mount works, but using the options in fstab from the last reboot, so volume is RO



  • Reboot; OS loads updated fstab; auto-mount works when media is connected, and volume is RW - how to get this effect without a reboot?



    FWIW, the fstab syntax was:
    /dev/sdb1 /Volumes/boot vfat rw,user,exec,nofail,umask=0000 0 0









share







New contributor




RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Possible duplicate of Script to "remount" a partition (umount then mount)
    – Christopher
    5 mins ago












up vote
0
down vote

favorite









up vote
0
down vote

favorite











'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 actually reload fstab so auto-mounts use the new settings when media is connected?



Specific example seen with Raspbian (Debian) Stretch:



  • FAT-formatted SD card; configured fstab to auto-mount; rebooted; volume auto-mounts, but RO


  • Changed umask options in fstab; mount -a while media is connected, and volume is now RW


  • Unmount and re-insert the media; auto-mount works, but using the options in fstab from the last reboot, so volume is RO



  • Reboot; OS loads updated fstab; auto-mount works when media is connected, and volume is RW - how to get this effect without a reboot?



    FWIW, the fstab syntax was:
    /dev/sdb1 /Volumes/boot vfat rw,user,exec,nofail,umask=0000 0 0









share







New contributor




RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











'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 actually reload fstab so auto-mounts use the new settings when media is connected?



Specific example seen with Raspbian (Debian) Stretch:



  • FAT-formatted SD card; configured fstab to auto-mount; rebooted; volume auto-mounts, but RO


  • Changed umask options in fstab; mount -a while media is connected, and volume is now RW


  • Unmount and re-insert the media; auto-mount works, but using the options in fstab from the last reboot, so volume is RO



  • Reboot; OS loads updated fstab; auto-mount works when media is connected, and volume is RW - how to get this effect without a reboot?



    FWIW, the fstab syntax was:
    /dev/sdb1 /Volumes/boot vfat rw,user,exec,nofail,umask=0000 0 0







fstab





share







New contributor




RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share







New contributor




RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share



share






New contributor




RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 9 mins ago









RichardH

1




1




New contributor




RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






RichardH is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Possible duplicate of Script to "remount" a partition (umount then mount)
    – Christopher
    5 mins ago
















  • Possible duplicate of Script to "remount" a partition (umount then mount)
    – Christopher
    5 mins ago















Possible duplicate of Script to "remount" a partition (umount then mount)
– Christopher
5 mins ago




Possible duplicate of Script to "remount" a partition (umount then mount)
– Christopher
5 mins ago















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






RichardH is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477794%2fhow-to-force-os-reload-of-fstab%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








RichardH is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















RichardH is a new contributor. Be nice, and check out our Code of Conduct.












RichardH is a new contributor. Be nice, and check out our Code of Conduct.











RichardH is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f477794%2fhow-to-force-os-reload-of-fstab%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

The Forum (Inglewood, California)

Palaiologos