-   Linux - Newbie (
-   -   dualboot - lost win MBR (

clokwurk 09-14-2003 11:40 AM

dualboot - lost win MBR
i'm setting up a dual boot with gentoo/Winxp.

xp on hda / gentoo on hdb

as I was setting up Gentoo partition for boot I accidentally used hda1 instead of hdb1...writing over the MBR for the wrong disk.

I'm all but done with the install...just configuring LILO - havn't rebooted yet.

Ideas? Suggestions?

thanks in advance - clok

Demonbane 09-14-2003 11:55 AM

You can try to fix it by booting with the winxp cdrom, get in the recovery console and do a fixboot and/or fixmbr
Or if by chance it's a fat32 partition I know a faster and more reliable way of restoring nt bootsector.

clokwurk 09-14-2003 11:58 AM

but is that going to screw up LILO operation?

do i need to redo that part of the config?

Demonbane 09-14-2003 12:12 PM

Make sure you created the linux bootdisk, after you do a fixboot/fixmbr use the bootdisk to boot into linux then reinstall lilo back into mbr
Or alternatively you can use nt boot loader to load linux, once your're in first install lilo to /dev/hdb1, then do a:
dd if=/dev/hdb1 of=gentoo.bin bs=512 count=1
copy gentoo.bin into a floppy disk(FAT formatted), reboot and get back into xp, copy gentoo.bin into c:\ (or where boot.ini,ntldr, is, by default there's hidden, go in view options then enable show hidden system files if necessary)
then add
into your boot.ini


clokwurk 09-14-2003 03:58 PM

thank you for the info and speedy reply

All times are GMT -5. The time now is 05:35 PM.