Red Hat Certified System Administrator RHCSA · Free Practice Question Medium

Question 19

Using Red Hat Enterprise Linux 9 (RHEL 9), format the logical volume named 'newlv' with the ext4 filesystem. Then, ensure it is persistently mounted at the /newlv directory. Describe the steps required to accomplish this task

Show model answer

In RHEL 9, format 'newlv' with ext4 using mkfs.ext4 /dev/mapper/newlv. Create a mount point with mkdir /newlv. Mount it using mount /dev/mapper/newlv /newlv. For persistence, edit /etc/fstab and add /dev/mapper/newlv /newlv ext4 defaults 0 0. This ensures 'newlv' is mounted at boot. The process involves formatting the logical volume, mounting it, and editing fstab for permanent mounting.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need