Registered: May 2005
Location: Vancouver, Canada
Distribution: Fedora 18, Puppy Linux, various others
Sorry, about the delay in replying, I havn't been near a computer in the last few days. This is a simple procedure, most easily done in a text editor, such as jed or emacs. You must log onto the root account:
[you@yourbox ~] $ su -
and then open the file; /etc/fstab
[root@youbox ~]#jed /etc/fstab
and see a file that looks something like this:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 nodev 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/home /home ext3 nodev 1 2
LABEL=/opt /opt ext3 nodev 1 2
none /proc proc nodev 0 0
none /sys sysfs nodev 0 0
LABEL=/tmp /tmp ext3 nodev 1 2
LABEL=/usr /usr ext3 nodev 1 2
LABEL=/usr/local /usr/local ext3 nodev 1 2
LABEL=/var /var ext3 nodev 1 2
/dev/hda3 swap swap defaults 0 0
/dev/hda1 /mnt/win vfat nodev 1 2
/dev/fd0 /media/floppy vfat users,pamconsole 0 0
/dev/hdc /media/cdrom iso9660 users,pamconsole 0 0
From the manual:
The first field, describes the block special device or
remote filesystem to be mounted.
The second field, describes the mount point for the filesysytem. For swap partitions, this field should be specified as ‘none’. If the name of the mount point contains spaces these can be escaped as ‘\040’.
The third field, (fs_vfstype), describes the type of the filesystem.
Linux supports lots of filesystem types, such as adfs, affs, autofs,
coda, coherent, cramfs, devpts, efs, ext2, ext3, hfs, hpfs, iso9660,
jfs, minix, msdos, ncpfs, nfs, ntfs, proc, qnx4, reiserfs, romfs,
smbfs, sysv, tmpfs, udf, ufs, umsdos, vfat, xenix, xfs, and possibly others.
The fourth field, describes the mount options associated with the filesystem.
It is formatted as a comma separated list of options. It contains at
least the type of mount plus any additional options appropriate to the
filesystem type. For documentation on the available options for non-
nfs file systems, see mount(8). For documentation on all nfs-specific
options have a look at nfs(5). Common for all types of file system are
the options ‘‘noauto’’ (do not mount when "mount -a" is given, e.g., at
boot time), ‘‘user’’ (allow a user to mount), ‘‘owner’’ (allow device
owner to mount), ‘‘pamconsole’’ (allow a user at the console to mount),
and ‘‘comment’’ (e.g., for use by fstab-maintaining programs). The
‘‘owner’’, ‘‘pamconsole’’ and ‘‘comment’’ options are Linux-specific.
For more details, see mount(8).
The fifth field, is used for these filesystems by the
dump(8) command to determine which filesystems need to be dumped. If
the fifth field is not present, a value of zero is returned and dump
will assume that the filesystem does not need to be dumped.
The sixth field, (fs_passno), is used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time.
getmntent(3), mount(8), swapon(8), fs(5) nfs(5) fstab-sync(8)
This should help in understanding the file, but you should NOT try to create your own file.
This file should already exist on your computer, the option auto in the fourth field might do it.