LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 09-21-2002, 09:53 AM   #1
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
dump + restore to backup linux ; "Couldn't find matching filesystem: LABEL=/" on boot


Just used dump -0 -f root.dump /dev/hdb7 to backup my linux root filesystem. I used restore rf dump.tar on another partition (hdb8) to restore the filesystem then!

Afterwards I removed hdb7 using fdisk, wrote the changes and rebooted.


Now on the boot up proccess I get a problem:
Couldn't find matching filesystem: LABEL=/


The filesystem is there and it holds ALL the files like the original ones does.


Contents of /etc/fstab
Code:
LABEL=/                 /                       ext2    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hdb2               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0

Contents of /etc/mtab
Code:
/dev/hdb7 / ext2 rw 0 0
none /proc proc rw 0 0


I got that contents after rebooting with the RH rescue cd and just mounting the partition manually and copying those 2 files ...



Anybody knows what to do to fix that? Cause actually the system SHOULD be working!
 
Old 09-21-2002, 01:05 PM   #2
orgcandman
Member
 
Registered: May 2002
Location: dracut MA
Distribution: Ubuntu; PNE-LE; LFS (no book)
Posts: 594

Rep: Reputation: 102Reputation: 102
you might try...

Maybe I'm totally wrong on this, but your fstab looks a little screwed up.
I think the LABEL=/ should be replaced with whatever device your / FS is on. (IE: /dev/hda1)


org
 
Old 09-21-2002, 01:13 PM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Original Poster
Rep: Reputation: 46
well normally mtab is used for that purpose afaik. but i'm not 100% sure, well i didn't try changing the fstab so far, maybe that will do the job. trying that now ... will post the result in a few mins i bet!
 
Old 09-21-2002, 01:32 PM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Original Poster
Rep: Reputation: 46
fs label's

Well the only problem at all is that the file system has had NO VOLUME LABEL! So what needs to be done is setting the volume label. This can be done using tune2fs.

Like you can read in the tun2fs manpage:
...
Code:
       -L volume-label
              Set  the  volume  label  of  the  filesystem.  Ext2
              filesystem labels can  be  at  most  16  characters
              long; if volume-label is longer than 16 characters,
              tune2fs will truncate it and print a warning.   The
              volume  label can be used by mount(8), fsck(8), and
              /etc/fstab(5) (and possibly others)  by  specifying
              LABEL=volume_label   instead  of  a  block  special
              device name like /dev/hda5.
So this is the solution
 
Old 09-21-2002, 02:16 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
all that, or use e2label. the point of labels is so that you don't need to specify a rigid partition name, as if you mess around with partitions, split some and such, the partitions will naturally change their number, which will screw things up. if they are given their own name then they won't get lost..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 03:32 PM
Dual-boot install: "Could not find kernel image: linux / boot:" JEBBEDIAH C Linux - Newbie 16 02-02-2005 09:25 PM
error when rebooting could'nt find matching filesystem: label=/home bigdawg9950 Linux - Newbie 2 08-30-2004 03:03 AM
gdb assembly dump "i386-slackware-linux" centr0 Linux - General 0 06-11-2003 12:44 PM
Couldn't find matching file system: LABEL=/user1 kausik Linux - General 4 05-20-2002 07:00 AM


All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration