configure grub to dual boot - not working.
alright my grub is very awkward. this is my harddrive setup:
First IDE Channel: Master - 80GB WindowsXP installation - /dev/hda1 Slave - 80GB Gentoo installation - /dev/hdb1 (/boot), /dev/hdb2 (swap), /dev/hdb3 (/) my grub config looks like this: Code:
# Which listing to boot at default. 0 is first, 1 the second etc. Code:
splashimage=(hd0,0)/grub/splash.xpm.gz so i thought ok whatever, if thats how my set up is, then i guess my windows xp drive must be (hd1,0). so i tried adding this to the end of my grub.conf Code:
title=Windows XP Professional |
Umm, this probably isn't what you want to hear, but I think you may have an 80mbyte /boot where your xp used to be. Something looks very wrong. You appear to be accessing the grub files (the splash img, the kernel, the stage files) on hda.:confused: Try fdisk -l in linux to display existing partions on all hd's.
Have you tried: title=winxp rootnoverify hd(0,0) chainloader +1 That should work if xp isn't toast and the grub install went correctly. |
nah, my windows xp is fine. i can boot into it easily. i was using it for the entire day to do some work and gaming. ill try that on my next reboot.
Code:
bash-2.05b# fdisk -l |
ok tried ur idea and i got this error:
Code:
Error 13: Invalid or unsupported executable format |
Odd. The
root hd(n,m) statement is supposed to set the partition where grub can find menu.lst, the stage files, and the like. The rootnoverify hd(n,m) chainloader +1 statement is different. It's more of a direct pointer to a saved copy of another os's boot sector. Not sure what's going on. It's like grub's hd(n) assignments are changing but I've only seen that with pci udma cards that support drive swapping. With xp I believe it's possibly to install grub to the boot partition and chainload it via xp's multiboot capability. That might be one solution but I haven't used xp so I can't help you there. One other approach would be something like this: grub root hd(1,0) setup hd(0) That should put the grub binary in the mbr and set for menu.lst etc in hdb1. I avoid grub-install. It tends to mess up. With the grub shell you force it to install the way you want. |
IIRC i did
root hd(1,0) setup hd(1) when installing grub.. im pretty sure if i did setup hd(0) it would overwrite my windowsxp MBR, and i dont really want to touch that even though a simple fdisk /mbr from a startup disk can fix it. |
Ok, I see now. You are using xp's boot menu to chainload the grub boot menu. IIRC, when you do that you can't use a section in menu.lst to load xp later. Or maybe you could.
rootnoverify hd(0,0) chainloader +0 ? That should point back to xp's bootloader. (The MBR) |
Hey, this is my partition setup:
Code:
Disk /dev/hda: 120.0 GB, 120000000000 bytes Windows XP Pro rootnoverify hd(1,3) chainloader +0 Would I be able to use GRUB to boot Win XP? (hdb6 has the WinXP installation) |
IIRC, Windows doesn't like to boot unless it finds the MBR on the first sector of the first drive. Your grub may be setup so that windows doesn't see things this way which makes it not boot. Try the following for WinXP
Code:
title Windows XP |
All times are GMT -5. The time now is 08:38 PM. |