Operating System - Linux
1830938 Members
1919 Online
110017 Solutions
New Discussion

Re: Couldnt find matching file system:LABEL=/

 
Jagadesh
Frequent Advisor

Couldnt find matching file system:LABEL=/

Dear All,

When i rebooted my LINUX server iam getting an error
"Couldnt find matching file system:LABEL=/"

My /etc/fstab file seems to be ok.

When i run fsck then also iam getting the same error

Kindly help me out in rectifying the same.

Thanks
6 REPLIES 6
Vitaly Karasik_1
Honored Contributor

Re: Couldnt find matching file system:LABEL=/

can you send us your /etc/fstab file?

Is device with fs labeled "/" connected?
Kodjo Agbenu
Honored Contributor

Re: Couldnt find matching file system:LABEL=/

Hello,

If you know another way to access your /etc/fstab, and if you remember the filesystem layout (correspondence between partitions and FS's), then edit /etc/fstab and replace all "LABEL=/" by actual partition names.

One method to access your /etc/fstab is to use the installation disk, go thru the installation steps until keyboard selection, then open a text console with CTRL-ALT-F2. Then :

modprobe ext3
mkdir /myroot
mount -t ext3 /myroot
chroot /myroot
vi /etc/fstab
(do changes)
exit

Warning : if you don't know what you are doing, things can get more complicated !!!

Good luck,

Kodjo
Learn and explain...
Stuart Browne
Honored Contributor

Re: Couldnt find matching file system:LABEL=/

It makes me wonder however why the file-system labels have dissapeared from your patitions.

If you've not had any sort of catastrophic failure (i.e. you no longer have a root partition at all), then did you possibly migrate to new disks copying data, or have a disk failure, or .. or ... too many options..

Another option (rather than using the partition names in /etc/fstab) is to try re-labeling the partitions using 'e2label '. But who's to say the same failure won't happen again?

Just a thought...
One long-haired git at your service...
Jagadesh
Frequent Advisor

Re: Couldnt find matching file system:LABEL=/

Thanks for the reply,

I tried mounting the slice /dev/sda5 to /myroot
but it is giving an error
"Not a valid block".

How can i go about in mounting the Filesystem.

Thanks.
Stuart Browne
Honored Contributor

Re: Couldnt find matching file system:LABEL=/

First start by seeing what kind of filesystem it is:

file -s /dev/sda5

If it returns something like 'Linux rev 1.0 ext3 filesystem data (needs journal recovery)', then ok. Good.

If it returns something else, then bad.. very bady.

Either way, try doing a full filesystem check:

fsck -f -y /dev/sda5

It will hopefully find any errors and fix them. Given the error you got when you did the mount though, it doesn't look promising. Have a backup? :)
One long-haired git at your service...
Muthukumar_5
Honored Contributor

Re: Couldnt find matching file system:LABEL=/

hai,

What is df (df /) command saying.

Are you having the entries in /etc/fstab and /etc/mtab for / and mount point.

/sbin/fdisk /dev/sda5

It will give the way to solve that.

Regards,
Muthukumar.
Easy to suggest when don't know about the problem!