Filesystems, Mounting & fstab

Creating & Mounting Filesystems

FSNotes
ext4Long-standing Linux default, journaling
xfsRHEL default, great for large files
btrfsSnapshots, subvolumes
vfat/exfatCross-platform removable media
$ mkfs.ext4 /dev/sdb1            # create a filesystem
$ mkdir /data
$ mount /dev/sdb1 /data          # mount temporarily
$ umount /data                   # unmount

Persistent mounts - /etc/fstab

Each line: <device> <mountpoint> <fstype> <options> <dump> <pass>

UUID=1234-5678  /data  ext4  defaults  0 2
Exam trap: A bad /etc/fstab can leave a system unbootable. Always mount -a after editing to catch errors before rebooting.