Which three files manage mounted filesystems in Linux?
/proc/mounts, /etc/mtab, /etc/fstab
What does /proc/mounts show?
Real-time mounted devices from the kernel
Is /proc/mounts editable by users?
No, it is read-only
What command displays /proc/mounts?
cat /proc/mounts
Example output of /proc/mounts?
/dev/sda1 / ext4 rw,relatime,data=ordered 0 0
What does /dev/sda1 represent in /proc/mounts?
Block device
What does / represent in /proc/mounts?
Mount point
What does ext4 represent?
Filesystem type
What does rw indicate?
Read-write access
What does relatime mean?
Updates access times on reads
What does data=ordered mean?
Journaling option
What do 0 0 at the end mean?
Not backed up by dump, no fsck at boot
What is /etc/mtab used for?
Lists mounted devices as tracked by user-space tools
Is /etc/mtab historically writable?
Yes, but now often linked to /proc/self/mounts
What command displays /etc/mtab?
cat /etc/mtab
What does /etc/fstab define?
Static mount points for automatic mounting
How many fields does each /etc/fstab entry have?
Six fields: block device, mount point, filesystem type, mount options, dump setting, fsck order
What command mounts all /etc/fstab entries?
mount -a
Example /etc/fstab entry?
/dev/sdb1 /mnt/data ext4 defaults 0 2