From the course: Ubuntu Linux: Essential Commands and System Administration

Unlock this course with a free trial

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

Configure disk mounting

Configure disk mounting

Rather than mounting a filesystem manually whenever we want to use it, we can tell the system to try to mount it when the system starts up instead. To do that, we need to modify a file called the filesystem table or fstab. Like some others that we've seen so far, the format of this file is fairly particular. So before we start modifying it, let's take a look at how it's set up. In the file, there's a line for each volume that we want to have auto-mounted at boot. The entries here can be mounted with the mount -a command later as well. On each row for each device, there are six categories of information that the system needs. First is the filesystem or the device that we want to mount. This can be a device path or a UUID. A UUID is generally preferred because it's more specific than a device descriptor that could change its startup as devices are detected in a different order. We can find this UUID for a volume that's already mounted with the blkid command or various other tools. The…

Contents