Understanding of /etc/fstab file

In this article, i’m going to explain the fstab file details for understanding, If you know very well in fstab file, you can easily mount the device without any trouble.

[email protected] [~]# cat /etc/fstab

# /etc/fstab
# Created by anaconda on Sat Oct 20 05:18:25 2012
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
UUID=02b56de1-a737-48ec-945f-c6f6301541aa       /       ext3    usrjquota=quota.user,jqfmt=vfsv0        1  1
UUID=b18386ae-633c-430c-85be-76132db5dd5a /boot                   ext2   defaults        1 2
UUID=d6059278-6690-4877-8660-c70d05af30fe swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults,noexec,nosuid        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/xvdc1              /home1                  ext3    defaults,usrjquota      1 2
    1                      2                     3              4               5 6

See the details of fstab file :

S.No Field Name Description
1 Device Mounted Device Name or Label
2 Mount Point File system mounted directory name.
3 Filesystem Format I have used ext3 file system type.

ext4 : Latest Linux file system type which is present now.

ext3 : This is the most common Linux file system type which is used a couple of years back.
4 Mount Options This mount options is used to perform specific function on the mounted file system. I have used below mount options in our server (defaults,noexec,nosuid,gid=5,mode=620,usrjquota)
5 Dump Value 0 mean, file system should be backed up automaticall
1 mean, file system should be backed up. Most of them put 0 because most of user don’t installed dump.
6 Filesystem Check Order used by fsck to decide which order filesystems are to be checked.0 mean, While booting the system the device/partition haven’t checked by fsck utility
1 mean, It will be check the root device/partition.
2 mean, it will check the other device/partition like home.

Magesh Maruthamuthu

Love to play with all Linux distribution

You may also like...