Home » Questions » Computers [ Ask a new question ]

How do I get grub to boot Windows from a second hard drive

How do I get grub to boot Windows from a second hard drive

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.

Asked by: Guest | Views: 49
Total answers/comments: 1
Guest [Entry]

"My computer boot from the second disk. This is done in the BIOS. On my first disk is MS DOS (and Debian...)

I'm booting my old MS DOS 6.0 like this:

# on the second disk ...known by the system as /dev/hda
title MS DOS
root (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1

And this is how my disks look with fdisk -l

Disk /dev/hda: 20.0 GB, 20020396544 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 63 506016 6 FAT16
/dev/hda2 64 976 7333672+ f W95 Ext'd (LBA)
/dev/hda3 * 977 989 104422+ 83 Linux
/dev/hda4 990 1112 987997+ 83 Linux
/dev/hda5 64 135 578308+ 6 FAT16
/dev/hda6 136 976 6755301 7 HPFS/NTFS

Disk /dev/hdc: 6448 MB, 6448619520 bytes
255 heads, 63 sectors/track, 784 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 13 104391 83 Linux
/dev/hdc2 14 784 6193057+ 8e Linux LVM"