What do Linux mount options control?
Filesystem access and system performance
Name common mount options.
ro, rw, remount, noatime, nodiratime
What does ro do?
Sets filesystem as read-only to prevent modifications
What does rw do?
Allows both read and write access
Syntax for ro or rw?
mount -o ro|rw <source></source> <TARGET></TARGET>
Example of ro?
mount -o ro /dev/sdb1 /mnt/mydrive
What does remount do?
Changes mount options without unmounting the filesystem
Why is remount useful?
Switch between read-write and read-only modes with minimal disruption
Syntax for remount?
mount -o remount,<OPTIONS> <TARGET></TARGET></OPTIONS>
Example of remount?
mount -o remount,ro /mnt/mydrive
What does noatime do?
Disables updates to file access time on reads
Why use noatime?
Improves performance by reducing disk writes during read-heavy operations
Syntax for noatime?
mount -o noatime <source></source> <TARGET></TARGET>
Example of noatime?
mount -o noatime /dev/sdb1 /mnt/mydrive
What does nodiratime do?
Disables access time updates for directories only
Why use nodiratime?
Reduces disk writes from frequent directory lookups
Syntax for nodiratime?
mount -o nodiratime <source></source> <TARGET></TARGET>
Example of nodiratime?
mount -o nodiratime /dev/sdb1 /mnt/mydrive