Linux – How to get grub to boot Windows from a second hard drive

grublinux

I normally boot into Linux using grub so have linux as the first hard drive in my machine. I have Windows installed onto a second hard drive and am trying to get grub to boot it.

The grub config file contains

title Windows
rootnoverify (hd1,1)
chainloader +1
makeactive

but it does not work.

Best Answer

The Windows boot loader assumes it's the first disk in the system. You need to tell grub to remap the two disks as part of the Windows entry in /boot/grub/menu.lst:

map (hd0) (hd1)
map (hd1) (hd0)

This is only an in-memory change to the way the chain-loaded boot loader sees the disks.

Related Question