File systems: XFS, ext4, mount, /etc/fstab, UUID
Sign in to read this lesson
RHEL's default file system is XFS. In this lesson we practise creating XFS and ext4 on a partition, writing them to /etc/fstab with a UUID, and RHCSA's most important rule — checking fstab before rebooting.
What you will learn
mkfs.xfs -L name /dev/sdb1(the RHEL default),mkfs.ext4 -L name /dev/sdX— when needed.- Write a UUID or label in fstab:
UUID=... /arxiv xfs defaults 0 0;blkidorlsblk -fgives the UUID. - After writing:
mount -a,findmnt --verifyanddf -h— only then reboot. - XFS can grow (
xfs_growfs) but cannot shrink; ext4 can do both (resize2fs). - Labels:
xfs_admin -L,e2label;LABEL=arxivalso works in fstab.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.