Jeff Moore
Anita
Jeff Moore
man fstab
LABEL=/ / ext2 defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda3 swap swap defaults 0 0
/dev/hda7 /home ext2 defaults 0 2
What is the partition you want to put in fstab and what is the directory you
want to use for a mount point? Just put it in like I did /home. I'm
assuming that it is ext2.
I'm curious what other labels you have in your fstab.
Anita
The ext2 filesystem can have labels. Mount can look for these labels
and use them to identify partitions.
mke2fs can label a partition when it formats it (and maybe afterwards,
but I don't have a spare partition to experiment on).
--
Reverend Paul Colquhoun, postm...@andor.dropbear.id.au
Universal Life Church http://andor.dropbear.id.au/~paulcol
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-
xenaphobia: The fear of being beaten to a pulp by
a leather-clad, New Zealand woman.
>The ext2 filesystem can have labels. Mount can look for these labels
>and use them to identify partitions.
>mke2fs can label a partition when it formats it (and maybe afterwards,
>but I don't have a spare partition to experiment on).
e2label will list the label of a partition and also set it. So one could
list out the partition table with fdisk -l and then run e2label on all the
ext2 partitions to see what they are. Here's a one liner for that:
fdisk -l | grep 'Linux$' | cut -c-10 | xargs -n1 e2label
Dave Cook