LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2007, 06:15 PM   #1
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
kernel panic on boot!


I recently got the message:
kernel panic - not syncing! VFS unable to mount root fs on unknown block(3,3).

I've found a number of posts of people reporting this error, but so far they mostly relate to kernel compiles or software installs gone bad, so I don't know that they apply very much. I haven't touched my kernel or installed anything new in a while.

Here's what I DID do:

1) windows installation turned funky. Not sure how or why, but it died.
2) backed up all relevant data.
3) put in windows CD for repair installation.
4) aborted windows repair installation because: installer CD did not recognize existing installation, and the installer showed me to partitions with no labels and I could not rmember which was the linux and which was the windows partition
5) booted to Techiez Toolkit and relabelled my linux partition as "LINUX"
6) attempted to reboot into linux only to discover that windows installer CD had ruined my lilo bootloader, even though I had not performed the installation. Grrr....
7) put in slackware (v 10.0, I believe) recovery disk to restore lilo.
8) noticed that my linux partition was now at /dev/hda2, when it USED to be at /dev/hda3. shrugged and then mounted /dev/hda2, chroot'd it, ran lilo, and rebooted.
9) lilo shows up and lets be choose linux, which is when I got the kernel panic message.

I probably made the biggest mistake at step 8, but I don't know exactly what I did wrong, or how to fix it.


thanks in advance!
 
Old 03-18-2007, 07:57 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Looks like the MBR may have been corrupted. I would still try booting /dev/hda3 if that's what it used to be. I would also use a live CD to further investigate what happened.
 
Old 03-18-2007, 09:20 PM   #3
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
I edited the lilo.conf file to boot from /dev/hda2 (I wasn't sure how to force it to /dev/hda3, and I'm REALLY confused by what got changed in the first place - would it make more sense to use the label of the partition, instead of /dev/hd*?), and the boot goes... a little further. I don't get a kernel panic anymore. Instead, fsck gets an error when it tries to do something with /dev/hda3, and thinks that it's a zero-length partition, I think. It then prompts me for root password to login and perform disk maintenance. If I login and run fsck, I get the same sort of error. If I try to "proceed with normal startup" by pressing Ctrl-D, the system just reboots. :S
Well... still better than kernel panic, I suppose.
 
Old 03-18-2007, 10:37 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
looks like the partitions may be corrupted ... not good

did you save any info an the partition sizes and stuff ? you might be able to re-create the partitions. I'd try a live CD, maybe try mounting the visible partitions ...
 
Old 03-18-2007, 11:03 PM   #5
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Use a LiveCD and take a look at the disk using cfdisk. I'm suspecting a failing drive.
 
Old 03-18-2007, 11:09 PM   #6
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Original Poster
Rep: Reputation: 30
actually, it was much simpler than that: I forgot to change the entry for / in fstab to be /dev/hda2. duhhh! Proof that I shouldn't do this stuff when I'm tired.
Now I've got it booted and running again.
Still I'm puzzled by the change from /dev/hda3 to /dev/hda2. Was it labelling the partition that did it or should I blame the windows installer CD? ...or something else?
 
Old 03-18-2007, 11:18 PM   #7
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
yeah, that would do it
 
Old 03-18-2007, 11:20 PM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
well, the window$ installer CD probably installed its own bootloader into the MBR, likely corrupting the partition /dev/hda1 ... so that it no longer exists. That shifts the others down by 1 .... right ? (I'm just guessing, BTW)

Last edited by H_TeXMeX_H; 03-18-2007 at 11:21 PM.
 
Old 03-31-2007, 06:51 PM   #9
UhhMaybe
Member
 
Registered: Jul 2004
Location: Salt Lake City, Utah
Distribution: Absolute 12.0 Studio 64 1.3.0
Posts: 470

Rep: Reputation: 30
Cool

Glad YOU got it working. The live CD will show YOUR data, as suggested. IMO write info down on paper as YOU go, so YOU can see it when YA want to. The cfdisk program will get YOU repaired if the need arises. Yes, you're right about the M$Windows disc changing the the sequence of the partitions. If you're dual booting, the master boot record can be repaired by Linux. You do not need to use a separate disc, unless it is YOUR desire to use one. Another method is the old Floppy Disc Boot Loader. It is highly portable if YOU have Floppy Drive Device installed in YOUR system.
 
  


Reply



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 on boot Fezar Linux - Newbie 2 12-12-2005 12:57 PM
New kernel won´t boot. Kernel panic aquarius_kasuia Linux - General 5 10-21-2005 04:02 AM
Kernel Panic at boot from Promise ATA100 w/ Kernel 2.6 MikTheUser Linux - Hardware 9 07-24-2004 01:24 PM
Kernel Panic during boot inTUXicated Linux - Newbie 5 03-06-2004 03:59 PM
Kernel Panic during first boot MasterC Linux From Scratch 6 06-12-2002 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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
Open Source Consulting | Domain Registration