From the course: Linux: Storage Systems

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 during boot

Mount file systems during boot - Linux Tutorial

From the course: Linux: Storage Systems

Start my 1-month free trial

Mount file systems during boot

- [Instructor] We can configure Linux to automatically mount some of our file systems every time we reboot. The key for that is a config file /etc/fstab. It has one line for each thing we want to have mounted, and on that line we can say how we want it mounted. The options for example, and what it is. Which partition, and where want it mounted. When we install Linux, we can choose to partition up our disk however we want, and whatever decisions we make there, it will show up in the /etc/fstab. That file gets written during the installation. But if you add more disks or you change partitioning, then you might have to edit the /etc/fstab by hand. So the fstab lines have six fields. The first the field is what it is we want to mount. That could be a partition for an FS, it could be server and a directory. It could be a UUID. The second thing is where we want to mount it, what directory, called the mount point. And again, typically that directory is something we want to be empty. 'Cause…

Contents