Disk label and /etc/fstab entry?




Re: RedHat Linux RHEL4

Back in the old days, the fstab entries looked like this:

/dev/sda10 /u01 [...]

Now the RedHat installation creates entries which are more flexible:

LABEL=/u01 /u01

but the problem is that I cannot (don't know how to) replicate that
LABEL inside the disk.

I just ran mke2fs on a new disk. It can only be mounted manually:

# mount /dev/sda10 /u01

however, if I add the entry above (the one without LABEL) in /etc/
fstab and type:

# mount /u01

I get the error message:

mount: wrong fs type, bad option, bad superblock on /dev/sda10,
or too many mounted file systems

Questions:

(1) Why is it giving me that error message?

(2) How do I create a LABEL=/u01 on the disk, in the same fashion that
RedHat install does it?

TIA,

-Ramon F Herrera

.