What are the options for mounting file systems?
sobes.tech AI
Answer from AI
rw (read-write) - read and write.
ro (read-only) - read only.
auto - automatic detection of the filesystem type.
noauto - requires explicit mounting.
user - allows a regular user to mount the device.
nouser - only root can mount the device.
exec - allows execution of executable files on partitions.
noexec - prohibits execution of executable files.
sync - synchronous data writing to disk.
async - asynchronous data writing to disk.
defaults - default set of options (usually rw, suid, dev, exec, auto, nouser, async).
dev - interpret block devices on the filesystem.
nodev - do not interpret block devices.
suid - handle SUID and SGID bits.
nosuid - ignore SUID and SGID bits.
remount - remount an already mounted filesystem with new options.
bind - mount a subtree of the filesystem to another location.
loop - mount a file as a block device.
Example entry in /etc/fstab:
#/dev/sda1 /mnt/data ext4 defaults,noatime 0 2