Thursday 15 October 2009

/etc/fstab entry description

The following is an example of an fstab file on a typical Linux system:

# device name mount point fs-type options dump-freq pass-num
LABEL=/ / ext3 defaults 1 1
/dev/hda6 swap swap defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0

# Removable media
/dev/cdrom /mount/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mount/floppy auto noauto,owner,kudzu 0 0

# NTFS Windows XP partition
/dev/hda1 /mnt/WinXP ntfs-3g quiet,defaults,locale=en_US.utf8,umask=0 0 0

# Partition shared by Windows and Linux
/dev/hda7 /mnt/shared vfat umask=000 0 0

# mounting tmpfs
tmpfs /mnt/tmpfschk tmpfs size=100m 0 0

# mounting cifs
//pingu/ashare /store/pingu cifs credentials=/root/smbpass.txt 0 0

#mounting NFS
pingu:/store /store nfs rw 0 0

The columns are as follows:

1. The device name or other means of locating the partition or data source.
2. The mount point, where the data is to be attached to the filesystem.
3. The filesystem type, or the algorithm used to interpret the filesystem.
4. Options, including if the filesystem should be mounted at boot. (kudzu is an option specific to Red Hat and Fedora Core.)
5. dump-freq adjusts the archiving schedule for the partition (used by dump).
6. pass-num indicates the order in which the fsck utility will scan the partitions for errors when the computer powers on. 0 = none, 1 = first, 2 = next (and all others in order)

For information further go to : http://en.wikipedia.org/wiki/Fstab

No comments:

Post a Comment

Tweets by @sriramperumalla