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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-20-2006, 08:59 AM
|
#1
|
Member
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51
Rep:
|
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
|
|
|
05-20-2006, 09:14 AM
|
#2
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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.
|
|
|
05-22-2006, 01:38 AM
|
#3
|
Member
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51
Original Poster
Rep:
|
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
|
|
|
05-22-2006, 01:18 PM
|
#4
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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.
|
|
|
05-23-2006, 02:05 AM
|
#5
|
Member
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51
Original Poster
Rep:
|
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.
|
|
|
05-23-2006, 10:39 AM
|
#6
|
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187
|
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.
|
|
|
06-14-2006, 03:29 AM
|
#7
|
Member
Registered: May 2006
Distribution: rhel 4, red hat 9, fedora core 2
Posts: 51
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 11:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|