From the course: Ubuntu Linux: Storage Management

Unlock the full course today

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

Configure disk mounting

Configure disk mounting

From the course: Ubuntu Linux: Storage Management

Start my 1-month free trial

Configure disk mounting

- [Instructor] Rather than mounting a file system 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 file system table, or fstab. 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, if need be. On each row, for each device, there are six categories of information that the system needs. First is the file system, 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 at startup, as devices are detected in a different order. The next piece of information we need is the location in the root file system where we want the device to be mounted. And then…

Contents