Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-29-2007, 07:02 PM   #1
LQ Newbie
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 12

Rep: Reputation: 0
Unhappy /lib/ corrupted. Can't boot FC5

I accidentally corrupted the /lib/ on my Fedora Core 5 laptop, and now I cannot boot up the machine. As it boots, it prints out a bunch of error messages regarding the corrupted file and then it goes to a black screen with a cursor that has a spinning wheel. It keeps spinning forever.

I believe the files on the disk are all still intact, but I just cannot log in.

How do I restore this system file? Can I restore it using the FC5 installation disks?

I dont want to erase the data files on the disk....

Please help!
Old 11-29-2007, 09:27 PM   #2
Registered: Apr 2004
Location: Queens, NY
Distribution: Red Hat, Solaris
Posts: 295

Rep: Reputation: 30
Why don't you try booting off the CD in single usermode and mouting the filesystem as writable and copy back the file?
Old 11-29-2007, 09:35 PM   #3
LQ Newbie
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks for your reply. I am thinking of booting off the FC5 CDs and selecting the upgrade option to upgrade the existing system files but leaving the user files alone. Would that work? I assume it will just replace the corrupted libcrypto with the one from the CD. Since the CDs and what's on the disk are both FC5, the rest of the system is basically unchanged.

It would be at the screen shown at this webpage:

How do you boot in single user mode in FC5, as you described? I dont believe FC5 have a LIVE CD.

Thanks again...
Old 11-29-2007, 10:08 PM   #4
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681Reputation: 681
You could try booting up with the kernel option "init=/bin/bash". This may get you into a root shell without logging in. After mounting the partitions with the live systems root (/) on /mnt, you can chroot there, and then run "bash -l" to replace your PATH and other variables. Now you can try replacing the bad file. The libcrypto library is needed to encrypt your password to compare with the /etc/shadow entry. That is why you couldn't log in.

You could also delete the password hash from the /etc/shadow entry and reboot. I'm not certain if using a null password would bypass libcrypto.

Also, the install/rescue disks environment may require libcrypto itself, and could be a source for this file. I'm not certain what would happen if the file were updated since the install.

If you have access to the package the supplies libcrypto, you can run rpm2cpio on the package and extract it's contents with cpio. Then copy over the bad file(s) with the good one.

So there are a number of things you can try before reinstalling with an upgrade option. The latter works best if /home is on it's own partition.


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
Getting error while compiling xine-lib-1.1.1 on FC5 mehmood Linux - Software 7 06-01-2006 11:30 PM
X-server corrupted on FC5 jkrums Linux - Software 3 05-15-2006 08:04 AM
problem with enlightenment desktop in FC5 ( and nitvinkum Linux - Software 1 04-16-2006 06:45 PM
Boot failure after upgrading FC5 TR3 to FC5 Official Release fsb1284 Fedora 3 03-25-2006 09:12 AM conflicts with for hp driver sid_datta Linux - Newbie 0 07-25-2003 06:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:10 PM.

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