Explain the six fields of an /etc/fstab line.
IntermediateConceptStorage & Memory
Answer
UUID=3f1c... /data xfs defaults,noatime,nofail 0 2
- Device (prefer
UUID=orLABEL=, not/dev/sdb1, which can change) - Mount point
- Filesystem type
- Options
- dump flag (legacy, 0)
- fsck pass order: 0 skip, 1 root, 2 others (XFS ignores this, use 0)
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat does a bad fstab entry do, and how do you recover?AdvancedWhat is LVM? Explain PV, VG and LV.Beginner