From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Configure systems to mount filesystems at or during boot

Configure systems to mount filesystems at or during boot - Linux Tutorial

From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Configure systems to mount filesystems at or during boot

- [Instructor] Now let's explore how to mount file systems both manually but also automatically at boot time. In a previous lesson, we explored how to create file systems, but you might have noticed there's still no way for us to access a file system. How do we create files and directories on them? Well, to make a file system accessible, we first must mount it. Mounting basically means attaching or plugging in a file system to one of our directories. And here's how it works. First, we can take a look at a directory often used for temporarily mounting a random file system. Now this is currently empty, but let's say we want to mount the XFS file system created in one of our previous lessons. This is stored on the partition at /dev/vdb1. To mount it, we use this command. Now with the file system mounted at /mnt, We can now easily create a file on it and we can see that our previously empty file system now has one file inside. And we can use the lsblk method to confirm that our file…

Contents