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 - Linux Tutorial
From the course: Linux: Storage Systems
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…
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
-
-
-
Basic commands for storage partitions2m 10s
-
(Locked)
Create, mount, and unmount file systems10m 21s
-
(Locked)
Use block device attributes7m 16s
-
(Locked)
File system types: ext4, Btrfs, and XFS7m 26s
-
(Locked)
Make file systems7m 24s
-
(Locked)
Mount file systems during boot11m 27s
-
(Locked)
Mount file systems on demand7m 1s
-
(Locked)
Challenge: Formatting and mounting2m 3s
-
(Locked)
Solution: Formatting and mounting8m 17s
-
-
-
-
-
-