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
From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 2 File Access, Storage, and Security
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
List, create, and delete partitions on MBR and GPT disks4m 26s
-
(Locked)
Manage LVM volumes and volume groups6m 10s
-
(Locked)
Mount file systems at boot2m 31s
-
(Locked)
Mount file systems at boot by ID or label5m 59s
-
(Locked)
Extend existing logical volumes3m 56s
-
(Locked)
Mount and unmount CIFS and NFS network file systems2m 49s
-
(Locked)
Challenge: Local storage1m 18s
-
(Locked)
Solution: Local storage6m 7s
-
-
-