LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-20-2006, 08:59 AM   #1
nesargha
Member
 
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51

Rep: Reputation: 15
Smile filesystem error unable to boot, how to restore the boot


hi guys,

i have got system with fedora core 2 installed,the problem is that due power cut my filesyemt started to give errors, so i tried fsck to check the filesystem , i got huge bunch of errors and the system got hanged so i had to restart , due which the filesystem of the root is not mounting now and i am not able to mount the root filesystem.it is giving following error while booting.


Red Hat nash ver 35.22 staring
mkrootdev : label / not found
mount : error 2 mounting ext 3
pivot root : pivot_root(/sysroot /sysroot/initrd failed 2
umount /initrd/proc failed 2
kernel panic - not syncing : no init found
try passing init= option to kernel


can any of the linux gurus help me out
 
Old 05-20-2006, 09:14 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Was your FC2 system in a logical volume? If so, you probably killed it by running fsck on it instead of on /dev/mapper/<logical volume name>. A "logical volume" is not an ext3 file system, even if the files systems in the volume are all ext3.

Hopefully you have a recent backup, in which case you can repartition, reinstall you system and restore from the backup.

Aside: Why are you using an old, unsupported, Fedora release? If you need to reinstall, I'd suggest that you consider installing a newer release.
 
Old 05-22-2006, 01:38 AM   #3
nesargha
Member
 
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51

Original Poster
Rep: Reputation: 15
hi Richard F. Davidson's
thank for the reply ,
the fedora core 2 was installed by the earlier linux administrator, even i am having the same idea of yours to migrate to newer version, i have rescued the secondry hdd that was there in the server , now i want to rescue the primary hdd (/root) but i am not able to mount it on another linux sytem of same version(we have 2 linxu servers) now can u tell how can i recover the root or resuce the the linux server to its old stable state. and i if am going for a newer version of the linux the which version of fedora core do u recomend or should i go for the RHEL 4 version. again thank u for the reply.

from
nesargha
 
Old 05-22-2006, 01:18 PM   #4
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
As I said, it all depends:

If /root was in a logical volume, then you have probably destroyed the HD by running fsck on /dev/hda, and you will not be able to recover anything.
If /root was not in a logical volume, fsck should have done as much as possible to recover the file system.

So, what happened when you put the HD into your other Linux system?
Did you see anything when you ran fdisk -l ?

If you didn't see anything, then I'd suspect that the whole drive is unusable.

If you did see anything, what did pvscan tell you? If it shows the same LV names for /dev/hda and /dev/hd?, then your problem with mounting it on your second system is that LVM can't mount two LVs with the same name.

Suggestion: Look here for a list of some recovery tools you might find helpful.
 
Old 05-23-2006, 02:05 AM   #5
nesargha
Member
 
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51

Original Poster
Rep: Reputation: 15
hi PTrenholme ,
sorry i thought that the quote was writen by u and addressed to u as hi Richard F. Davidson's, yeah i have done the fsck on the primary now,and i was able to recover the data , the thing is it has gone into lost+found directory , each data again in some number format like #1525230 , the pain is that i have to grep each of the folders which i need to take back up and then retrive the data, no doubt linux / unix is great and stable, it takes lot of man hours to do that. and it teach my how to be in patience while working with the system. so if you happen to know any eassier idea to retrive the data from the rescued data.
 
Old 05-23-2006, 10:39 AM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, the easiest way is, of course, to have good, current, backups.

If you've got the resources available, consider a RAID system.

At a minimum, make sure you're using a journalizing file system -- ext3 works well.

If fsck put the files into lost and found, then what happened was that the directory file was "hit" in your crash. So the names were lost. Not much you can do at this point but what you're doing. Sorry.
 
Old 06-14-2006, 03:29 AM   #7
nesargha
Member
 
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51

Original Poster
Rep: Reputation: 15
hi PTrenholme,
thank you for the reply.
we had backup up of some of the data and since the secondary (hdb) had not affected by this, our loss was of the configuration files and some of the recent data on the primary hdb, some how we have recovered about 40% of the primary (hda) using the "grep" command to find out the directory where the fsck command has put the data and we are making up the lost data by the backup data.

any way i was a good experience coming by the "hard way", now we have put the backup server into the operation and i am thinking of implementing RAID using SATA hard disk, i am right now trying it on a red hat 9 server, since i couldnt get hold of a fedora core 4 or 5 version CDs,

can u tell how is fedora core 5, my only worry is that since it is development distro, lot of patches has to be loaded and when a newer version comes in a year or so we would be forced to upgrade to higher version 6 or 7 what ever it comes and we have to go through the process again and for a small organization like ours it too much overhead.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot filesystem error bartiyar Linux - Enterprise 3 07-29-2005 10:15 PM
Unable to boot dump / restore from software raid jkotran Linux - General 0 01-12-2005 06:12 PM
I/O error on filesystem no boot biggg Linux - General 3 01-28-2004 08:47 AM
Filesystem check error during boot macisaac Red Hat 1 12-05-2003 03:44 AM
dump + restore to backup linux ; "Couldn't find matching filesystem: LABEL=/" on boot markus1982 Linux - General 4 09-21-2002 02:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:16 PM.

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
Open Source Consulting | Domain Registration