4

The mount -a command disregards mount options, which makes it useless when that's what you changed.

How to re-evaluate all the mount options in fstab as if rebooting?

2 Answers2

8

Have you tried the remount option?

mount -o remount -a

Should re-mount with the changed mount-options of your fstab.

Nils
  • 18,492
0

The manual way, as a fish multiliner:

cat /etc/fstab | while read dev mnt type opt dump pass
    if not string match noauto (string split , $opt)
        mount -o remount,$opt $mnt
    end
end

This assumes that the noauto mountpoints are not mounted. Which is the case for me, as my backup disks are normally unmounted.

  • 2
    it also assumes there are no comments in your fstab file or spaces in your mount point. – L.Ray Apr 05 '20 at 00:13