Re: Disk label and /etc/fstab entry?



Ramon F Herrera staggered into the Black Sun and said:
On Mar 1, 5:12 pm, "Ramon F Herrera" <r...@xxxxxxxxxxx> wrote:

When posting, include context, and include complete info in the lines
that are important. Context restored and info guessed from the other
stuff you said:

/dev/sda10 /u01 ext3 noatime 1 2
Now the RedHat installation creates entries which are more flexible:
LABEL=/u01 /u01 [same as above]
but the problem is that I cannot (don't know how to) replicate that
LABEL inside the disk.

man e2label. Mounting by filesystem label can lead to problems if
you've got 2 or more filesystems with the same label, so don't do that.

however, if I add the entry above (the one without LABEL) in /etc/
fstab and mount /u01 I get mount: wrong fs type, bad option, bad
superblock on /dev/sda10, or too many mounted file systems
ext3: No journal on filesystem on sda10

You did mke2fs instead of mke2fs -j, so you have an ext2 filesystem
instead of an ext3 filesystem. Either use tune2fs to add a journal, or
change the fstab entry to ext2. Also, think about using LVM. It's very
flexible and nifty and gets around that 15-partition limit on SCSI
disks.

--
This is my rifle, this is my GNU
This is for fighting, this is for $FOO!
--AJS in ASR
There is no Darkness in Eternity/But only Light too dim for us to see
.



Relevant Pages

  • Re: /dev/fd0 cant be mounted
    ... > message demanding the filesystem to be specified (it's not the fstab entry). ... You have to specify three things to mount a device that's not in fstab: ...
    (comp.os.linux.misc)
  • Re: system down - cant find luns (correction)
    ... The entries in your fstab are causing the system to mount filesystems by ... label rather than by the device file. ... the filesystem because you know what it's label is. ... pain for the same reason (like if you want to change system disks). ...
    (RedHat)
  • Re: Re: How can you get a Seagate USB 160 GB drive to mount?
    ... How can you get a Seagate USB 160 GB drive to mount? ... At least in KDE, it will automount to ... I created the fstab entry only to test whether the device worked. ... I don't think I've placed a label on an external device after the fact. ...
    (Fedora)
  • Re: Re: How can you get a Seagate USB 160 GB drive to mount?
    ... How can you get a Seagate USB 160 GB drive to mount? ... I created the fstab entry only to test whether the device worked. ... I don't think I've placed a label on an external device after the ... e2label will add a label without affecting the file system. ...
    (Fedora)
  • Re: Arrgh! Compaq kernel panic after install
    ... > could it be as simple as, you shouldn't try to mount the root ... > filesystem by label, but by device name? ...
    (Fedora)