GRUB and non-first HDD 

Newsgroups: comp.os.linux.setup
Date: 2002-10-17 17:36:34 PST

I'm having some problems getting my Windows partition to boot using GRUB. GRUB's installed on the MBR of the 1st disk; I've got the following hdd setup:

# First HDD (master)
ext3 /boot on hd0,0 (bootable)
swap on hd0,1
ext3 / on hd0,2
(Logical FAT partition on hd0,3)
# Second HDD (slave)
FAT32 Primary Partition on hd1,0 (bootable)

I can boot the 2nd hdd into Windows via the bios if necessary (hence, the MBR is intact).

I've tried variations of the following at the grub command line:

grub > map (hd0) (hd1)
grub > map (hd1) (hd0)
grub > unhide (hd1,0)
grub > hide (hd0,3)
grub > rootnoverify (hd1,0)
grub > chainloader (hd1,0)+1
grub > makeactive
grub > boot

(I was able to boot Windows on the 2nd hdd via the grub command line before I created the logical FAT32 volume on the 1st hdd).

Craig

GRUB and non-first HDD 

I finally got it working like this:

# Swap the drives around so that Windows thinks it is master
grub > map (hd0) (hd1)
grup > map (hd1) (hd0)
# Tell it where the Win boot partition is
grub > rootnoverify (hd1,0)
grub > chainloader +1
grub > makeactive
grub > boot

Craig

GRUB and non-first HDD 

> I'm having some problems getting my Windows partition to boot using GRUB.
> GRUB's installed on the MBR of the 1st disk;

I got mine to boot windows on the primary slave by using LILO. I couldn't figure out the commands for GRUB, they didn't make sense. I have posted my LILO config in case you decide you want it :)

# lilo.conf
prompt
timeout=40
default=Windows
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear
image=/boot/vmlinuz-2.4.7-10
 label=Redhat
 initrd=/boot/initrd-2.4.7-10.img
 read-only
 root=/dev/hda2
 append="hdd=ide-scsi"
other=/dev/hdb
 label=Windows
 map-drive=0x80
        to=0x81
 map-drive=0x81
        to=0x80
#  Must make sure to put at least 2 hash symbols (#)
#  for some reason LILO needs them
# end lilo.conf

Will Mays