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

Mount file systems at boot

- [Instructor] To mount a drive, we need to make a mount point first. We'll be using our LV data logical volume on RH host1. To create the mount point type into a terminal sudo space mkdir space slash media slash LV data and hit enter. Type in your password if prompted. Note that the name of this directory is arbitrary. You can name it whatever you want. However, for this exercise I'm using the same name as the logical volume. Now let's mount our logical volume on this directory. To do so type in sudo space mount space slash dev slash VG data slash LV data space slash media slash LV data and hit enter. Verify this with the DF command by typing in DF space dash capital T which shows us the file system type. We can see that it's mounted and it's formatted with XFS. If you want to list the file system options it was mounted with use the mount command without any arguments. Type in mount and hit enter. You can see the LV data entry at the very bottom. This mount won't survive a reboot…

Contents