LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kernel panic due to incorrect root partition (https://www.linuxquestions.org/questions/linux-general-1/kernel-panic-due-to-incorrect-root-partition-440600/)

neelay1 05-01-2006 01:16 PM

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.:scratch:

uselpa 05-01-2006 01:24 PM

Does your kernel have SATA support?

coolb 05-01-2006 01:35 PM

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.:scratch:

you forgot to run /sbin/lilo :-) :-)

uselpa 05-01-2006 01:39 PM

Quote:

Originally Posted by coolb
you forgot to run /sbin/lilo :-) :-)

Yes, right. That makes GRUB work much better :p

coolb 05-01-2006 01:45 PM

Quote:

Originally Posted by uselpa
Yes, right. That makes GRUB work much better :p

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...

uselpa 05-01-2006 01:47 PM

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.

coolb 05-01-2006 01:51 PM

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"?

neelay1 05-02-2006 03:14 PM

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.


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