fstab and how to edit it

these all information i got from http://www.tuxfiles.org/linuxhelp/fstab.html written by nana langsted.
remind me of someone.
fstab is a configuration file that instruct the lilo on booting, to mount devices somewhere. so we can access that device when running linux. you can also learn about mount in www.tuxfiles.org
anyway this is how to edit it in simple words.

login as root and edit your fstab with
#nano /etc/fstab
#pico /etc/fstab

you will see one of this
example :
/dev/hda4 swap swap defaults 0 0
/dev/hda2 / ext2 defaults 1 1
/dev/hda1 /hda1 ntfs ro 1 0
/dev/hdb1 /home/original ntfs-3g defaults 0 0

the first column are the device that plugged in your cpu.
hda or hdb means your ide harddrive.
sda or sdb means your sata drive.
cdrom or dvdrom means your cd or dvd drive.
you can see these devices in /dev/ folder

the second column are the place that your mounting device located in your linux partition. you can edit all except the “/” and “swap” because these are you linux partition.

the third column are the type of your mounting device.
ext2 or ext3 means your linux. swap also.
vfat means fat32 or things like that. used by win 98-me-xp
ntfs means ntfs file system used by xp-vista. win 2000 uses “so 2000”

the fourth column are how these linux will be conducted.
defaults means your device will be conducted by linux system.
ro means read only
rw means read write. you can use rw on your other linux partition and vfat but not in ntfs. you need ntfs-3g to read and write.
auto noauto mean the devices will be mount automatically during startup. usually used for flash, floppy and etc.
user nouser mean normal user can mount the device or not. nouser is the defaults.
exec noexec mean your linux will run the binary or startup file on that device or not. dont use this command if you dont know what you’re doin.
sync async mean synchronously or not. used in floopy or flash.

the fifth columns is for define the dump option. whether the file system should be backup or not by fsck command. fsck is similar to chkdisk in windows. i think we are familiar with this.

the 6th columns is for for define the dump option. whether the file system should be check or not by fsck command.

that’s all. you can read it more in” tuxfiles.org”.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.