From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Mount file systems at boot by ID or label

Mount file systems at boot by ID or label

From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security

Start my 1-month free trial

Mount file systems at boot by ID or label

- [Instructor] It works well to mount logical volumes using the path, because it always stays the same. However, for regular partitions, it may not. The path of the disc depends on when and sometimes where the system sees the drive. If you have four USB drives plugged into your system, they will get assigned a certain order when the host boots up. The first will be /dev/sda. The second will be SDB and so on. However, if you unplug drive two, and then boot up, the old SDC becomes SDB and the old SDD becomes SDC. To make matters worse, If the drive path changes and there's a line in the etc fstab, mounting that drive it may freeze the boot process. It's better to mount drives based on a label or Universal ID, then their location in the computer. Let's mount some drivers based on UID and labels now. To set this up, we need to create two more partitions on the /dev/vdb drive. We left 500 megabytes free. So, we'll make two more petitions that are 250 megabytes in size each. To do so type…

Contents