You are not logged in.

#1 2007-07-29 10:20:11

gejr
Member
Registered: 2007-05-23
Posts: 92

Little GRUB problem - Dualboot

I have 2 harddisks. One with Windows and one with Arch. I have GRUB installed on the same disk as Arch. When I set the machine to boot from the Windows disk in the BIOS, I get into windows. When I set it to boot the Arch disk I get to the GRUB menu and choosing Arch Linux works fine. However, choosing windows from the menu doesn't work. I'd prefer having GRUB do this choice for me. Bit tedious to use the bios setup as bootloader:)

My menu.lst looks like this:

# general configuration:
timeout   5
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 ro
initrd /boot/kernel26-fallback.img

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

hd0,0 is obviously the Arch Linux. It works fine. hd1,0 must be windows. I can't see why this wouldn't work.

All input appreciated! smile

Offline

#2 2007-07-29 10:29:03

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,033

Re: Little GRUB problem - Dualboot

Windows can only boot from the first hdd.
Fortunately grub has a map command that can fool windows into thinking it is on the first hdd.

# (1) Windows XP Pro
title Windows XP Professional
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
makeactive
chainloader +1

Adapted from arch wiki : Grub_configure_examples


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2007-07-29 10:37:49

gejr
Member
Registered: 2007-05-23
Posts: 92

Re: Little GRUB problem - Dualboot

I suspected it to have something to do with that.. Thank you very very much!

Offline

Board footer

Powered by FluxBB