LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel panic after dual-boot XP drive failed (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-panic-after-dual-boot-xp-drive-failed-140498/)

phoenixdbq 01-30-2004 04:25 PM

Kernel panic after dual-boot XP drive failed
 
I have a dual-boot system with 2 IDE HDDs. The primary drive contained a Windows XP OS and GRUB for the 2nd drive which contains RedHat Linux 8.

Problem: The primary drive failed. I replaced the drive and reinstalled XP on it.... XP works fine. I then installed Paragon Boot Mgr and set it up to give a choice for XP or Linux booting. When Linux is chosen, it goes through the boot process until it hits a Kernel panic and the system halts.

Here are the last few lines:

kmod: failed to exec /sbin/modprobe -s -k block-major-72, errno = 2
VFS: Cannot open root device "" or 48:05
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 48:05

I'm at a loss as to where to go from here. I know the Windows OS's like the back of my hand, but when it comes to Linux, I can install it and use it, but not troubleshoot it. The only thing that comes to mind is that the GRUB on the defective drive had a reference for "root=" that it passes to the boot process, and my Paragon Boot Mgr doesn't include this???

Any help would be greatly appreciated. This system is not mine, and I know the owner had a lot of data on the Linux drive... they've already had a total loss on the XP one :(

Thanks!

thewizard20 01-30-2004 04:33 PM

Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda2
label = Linux
read-only
for lilo this is the way it should look in the config for your boot manager im not sure. hope this helps

Breezwell 01-30-2004 04:35 PM

phoenixdbq,

Can you boot straight off the Linux drive?
If you can, make Linux the primary and Windows the secondary. Install GRUB or LILO on the Linux drive and use it to boot either the Windows or Linux drive.

I dual boot in this way with Linux and WinXP with no problems at all. If decide to use GURB, I can post my configuration for you.

phoenixdbq 01-30-2004 04:43 PM

Unable to boot with Linux drive alone. In the original config, XP was primary master and Linux was primary slave. The system had XP and Linux was installed after.

No changes were made to the Linux drive... the XP drive simply failed outright... whatever MBR that drive had holds the key to what I need to do to fix it... Can I install GRUB and retain the data that is on the Linux drive???

Thanks!

Breezwell 01-31-2004 12:15 AM

Here is what my grub.conf file looks like:

default 0
timeout 30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

# Gentoo 1.4
title=Gentoo Linux 1.4
root(hd0,0)
kernel(hd0,0)/boot/bzImage root=/dev/hda3

# Windows XP
title=WinXP
root(hd1,0)
map(hd0) (hd1)
map(hd1) (hd0)
chainloader+1

The error message you are getting that states the following:

Please append a correct "root=" boot option

is basically telling you that the location of your kernel image canno't be found. In my case, the location of the boot image is on the third partition (hda3) of the first drive (hd0). Assuming the kernel image is correct and complete, you should be able to install GRUB and create the correct grub.conf file for your system to boot. Again, this is 'if' the kernel image is complete and correct.

You might want to try using a GRUB Floppy Image to try and boot the drive before attempting to install GRUB to the hard drive. GRUB allows you to pass options at boot time from an interactive prompt. You will need access to a system with GRUB installed to make the floppy image.

http://www.yo-linux.com/TUTORIALS/Li...dBootDisk.html

Hope this helps a little.

phoenixdbq 02-02-2004 01:22 AM

Well, I finally got ahold of the Red Hat install disks. I did an upgrade install and selected GRUB, but it wouldn't install the bootloader (said something about nothing to upgrade). I did get it to make a boot disk, which does work and boots the Linux system all the way into X.

What I can't figure out now is how to use that boot configuration from the floppy to get my dual boot with XP to work.

Also, I must have answered the question wrong when KUDZU wanted to update my mouse configuration, because the mouse is inop and it no longer asks if I want to configure the new mouse. Is there a way to force a new hardware detection (without the use of the mouse)

Thanks everyone for your help so far! I know these last items should be easy.

sgtbob 02-04-2004 01:37 PM

Phoenix - I'm a real newbie here also, but I recall reading somewhere that doing an 'install' as opposed to an 'upgrade' is a better install method.

I'm running RH 9 on a slower box, so I am still trying to learn about dual boot processes.... Can't settle on whether to use Redhat or Mandrake. I got started on Mandrake and became somewhat familiar with it, but my SIG is total RH so whachyagonnado!!!!!!

bob:scratch:

phoenixdbq 02-05-2004 08:17 AM

Got it figured out. I booted to Linux from my boot floppy and then installed GRUB from the command line... like I thought easy, but very elusive when you're not familiar with the OS.

Also, the mouse problem was a simple fix. Had to switch to a console window with Ctrl-Alt-Esc. Once there, there is a simple command to force a redetect on the mouse.

I know I should be listing what the commands were, but I don't have them handy. I'll repost them when I have more time.

Thanks for all the replies!


All times are GMT -5. The time now is 05:26 AM.