LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Boot problem:: Kernel Panic because can't find libc.so.6 link (http://www.linuxquestions.org/questions/linux-newbie-8/boot-problem-kernel-panic-because-cant-find-libc-so-6-link-632232/)

glc23 04-01-2008 01:53 PM

Boot problem:: Kernel Panic because can't find libc.so.6 link
 
Dell Precision 340 with redhat 2.4.18-14, no other OS: I was trying to update libc to new version and to keep the old version available I renamed the old version...this of course resulted in the libc.so.6 link to point to nothing (I promise I will not do this again!!). SO when the system boots the kernel can't find libc and aborts. I tried Grub but am not familar with it. Also tried boot floppy but it just went down same path to Kernal Panic. Is there a way to boot with GRUB or boot floopy such that I can restore mangled libc filename? Can I boot a cdrom with a small linux and mount hd so can restore libc name?

jailbait 04-01-2008 02:06 PM

Quote:

Originally Posted by glc23 (Post 3107395)

Can I boot a cdrom with a small linux and mount hd so can restore libc name?

Yes, this is the easiest way to do it. Most distributions' install CDs contain a rescue system.

-----------------------
Steve Stites

glc23 04-03-2008 12:05 PM

Solution to problem
 
Good advice. I have a Dell computer, when BIOS boots there are two function keys, Setup & Boot Menu. I pressed Boot Menu function key and could boot from floppy, cdrom, or hd. I used the RedHat installation cd #1 and booted to cdrom. The installation page had a list of function keys at bottom of page, one of which was Rescue. I pressed Rescue and got a mini-linux loaded into memory and to top it off I was prompted with an option to mount the system hd partition to /mnt/sysimage ( NICE ). Then I had access to my corrupted system directory and text command capability to fix the problem.
If you read this story, a word to the wise...do NOT use the bad habit of renameing files to preserve them for a change or upgrade. The system directory now-a-days uses a lot of links which can make for some confussion and the rename approach dangerous. Backup those files to a temp directory or cdrom.


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