Compatible Support Forums: Grub.conf - dual boot xp64 and fedora 4

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Grub.conf - dual boot xp64 and fedora 4

#1 User is offline   ill_c 

  • stranger
  • Group: Members
  • Posts: 1
  • Joined: 24-October 05

Posted 24 October 2005 - 06:10 AM

Please help me with my problem, i'm a complete noob at this.
i had xp64 installed on a SATA2 250gb. I added a slave IDE80gb drive just to put linux on.
my xp works fine, and so i continued to install fedora core 4.
the installation went smoothly and works perfectly, the only problem is that now i can't boot windows!
when grub loads at bootup, i have a choice between windows xp64 and fedora core.... obviously fedora boots and windows doesn't.
This is my grub.conf:-

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hdb
default=1
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core 64 (2.6.11-1.1369_FC4)
root (hd0,0)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img
title Windows XP 64
rootnoverify (hd1,0)
chainloader +1

the device map file is as follows:
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hdb
(hd1) /dev/sda

sda is my sata2 drive, hdb the ide one.
When i select windows grub displays the following:

booting 'windows xp 64'
rootnoverify (hd1,0)
chainloader +1

it just hangs on this screen.....
what do i need to change in the grub.conf for it o recognise the windows installation on the 250gb sata2 drive?
also look at this if at all useful: (fsdisk -l)

Disk /dev/hdb: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 9964 79931407+ 8e Linux LVM

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 8924 71681998+ 7 HPFS/NTFS
/dev/sda2 8925 30514 173421675 f W95 Ext'd (LBA)
/dev/sda5 8925 30514 173421643+ 7 HPFS/NTFS


i have my 250gb drive split into a C: (operating system/program files) and D: (general storage)

please help me get both os' to boot, any replies would be most appreciated.

(amd64 3500+, gigabyte GA-K8N ultra-9, 1gb pc3200, ati x800xl)
0

#2 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 24 October 2005 - 10:56 AM

Try adding this to the menu.lst file;

title Windows at sda1
rootnoverify (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
makeactive
chainloader +1

0

#3 User is offline   padmoz 

  • stranger
  • Group: Members
  • Posts: 2
  • Joined: 27-October 05

Posted 27 October 2005 - 10:19 PM

Try chainloading to your Windows XP like:

chainloader (hd1)+1

or

chainloader (hd1,n)+1

where n is the partition number on the hard disk. The map commands didnt help me. The chainloader command worked well.
0

#4 User is offline   padmoz 

  • stranger
  • Group: Members
  • Posts: 2
  • Joined: 27-October 05

Posted 28 October 2005 - 06:30 PM

Applied the fix to a second machine today, the map commands were necessary on this machine. Full text was:

title Windows XP
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1)+1

Config was:

SATA0: Enterprise Linux 3.0 with grub (from Powerquest drive image. Bootable 80 Gb image)

SATA1: Windows XP Pro. (From CD, was only hdd in machine during install)

Also checkout http://www.gentoo.org/doc/en/grub-error-guide.xml

Problem 16 was got me going.


0

#5 User is offline   tyga 

  • stranger
  • Group: Members
  • Posts: 11
  • Joined: 20-August 04

Posted 29 October 2005 - 06:29 PM

I can confirm that this works very well with Ubuntu 5.10, thanks for the tip.

Here is the original menu.list generated on install:

title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd2,0)
savedefault
makeactive
map (hd0) (hd2)
map (hd2) (hd0)
chainloader +1


And here is the edited list:

title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
rootnoverify (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1)+1

smile
0

#6 User is offline   danleff 

  • Carpal Tunnel
  • Group: Moderators
  • Posts: 2903
  • Joined: 30-August 02

Posted 29 October 2005 - 07:34 PM

So, these were all sata drives? Nice! I think I get it. Good find padmoz!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users