Is it possible to modify linux mount defaults option?
5,125
There seems to be some support for setting default mount options for ext4 using tune2fs.
The syntax is something like tune2fs -E mount_opts=.. device
More info here http://en.wikipedia.org/wiki/Fstab and in man tune2fs
Related videos on Youtube
Author by
kikeenrique
Updated on September 18, 2022Comments
-
kikeenrique over 1 year
Is it possible to modify/redefine linux mount defaults option?
For example, having a fstab like this:
# / was on /dev/sda8 during installation UUID=669cb10d / ext4 errors=remount-ro 0 1 # /home was on /dev/sda7 during installation UUID=43e81f24 /home ext4 defaults 0 2
Is it possible to redefine the "defaults" option?
I know that it's usually defined like this:
defaults: rw, suid, dev, exec, auto, nouser, and async. see man mount
-
kikeenrique almost 11 yearsYes, something like this is what I was looking for. Although it's not enough for my need... "superblock setting is only honored in 2.6.35+ kernels; and not at all by the ext2 and ext3 file system drivers."