Ghosted Linux box from PATA -> SATA, now kernel panic, what do I change?

bubba

Golden Member
Oct 10, 1999
1,589
0
0

I ghosted a linux box from an older PATA-based box to a newer SATA box. Now I get a kernel panic when I boot. I can boot off the RedHat CD in Rescue mode and mount the drives, so what do I need to change to get this thing to boot?

The / partition changed from /dev/hda1 to /dev/sda1 and I tried to change that in GRUB, but that didn't seem to get me any further.

Any ideas?

Thanks!

 

bubba

Golden Member
Oct 10, 1999
1,589
0
0
My GRUB file looks like this:

root (hd0,0)
kernel /boot/vmlinux-2.4.21-32.0.1.EL ro root=/dev/sda1
initrd /boot/initrd-2.4.21-32.0.0.EL.img



I get the following errors:

[...]
Creating block devices
kmod: failed to exec /bin/modprobe -s -k block-major-8, errno = 2
VFS: Cannot open root device "sda1" or 08:01
Please append a correct "root=" boot option
Kernel panic; VFS: Unable to mount root fs on 08:01




However, when I boot of the RedHat CD in rescue mode, it mounts the drives automatically just fine. This is RedHat Enterprise 3. The 1 SATA drive is primary master on the SATA chain and the CDRW is primary master on the PATA chain.

Any other ideas?



 

bubba

Golden Member
Oct 10, 1999
1,589
0
0
Do you mean the drives show up in the BIOS? If so, then yes.

If you mean in the linux kernel dmesg, I don't know, they scroll by too fast, but I don't think it gets that far.


I did not install a custom kernel... This is just the latest RedHat Enterprise WS version 3 kernel.

 

TGS

Golden Member
May 3, 2005
1,849
0
0
Originally posted by: sourceninja
looks like sata drivers arn't there. Did you compile your own kernel?

Did you check your current kernel settings to see if the SATA drivers are there?

The CD may be loading Everything-and-the-Kitchen-Sink? in the kernel for compatibility purposes.

Are the kernels from the CD and the installed ones the same? You should just need to enable the support if your installed kernel is the same.
 

bubba

Golden Member
Oct 10, 1999
1,589
0
0
I am not sure what modules the kernel is loading. How do I tell what modules are loaded by the CDROM in "rescue" mode and how do I change what is loaded by the kernel on disk (when I have the disk mounted in rescue mode).

Thanks!

 

P0ldy

Senior member
Dec 13, 2004
420
0
0
#lspci
#lsmod

Should give you some idea of what you need to tick in make menuconfig when compiling the kernel.
 

silverpig

Lifer
Jul 29, 2001
27,709
11
81
dmesg | less

do an lsmod on the recovery cd to see what sata drivers you have (sata_nv or sata_via or something else)
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
Learned something new. Thats good to know. I always use my own kernels on my box's, so I've never delt with anything like that before.

Thanks for the info.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |