Introduction
In this challenge, you will learn how to configure local storage on a Linux system by mounting file systems at boot using a Universally Unique Identifier (UUID). This is an essential skill for system administrators to ensure the reliability and consistency of file system mounts, even when the underlying device names change.
Configure File System Mounts by UUID
In this step, you will format a new storage device and configure your system to automatically mount it using its unique identifier (UUID). This ensures that the system can always find and mount the correct device, even if its name changes.
Tasks
- Create a new file system on a local storage device
- Configure the system to mount the file system by UUID at boot
Requirements
- Create a new file system on the
/dev/vdbdevice - Mount the file system to the
/mnt/datadirectory - Configure the system to mount the file system by UUID at boot
- Verify that the file system is mounted correctly
Example
After you have successfully completed the steps, running the mount command and filtering for your new mount point should produce output similar to the following, confirming that /dev/vdb is correctly mounted on /mnt/data:
mount | grep /mnt/data
/dev/vdb on /mnt/data type ext4 (rw,relatime,seclabel)
Summary
In this challenge, you learned how to configure local storage on a Linux system by mounting a file system at boot using its UUID. This is an essential skill for system administrators to ensure the reliability and consistency of file system mounts, even when the underlying device names change. You practiced creating a new file system, obtaining its UUID, configuring the /etc/fstab file to mount the file system by UUID, and verifying the mount after a system reboot.



