Tuesday, July 29, 2008

fstab file

File System Attributes(fstab)

mount,fsck and umount consult this file /etc/fstab

[root@localhost ~]# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/var /var ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda6 swap swap defaults 0 0


1st field represent the location of harddisk
2nd field where we need to mount the partition
3rd filed represent filesystem(for eg: ext3)
4th field represent writing permission(defaults(rw))
5th field presnt take a dump(1 represent take dump 1st using dump command
6th field represent file system check sequence (fsck 1 check first)

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home