Introduction
In this challenge, you will learn how to create, mount, unmount, and use different file systems, including vfat, ext4, and xfs, on a Linux system. This is a fundamental skill required for the RHCSA exam, and it is essential for managing storage and file organization in a Linux environment.
Create and Mount File Systems
In this step, you will partition the available disk and format the partitions with different file systems. Then, you will mount them to the specified directories and ensure they are automatically mounted at boot.
Tasks
- Identify the additional empty disk in the VM and partition it to create three new partitions.
- Create a
vfatfile system on the first partition. - Create an
ext4file system on the second partition. - Create an
xfsfile system on the third partition. - Mount each file system to a dedicated directory.
- Configure the system to automatically mount these file systems on boot.
Requirements
- Identify the additional empty disk with
lsblkand use that device for creating partitions. On the current image, this disk appears as/dev/nvme1n1. - The three partitions should be of a reasonable size (e.g., 1GB each).
- Mount the
vfatfile system to/mnt/vfat. - Mount the
ext4file system to/mnt/ext4. - Mount the
xfsfile system to/mnt/xfs. - Ensure that the file systems are mounted automatically on system boot.
Example
After completing this step, running the lsblk -f command should show the new partitions on the additional disk with their respective mount points. On the current image, the output should look similar to this:
$ lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
...
nvme1n1
├─nvme1n1p1 vfat FAT32 E6A1-5E45 1022M 0% /mnt/vfat
├─nvme1n1p2 ext4 1.0 2a2e4d25-9988-4613-9a3b-558a3e7a0e7f 938M 0% /mnt/ext4
└─nvme1n1p3 xfs 7b3e0e6b-1d73-4ea2-8a9d-16a81e3e7b1c 1018M 1% /mnt/xfs
Summary
In this challenge, you learned how to create, mount, and unmount different file systems, including vfat, ext4, and xfs, on a Linux system. This is a crucial skill for managing storage and file organization in a Linux environment, and it is a key requirement for the RHCSA exam. By completing this challenge, you have demonstrated your ability to work with various file systems and configure them to meet your needs.



