LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-05-2004, 05:43 PM   #1
carneros
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
how to fix a kernel panic


Hello!
I need help... am running red hat 9 in a dual boot environment with windoze and everything has been fine until today. There have been a number of unclean shutdowns in the past few days due to an incorrectly configured power-save mode for my laptop but on each reboot I have run the interactive filechecking tool and it has shown a clean /root filesystem. When I boot the windows bootloader goes first and then it's GRUB as I must have said windoze is the default on install.
I logged into GNOME today, used some apps, then went to get a cup of tea, came back and the system rebooted with the kernel panicing. I have had various kernel panic messages(aiee interrupt handler, no init) as well as the system message " the amount of memory in the system has changed"(twice then it went away) Things seem erratic: I can sometimes get into windoze and sometimes the windows bootloader screen freezes. Grub is messed up as it refuses to show itself.
What I have done:
-did a hard drive diagnostic--it passed
-resat the memory and the hardrive
-searched for the answer on Google, here
-gotten into windows and replaced the bootsect.lnx file and checked boot.ini (now instead of skipping altogether it says GRUB)
-entered into rescue mode with the CD and inspected /boot and grub.conf, which seem allright, though I am a newbie.

-booted from the boot diskette and entered the kernel params "linux root=/dev/hda6" (kernel panic no init code before says:

EXT3-fs: INFO recovery required on readonly filesystem
EXT3-fs: write access will be enabled during recovery
kjournald starting . Commit interval 5 seconds
EXT3-fs: recovery complete
EXT3-fs: mounted filesystem with ordered data mode
pivotroot: pivot_root (/sysroot/sysroot/initrd failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 132K freed
Kernel panic: no init...


So here I am-how can I diagnose this and fix it?
thanks
 
Old 05-05-2004, 05:52 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
Use your installation cd in rescue mode, then unmount all your partitions ('mount' will tell you which /dev/hdX are mounted) and run fsck on all of them. It should be able to fix all errors (but only if the partitions are not mounted).
 
Old 05-05-2004, 06:29 PM   #3
carneros
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
thank you
I cannot umount /dev/hda7
evice or resource busy
nor can I chroot /mnt/sysimage
: /bin/sh : Input/output error
I imagine this has something to do with why I have problems
Any help?
 
Old 05-05-2004, 06:45 PM   #4
carneros
LQ Newbie
 
Registered: May 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I guess the lack of response means you don't know how to fix it
I will reinstall
 
Old 05-06-2004, 06:26 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
When you can't unmount it usually means one of the processes is using it (or probably you're in a directory on that disk on one of the consoles). But you are probably after a reinstall, so it doesn't matter...
 
  


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
Kernel Panic: How To Fix TSHF-Megsy Debian 4 11-20-2005 02:32 PM
FC4 install - Kernel panic fix nobby688 Fedora 1 06-17-2005 05:31 PM
Need to fix kernel panic: No init found dima789 Linux - Software 16 08-10-2004 11:53 AM
kernel panic and i cant fix it. sc3252 Debian 2 07-18-2004 03:42 AM
kernel panic, init related, found cause, but cant fix...help :) sirpelidor Linux - Software 7 12-24-2003 08:28 PM


All times are GMT -5. The time now is 06:44 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration