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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-05-2002, 05:14 AM
|
#1
|
|
Member
Registered: May 2002
Location: Shanghai, PRC
Distribution: RedHat 6.2 | 7.2 | 8 | 9|3
Posts: 81
Rep:
|
How can I recover my RedHat if it BOOTs to a "Kernel Panic" error and stop running?
Hi all,
I've reinstalled RedHat for many many times since 1999. Some of them I met
"Kernel Panic" error message just before the system boot into "SERVICE
start". I always don't know how to deal with it.
Usually the error message looks like these two types: 1),Kernel panic error,
try to add a "init=" option at startup.2), Kernel panic error, could not
mount /, try to add a "root=" option at startup.
I'm not very clear about what it means. I guess maybe something wrong with
the partition. I also tried to start RedHat with "linux init=3" or "linux
root=/dev/hda1" option. But nothing is useful for this. So I don't have any
idea about the solution and I have to reinstall again. When I reinstall the
system, I can't find any wrong with the partition. Everything seems to be
OK.
Please give me some suggestion about this "Kernel panic".
relax
|
|
|
|
12-05-2002, 10:12 AM
|
#2
|
|
Senior Member
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358
Rep:
|
there can be several reasons for a kernel panic. But you can always boot the system with a resue cd or floppy. Once you have booted, you can try to undo the things you have done to cause the kernel panic.
A kernel panic never just apears. You have to have done somthing to cause this.
The next time you have a kernel panic (lets hope never  ) just tells us that you did prior to this panic and the people on this form will do the best they can to help you correct the mistake. Also, it's a good idea to post you exact error message.
If you don't have a rescue disk, it's a good idea to make one. See this site.
|
|
|
|
12-05-2002, 01:41 PM
|
#3
|
|
Member
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771
Rep:
|
I recently encoutered a kernel panic because my initrd wasnt loading the ext3 modules(needed to mount my ext3 filesystem ) properly and the kernel couldnt mount the root partition successfully. From all the research I did to solve this problem, I found out that most kernel panics are caused by the inability of the kernel ( because you upgraded your filesystem but forgot to include support or you configured your boot loaded to pass the wrong root device to the kernel or some other screwup on your part apart from hardware failure ) . We know PC class hardware is not very reliable at all, but on the overall it seems to be improving.. but that apart the panic is caused usually by an action on the user side.
When you do something sensitive like upgrade the kernel or mess around with the boot loader, be sure to back up the original conf files and also to find a way to revert like filesystem migration that you did. Have a bootdisk / rescue CD handy so that you can mount the root filesystem, chroot to it and put things back in place. Well, that's about all one can do, I guess.
|
|
|
|
12-05-2002, 08:36 PM
|
#4
|
|
Member
Registered: May 2002
Location: Shanghai, PRC
Distribution: RedHat 6.2 | 7.2 | 8 | 9|3
Posts: 81
Original Poster
Rep:
|
Reply:
Hi,
Thank you so much for your help!
I've got another question. What is the "Rescue CD" you mentioned? Does it mean that I boot with Installation_CD_1 and type "linux rescue"?
|
|
|
|
12-05-2002, 09:55 PM
|
#5
|
|
Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154
Rep:
|
right
after that your system will be mounted in /mnt/sysimage
you can run it by doing this
chroot /mnt/sysimage
then do what you need to do to fix it
|
|
|
|
12-05-2002, 10:39 PM
|
#6
|
|
Member
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573
Rep:
|
If you have another system where you can create a root disk download this:
www.toms.net/rb
Or install another version of RH
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:38 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
|
|