Mounting Filesystems Automatically

The /etc/fstab file is used to store information about filesystems that have been permanently defined for the system. This includes the swap partition and the root partition, as well as any other partitions created during installation. The fstab file proves very useful if you create new partitions that you will be using on a permanent basis and that need to be integrated into the system whenever the system is booted. During bootup, the initialization of the system attempts to mount all of the filesystems in the fstab file unless the noauto option has been added to the options for a specific filesystem.

In this example, we add a new Reiser filesystem we created, and we mount it under /spare automatically at each system boot.

I £ To edit the /etc/fstab file or files like it, you need to work with fv- - f i- i ; more information on text editors, take a look at Chapter 11.

a text editor. For a look

To add a filesystem to be mounted automatically at bootup, you need to add a line to the fstab file that specifies the partition, mount point, filesystem type, your options, and some system information about backups and mount order:

Was this article helpful?

0 0

Post a comment