Creative Commons License
This work is licenced under a Creative Commons Licence.

Notes on /etc/fstab

1.

Adding a user readable, writable and mountable FAT (Windows) partition
to /etc/fstab: login as root and create an appropriate mount point directory in,
for example, /mnt. I called this directory “windows”, since I was mounting my
Windows partition.

2.

Edit your /etc/fstab file using for example vi or pico

or some other text editor.

3.

Add the following line to your /etc/fstab:

# <file system>   <mount point>   <type>   <options>                               <dump>  <pass>
  /dev/hda4       /mnt/windows    vfat     defaults,rw,user,uid=0,gid=6,umask=002  0       0

4.

As you can see, my Windows partition is partition number 4 on the first
harddrive. You will obviously have to change this to yours.

5.

See the manual pages for fstab and mount for more
information.

6.

Quick example of mounting a partition with user and group quota:

# <file system>	<mount point>	<type>	<options>				<dump>	<pass>
  /dev/hda3     /mnt/data       ext3    defaults,grpquota,usrquota              0       0

Tags: , ,

Leave a Reply

*