[ltp] Restore WinXP MBR?

Greg Meyer linux-thinkpad@linux-thinkpad.org
Fri, 21 Nov 2003 18:56:21 -0500


On Friday 21 November 2003 06:03 pm, Jordan Benjamin wrote:
> Well, I did get this to work. I ended up making a CD equivalent of a DOS
> boot disk using tools from http://www.nu2.nu/bootcd/ and then just doing
> fdisk /mbr. I didn't know the linux fdisk could do this as well, so
> that's helpful for the future.
>
> As for the questions below, at the time I was trying to do this I had
> just wiped the drive with the IBM restore CDs, so there was just WinXP
> on there. However, the problem with the reference to a Windows install
> cd below is that there is no such thing shipped with a ThinkPad (and I
> don't have a shrinkwrapped copy of XP).
>
> Back to that issue that got me into this mess in the first place though:
> has anyone tried to dual boot linux and Windows using grub as the first
> bootloader? I.e., grub is installed in the MBR and ntldr is only in the
> Windows partition? All the dual boot howtos I've seen say you have to
> have ntldr go first, which is OK but annoying.
>
Just install Windows first.  Grub and LILO can both be the first installer, 
just let the Linux installer set it up.  Here is my /boot/grub/menu.lst

# cat /boot/grub/menu.lst
timeout 10
color blue/black yellow/black
i18n (hd0,1)/grub/messages
keytable (hd0,1)/us.klt
altconfigfile (hd0,1)/grub/menu.once
default 1

title linux
kernel (hd0,1)/vmlinuz root=/dev/hda5 devfs=mount hdc=ide-scsi acpi=ht\
             resume=/dev/hda3 splash=verbose vga=791
initrd (hd0,1)/initrd.img

title Win4Lin
kernel (hd0,1)/win4lin root=/dev/hda5 devfs=mount hdc=ide-scsi acpi=ht\
             resume=/dev/hda3 splash=verbose vga=791
initrd (hd0,1)/initrd-win4lin.img

title linux-nonfb
kernel (hd0,1)/vmlinuz root=/dev/hda5 devfs=mount hdc=ide-scsi acpi=ht\
             resume=/dev/hda3
initrd (hd0,1)/initrd.img

title failsafe
kernel (hd0,1)/vmlinuz root=/dev/hda5 failsafe devfs=nomount hdc=ide-scsi\
             acpi=ht resume=/dev/hda3
initrd (hd0,1)/initrd.img

title WindowsXP
root (hd0,0)
chainloader +1

title Fedora
root (hd0,7)
chainloader +1

-- 
/g

"Outside of a dog, a man's best friend is a book, inside
a dog it's too dark to read" -Groucho Marx