The default format of /etc/fstab is as follows:
1st column : Device (example /dev/sda1)
2nd column : Mount point (example /home)
3rd column : Filesystem type (example ext3)
4th column : Mount options (example defaults)
5th column : Dump (usually 0)
6th column : fsck (usually 0)
2nd column : Mount point (example /home)
3rd column : Filesystem type (example ext3)
4th column : Mount options (example defaults)
5th column : Dump (usually 0)
6th column : fsck (usually 0)
Since this is a short tutorial, we will not be discussing things in detail
Example:
1. Edit the /etc/fstab file
2. Add the directory that you want to automount
/dev/sda1 /home/test ext3 defaults 0 0
3. mount -a (if you want to mount the filesystems specified in /etc/fstab without restarting linux)
Read More !
