View Single Post

   
  #4 (permalink)  
Old 01-17-2008, 07:06 AM
Juha Laiho
 
Posts: n/a
Default Re: The LABEL in the filesystem table doesn't work

ramon@conexus.net (Ramon F Herrera) said:
>The LABEL directive is a very good idea, which replaces
>the older /dev/sda format in the /etc/fstab file.

....
>This is what I tried:
>
># e2label /dev/sdb /home/client
>
>and I placed this line in the fstab file:
>
>LABEL=/home/client /home/client ext2 defaults 1 2
>
>but when I tried to mount, I got this error message:
>
># mount /home/client
>mount: no such partition found
>
>How can I make the LABEL work?


It looks slightly suspicious that you're using a raw disk for the e2label,
instead of having partitions. This might be throwing off some of the
programs.

So, even if you only want to have a single filesystem on the disk, create
a partition (spanning the whole disk) for the fs, and label that partition
(/dev/sdb1).

Just guessing, but as it's rather unconventional to use the whole-disk
devices for filesystems, this might be the reason for your problems.
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Reply With Quote