# Lines starting with hash (#) are comments, not read by programs # /etc/fstab: information about how different partitions in the # hard disk are mounted in the Linux directories # Each entry has 6 fields: # block_device: the partition in the hard disk, another device # pseudo partition or in a # directory in a remote machine # mount pount: local directory where the partition is mounted # type: type of partition or file system # options, plenty of them, see fstab (5) and mount (8) # dump: whether partition should be dumped for backups # pass: order on which fsck checks the partitions at booting time; # the root partition should have a 1, # the others 2; partitions in the # same hard disk are checked # sequentially, in different drives are # checked at the same time; NFS and # other partitions should not be checked # In the example below no partition is dumped, so the field is 0 # 1. The first partition of the first drive is the root partition, of type # ext2; if the partition contains errors is mounted in read-only mode # 2. The second partition is swap, no fsck # 3. The third partition is a pseudo-partition, proc, no fsck # 4. The next one is the third partition in the hard disk, mounted in /usr # with fsck value of 2 and read-only option # 5. The next is the CDROM device, no fsck # 6. The next is an entry to allow users to mount the file /cdwrite/cd.sio # under /mnt to check if an ISO image (to be written in a CD) is correct # The option noauto is so that it is not mounted at boot time (the # file might not exists!); the option user allows any user to mount # and umount it; the option loop is needed to mount a file as a # partition # 7. Finally, the last entry is to mount a remote partition in the host # "server" as a local partition under /import /dev/hda1 / ext2 defaults,errors=remount-ro 0 1 /dev/hda2 none swap sw 0 1 proc /proc proc defaults 0 0 /dev/hda3 /usr ext2 defaults,ro 0 2 /dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0 /cdwrite/cd.iso /mnt iso9660 ro,noauto,user,loop=/dev/loop 0 0 server:/export /import nfs rw 0 0