Grub - booting Windows from second hard drive
Ken Moffat
kmoffat
Mon May 17 11:39:11 PDT 2004
Thought this might make a stepxstep entry. It's an extract from a
posting on the Libranet Users Mailing List.
katsu of the Libranet mailing list wrote:
Grub makes no distiction between IDE and SCSI drives. They are named
hdN, where N is the drive number starting at zero. The partitions are
also numeric starting at zero, (hdN, M).
If you have only 2 hard drives and windows is on the second drive,
then hd1 is where it should be. Windows wants/demands to be on the first
partition.(some say it wants to be on the first partition of the first
drive, but a lot of people have it on a second or third drive. And
apparently, there is a way to place it other than on the first
partition, but I don't know how to do that and it is apparently
complicated to set up.) So: hd1,0 would mean the first partition on the
second drive. Then in grub add these lines at the bottom:
title Windows
root (hd1,0)
makeactive
chainloader +1
"title" is whatever you want to name the windows partition - not
important, whatever name you want.
"root" is where to find windows kernel (if this was a linux partition,
it would be where to find /boot/vmlinuz, the linux kernel)
After you make the entry, you can try to boot. When the grub menu
appears during booting, hit a key, like the space bar. This will stop
automatic booting. Use the arrow keys to select windows and hit enter.
If it fails, you may have specified the wrong location for the windows
kernel. At the bottom of the grub menu are instuctions on how to enter
edit mode and command line mode. You can probably enter edit mode and
then change the line: root (...)
Grub can help you here with its completion abilities.
Type: root (
Now hit the tab key and grub will find and tell you the locations of all
the os kernels. The one for windows will probably be obvious. Make the
change and try again.
In an xterm. You can check out info on grub by:
$ info grub
More information about the Linux-users
mailing list