fstab

The fstab is a file in Unix, Linux and BSD used to specify how to mount filesystems. It resides in the directory/etc. It is also used to tell the system to auto-mount a filesystem at startup. It can also be described as a file system table, hence the name fstab.

Mounting something means making it accessible to the user. For example; you cannot insert a CD in a CD-ROM and expect the system to automatically be able to read from it. You have to mount it first. MicrosoftWindows does this automatically, along with other popular operating systems, but in Unix, Linux and similar systems, you have got to mount it first.

Now, lets have a look at the specific items. Lets use the first entry as an example.

The leftmost item is where the source for the mount can be found. In this case, /dev/hda1, it points to the first partition (the 1 in hda1) of the first (the a in hda1)IDE hard drive (the hd in hda1). This is where the source is read from.

Furthermore, parameter two. This is where the source is mounted. This means that the data from the source can be found at this point.

By looking at the fourth parameter, we find out which options are passed when mounting. In this case, it uses only the default parameters.

The fifth and the sixth one are parameters used by dump(8) and fsck(8). Setting the fifth parameter to 0 means that dump will assume the file system does not need to be dumped. The sixth parameter should always be 1 on the root filesystem to ensure it is always checked first, and should be 2 on other file systems. This makes fsck periodically check the file systems. If set to 0, the file system is not checked.