LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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



Reply
 
Search this Thread
Old 05-01-2006, 02:16 PM   #1
neelay1
LQ Newbie
 
Registered: Dec 2004
Posts: 16

Rep: Reputation: 0
Unhappy kernel panic due to incorrect root partition


Hi all,
I had a SAS hard drive on a Red Hat Linux 7.3 machine and was using the kernel boot line-
kernel /vmlinuz-2.4.30-ring-pae-aac-sam ro root=/dev/sda3 vga=extended panic=60
Now, I have replaced it with a SATA hard drive. When I try to boot, I get the following error messages-
VFS: Please use a correct "root=" option
Kernel Panic: Cannot mount root partition.
Rebooting in 60 secs...
During grub boot menu, I have tried editing the boot line by replacing "sda3" with "sdb3", "sdc3", "sdd3", "hda3", "hdb3", "hdc3" and "hdd3", but it didn't solve the problem.
Is there a way for me to determine the root partition name?
I'm running a Supermicro dual core box with Western Digital "Raptor" SATA 10k rpm hard drive.

Thanks,
Neelay.
 
Old 05-01-2006, 02:24 PM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Does your kernel have SATA support?
 
Old 05-01-2006, 02:35 PM   #3
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
Quote:
Originally Posted by neelay1
Hi all,
I had a SAS hard drive on a Red Hat Linux 7.3 machine and was using the kernel boot line-
kernel /vmlinuz-2.4.30-ring-pae-aac-sam ro root=/dev/sda3 vga=extended panic=60
Now, I have replaced it with a SATA hard drive. When I try to boot, I get the following error messages-
VFS: Please use a correct "root=" option
Kernel Panic: Cannot mount root partition.
Rebooting in 60 secs...
During grub boot menu, I have tried editing the boot line by replacing "sda3" with "sdb3", "sdc3", "sdd3", "hda3", "hdb3", "hdc3" and "hdd3", but it didn't solve the problem.
Is there a way for me to determine the root partition name?
I'm running a Supermicro dual core box with Western Digital "Raptor" SATA 10k rpm hard drive.

Thanks,
Neelay.
you forgot to run /sbin/lilo :-) :-)
 
Old 05-01-2006, 02:39 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Quote:
Originally Posted by coolb
you forgot to run /sbin/lilo :-) :-)
Yes, right. That makes GRUB work much better
 
Old 05-01-2006, 02:45 PM   #5
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
Quote:
Originally Posted by uselpa
Yes, right. That makes GRUB work much better
wips I thought you where using lilo

then run the grub binary....

I remember I got the same problem, almost the same that is... when recompiling a kernel and I dident reload lilo to my mbr... and it gave me a simplar problem "kernel panic VS: blah blah"

well all I can say it try running the grub binary, it might help...
 
Old 05-01-2006, 02:47 PM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
Quote:
Originally Posted by coolb
then run the grub binary....
GRUB doesn't work like LILO. You don't have to run that after updating menu.lst.

I'm pretty sure that the kernel that came with RH7.3 did not have SATA support and that that is the cause of his problem.
 
Old 05-01-2006, 02:51 PM   #7
coolb
Member
 
Registered: Apr 2006
Location: Cape Town, South Africa
Distribution: Gentoo 2006.1(2.6.17-gentoo-r7)
Posts: 222

Rep: Reputation: 30
Quote:
Originally Posted by uselpa
GRUB doesn't work like LILO. You don't have to run that after updating menu.lst.

I'm pretty sure that the kernel that came with RH7.3 did not have SATA support and that that is the cause of his problem.
umm... ok. Cant help then. I thought grub did work like lilo, o well... I learnt something new then... I have never used grub before :-)

Did you build your redhat kernel with "bare.i"?
 
Old 05-02-2006, 04:14 PM   #8
neelay1
LQ Newbie
 
Registered: Dec 2004
Posts: 16

Original Poster
Rep: Reputation: 0
Hi all,
thanks for your response...
I have SATA support enabled, both in Linux Kernel and in BIOS. So it shouldn't be a problem.
Is there a way for me to figure out what the root partition for my SATA drive is?
I tried using Knoppix and Gentoo live CDs, but neither of them auto mounted my hard drive.

-Neelay.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic, thought it was due to hardware fault???! klod Linux - Hardware 4 04-21-2008 11:32 PM
installing 2.6.8 on 2.4.27-2 kernel panic due to SCSI hdd arsham Debian 8 02-24-2006 12:21 AM
Kernel Panic when logging as root JabberWalkie Linux - General 6 04-17-2005 03:39 AM
Kernel Panic when mounting root fs Neorio Linux - General 1 10-21-2003 10:26 PM
Kernel panic due to dma problems ? lolx Linux - Hardware 24 06-20-2002 11:48 PM


All times are GMT -5. The time now is 07:25 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration