RHCSA 6.1: VFAT, ext4 and XFS
Making the three file system types, mounting VFAT for a normal user, and unmounting a file system that's in use.
Before you start
The lab adds three empty spare disks: /dev/loop40 (256 MiB),
/dev/loop41 (256 MiB) and /dev/loop42 (512 MiB). They come back at
every boot, before file systems are mounted, so /etc/fstab lines for them
keep working. It also creates user student (password Lab-Pass-1) if
there isn't one.
Tasks
- Create a VFAT file system on
/dev/loop40, ext4 on/dev/loop41and XFS on/dev/loop42, and mount them at/mnt/fat,/mnt/extand/mnt/xfs. As root, create a file in each. - Mount the VFAT file system so that user
studentowns everything on it, and make that permanent: after a reboot,touch /mnt/fat/testworks asstudent. cdinto/mnt/xfsin one shell and try to unmount it from another. Find out which program keeps it busy and write its name to/root/lab-answers/3. Then leave the directory and unmount/mnt/xfs.
Hints
mkfs.vfat(packagedosfstools),mkfs.ext4,mkfs.xfs;mkdir -p,mount,lsblk -f.uid=andgid=mount options for VFAT; a line in/etc/fstab(byUUID=), thensystemctl daemon-reloadandmount -a.chowndoesn't work on VFAT.fuser -vm /mnt/xfs, orlsof /mnt/xfs;findmnt /mnt/xfs.- The check mounts
/dev/loop42for a moment to look for your file if it isn't mounted. Mount/mnt/extat every boot too if you reboot for task 2, or mount it again afterwards.