Field In The /etc/fstab File Format | Mount | Dump Backup Utility Fsck


I explained the field type in the /etc/fstab.
It has the six fields.
Each line in /etc/fstab contains information on one file system. For example,
[root@nags ~]#cat /etc/fstab
/dev/sda1 / ext3 defaults 1 1
/dev/hda7 / ext3 defaults 0 0

There are 6 fields:
1. device name /dev/had7
2. mount poin /
3. Filesysem Type ext2, reiser, iso9660, etc.
4. options (ro, noauto, user, usrquota) list of option which mount should use.
5. Dump Backup Utility file system (0=no, 1=yes)
6. fsck status (0=dont check, 1=root filesystem, 2=other filesystems)
dump it is used to dump backup utility to decide if a file system should be backed up.

Fourth Field Mount Field option Type
auto it will mounted file system automatically in the boot up
noauto it will not mounted file system automatically. When we run the #mount –a command it will mount the file system
ro/rw Read Only/ Read Write
exec/noexec Permit/prevent the execution of binaries from the file system.
user permit user to mount the file system
nouser only permit root to mount the file system.

defaults use the defaults setting
Equivalent to rw,suid,dev,exec,auto,nouser,async./etc/fstab file format syntax.
NOTE:device file major number it should unique.

No comments:
Write comments