34.7 Configuring Ubuntu to Automatically Mount a File System
In order to set up the system so that the new file system is automatically mounted at boot time an entry needs to be added to the /etc/fstab file. The format for an fstab entry is as follows:
<device> <dir> <type> <options> <dump> <fsck>
These entries can be summarized as follows:
•<device> - The device on which the filesystem is to be mounted.
•<dir> - The directory that is to act as the mount point for the filesystem.
•<type> - The filesystem type (xfs, ext4 etc.)
•<options> - Additional filesystem mount options, for example making the filesystem read-only or controlling whether the filesystem can be mounted by any user. Run man mount to review a full list of options. Setting this value to defaults will use the default settings for the filesystem (rw, suid, dev, exec, auto, nouser, async).
•<dump> ...