From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Unlock the full course today

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

Mount filesystems automatically

Mount filesystems automatically - Linux Tutorial

From the course: Cert Prep: LPIC-1 Exam 101 (Version 5.0)

Start my 1-month free trial

Mount filesystems automatically

- [Male] For this exercise, we're going to configure automatic mounting of a partition and a volume created in a previous video. The partition we'll use is /dev/sdc1. For the logical volume we'll use /dev/vgdata/lvdata. The partitions still needs to be formatted, so let's do that now. We'll format it as ext4 by typing in sudo mkfs -t ext4 /dev/sdc1, and hit enter. Type in your password if prompted. The LV data logical volume should still be formatted from earlier in the chapter. Let's create mount points for both. Type in clear, and then type in sudo mkdir /media/backups, and hit enter. This is for our sdc1 partition. We will need a mount point for the LV data logical volume as well. Make sure that the directory of /media/lvdata exists. We can do this by typing in sudo mkdir /media/lvdata, and hit enter. Before going on, let's check our drives. Type in lsblk /f, and hit enter. To recap, we have a partition at…

Contents