Grub fails to boot windows correctly after install

Bug #290566 reported by trbailey on 2008-10-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub (Ubuntu)

Bug Description

Binary package hint: grub

Installed from CD
#define DISKNAME Ubuntu 8.10 "Intrepid Ibex" - Alpha i386

This is a minor issue for me but major for most people.
I have a Gigabyte GA-945GC-MX(s2) motherboard with two SATA drives and one PATA.
The controller is set to "auto" in the BIOS supporting a total of 4 drives.
The physical drives are wired as follows:

Disk 0 = WD200 20 gig Ubuntu Ibex BOOT DRIVE
Disk 2 = WD2500 SATA VISTA Drive E:

Boot order is:
Disk 0
Disk 2
Disk 3

A fresh install of Ubuntu Ibex did not properly configure the grub menu.list to boot windows.
It created an entry like this:

title Windows Vista/Longhorn
root (hd2,0) <----------WRONG DISK
Savedefault <---------HUH?
Makedefault <-----TWICE?
Makedefault --------NOT EVEN NECESSARY
Chainloader +1

The entry should have been something like:

title Windows Vista/Longhorn
root hd3
chainloader +1


title Windows Vista/Longhorn
uuid xxxxxxxxxxxxx
chainloader +1

Booting Vista failed until I edited the menu.list to point to the correct drive.
I was able to get it to work properly using any of those below:
root hd3
root (hd3,0)
uuid xxxxxxxxxx

I also noted that the UUID listed in grub is duplicated for my bootable ntfs partition. HD3 has only one partition yet it's listed twice and the partition order is based on the BIOS boot order, not the physical disk order. Not that is matters much with a uuid but this might be helpful in debugging. I've installed the distribution upgrade as of Oct 28th 2008 and still see the issue.

Magnes (magnesus2) wrote :

Duplicate of 21186?

Evertjan Garretsen (egarretsen) wrote :

I have a similar problem, Vista was already installed on my asus X56TR notebook, after installing ubuntu, i couldn't boot Vista anymore, the reason for this is that the grub entry for vista booted my recovery partition located on (hd0,0) and not (hd0,1). It seems like ubuntu doesn't see the recovery parition. I installed Mandriva2009 afterwards, and Mandriva made a correct entry in grub, point to (0,1).

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers