Updating etc fstab

This way, fsck checks filesystems on each disk in parallel.

You can include swap partitions can be included in the /etc/fstab file as well.

One means the backup should occur daily, two means the backup should be every other day, and so on.

This number is used for automated backup routines that can parse the /etc/fstab file for this information.

This command is usually embedded in the /etc/rc file (so it is executed automatically when Linux boots), although it can be run from the command line just as easily.

Imagine a situation that you have mounted something (e.g.

If one mount fails, Linux ignores it and executes the rest of the entries.

If a mount of a directory that is used further down the file fails, the dependent mounts fail too.

The first parameter is the device you would like to mount and the second one specifies the mount point (a folder, where the device will be mounted). You may also specify auto, if you wish to let the system guess. The most important are: All values are separated by comma(,).List these partitions as type swap, with the mount directory set to none and the dump frequency and pass number set to zero, as shown in the following example: /dev/sda2 none swap sw 0 0 When you include a swap partition in /etc/fstab, you can activate it using the swapon command.When you execute the command swapon -a Linux reads the /etc/fstab file and activates all swap partitions.Note in the preceding sample file that the entry that mounts /usr/data follows the entry that mounts /usr.If the /usr/data entry came before the /usr entry, the mount wouldn't work because the /usr directory wouldn't yet exist.

Leave a Reply