Failure to boot Windows 7 after installing Karma

Bug #414178 reported by Roderic Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have spent a day remedying this situation and I still do not fully understand what has gone on.

I have three hard discs:

sda - single partition - Windows Vista was installed on this and more recently windows 7 release candidate. I use this infrequently to run Xara Xtreme - the windows version is better than the linux version.

sdb -two partitions - Ubuntu Jaunty in an ext4 partition and a swap partition

sdc - single fat 32 parttion for Data backup. This is a new disk and 1TB is a fat32 partition and the rest (approx 500GB) was unused.

After installing Karmic alpha 4 on the unused part of Disk 3 (c) the system refused to boot windows. After a lot of trial and error I reinstalled Windows and Jaunty and removed Karmic and repaired the MBR but for some reason Windows would not boot. Booting went to the Grub Legacy menu and windows would not boot. Ubuntu booted without a problem.

I have discovered from Gparted that Windows 7 installs a second partition (100MB) and boots from this. This partition was on the sdc disc - disk three - Not the windows installation partition sda (drive c)

menu.lst had windows booting from hd(0,0) and this needed changing to hd(1,1) to work although I had calculated it should be hd(2,1)

It is all working fine now. I wonder if Grub 2 can cope with windows 7 booting from a second partition?

Tags: grub2
Roderic Jones (rodericj)
tags: added: grub2
affects: ubuntu → grub2 (Ubuntu)
Revision history for this message
Felix Zielcke (fzielcke) wrote : Re: [Bug 414178] [NEW] Failure to boot Windows 7 after installing Karma

Am Mittwoch, den 19.08.2009, 02:22 +0000 schrieb Launchpad Bug Tracker:
>
> menu.lst had windows booting from hd(0,0) and this needed changing to
> hd(1,1) to work although I had calculated it should be hd(2,1)
>
> It is all working fine now. I wonder if Grub 2 can cope with windows 7
> booting from a second partition?
>

It can. It would be good to know how the generated grub.cfg from karmic
looked like.
os-prober should detect it and add so update-grub should add it to
grub.cfg

Revision history for this message
Roderic Jones (rodericj) wrote : Re: [Bug 414178] [NEW] Failure to boot Windows 7 after installing Karma

os-prober gives:

/dev/sdc2:Windows Vista (loader):Windows:chain

fdisk -l gives:

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeee5a48c

   Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 7 HPFS/NTFS
/dev/sda4 * 1 1 0 0 Empty
Partition 4 does not end on cylinder boundary.

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6434ac01

   Device Boot Start End Blocks Id System
/dev/sdb1 * 1 60798 488359903+ 83 Linux
/dev/sdb2 60799 60801 24097+ 5 Extended
/dev/sdb5 60799 60801 24066 82 Linux swap / Solaris

Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005363b

   Device Boot Start End Blocks Id System
/dev/sdc1 1 127482 1023999133+ b W95 FAT32
/dev/sdc2 * 127483 127495 102400 7 HPFS/NTFS

There is no grub.cfg as I have completely removed Karmic so that I
could get things working again.

I have just backed up and I will install Karmic and send you what the
grub.cfg contains later.

2009/8/19 Felix Zielcke <email address hidden>:
> Am Mittwoch, den 19.08.2009, 02:22 +0000 schrieb Launchpad Bug Tracker:
>>
>> menu.lst had windows booting from hd(0,0) and this needed changing to
>> hd(1,1) to work although I had calculated it should be hd(2,1)
>>
>> It is all working fine now. I wonder if Grub 2 can cope with windows 7
>> booting from a second partition?
>>
>
> It can. It would be good to know how the generated grub.cfg from karmic
> looked like.
> os-prober should detect it and add so update-grub should add it to
> grub.cfg
>
> --
> Failure to boot Windows 7 after installing Karma
> https://bugs.launchpad.net/bugs/414178
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Roderic Jones

Trout Cottage
Llanvihangel Crucorney
Abergavenny
Monmouthshire
NP7 7NB

Telephone 01873 890050

Revision history for this message
Roderic Jones (rodericj) wrote :
Download full text (15.2 KiB)

Karmic has now been installed but grub (legacy) shows only Jaunty and Windows!!!

os-prober now gives:

/dev/sdc2:Windows Vista (loader):Windows:chain
/dev/sdc5:Ubuntu karmic (development branch) (9.10):Ubuntu:linux

######################################################################################

fdisk -l now gives:

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeee5a48c

   Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 7 HPFS/NTFS
/dev/sda4 * 1 1 0 0 Empty
Partition 4 does not end on cylinder boundary.

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6434ac01

   Device Boot Start End Blocks Id System
/dev/sdb1 * 1 60798 488359903+ 83 Linux
/dev/sdb2 60799 60801 24097+ 5 Extended
/dev/sdb5 60799 60801 24066 82 Linux swap / Solaris

Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005363b

   Device Boot Start End Blocks Id System
/dev/sdc1 1 127482 1023999133+ b W95 FAT32
/dev/sdc2 * 127483 127495 102400 7 HPFS/NTFS
/dev/sdc3 127496 182401 441032445 5 Extended
/dev/sdc5 127496 180921 429144313+ 83 Linux
/dev/sdc6 180922 182401 11888068+ 82 Linux swap / Solaris

##############################################################################################

grub.cfg is:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set root=(hd2,5)
search --no-floppy --fs-uuid --set 434ff787-9951-4019-9e90-c102f8595239
if loadfont /usr/share/grub/ascii.pf2 ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  if terminal_output.gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
set timeout=10
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-5-generic" {
 set root=(hd2,5)
 search --no-floppy --fs-uuid --set 434ff787-9951-4019-9e90-c102f8595239
 linux /boot/vmlinuz-2.6.31-5-generic
root=UUID=434ff787-9951-4019-9e90-c102f8595239 ro quiet splash
 initrd /boot/initrd.img-2.6.31-5-generic
}
menuentry "Ubuntu, Linux 2.6.31-5-generic (recovery mode)" {
 set root=(hd2,5)
 search --no-floppy --fs-uuid --set 434ff787-9951-4019-9e90-c102f8595239
 linux /boot/vmlinuz-2.6.31-5-generic
root=UUID=434ff787-9951-4019-9e90-c102f8595239 ro single
 ...

Revision history for this message
Felix Zielcke (fzielcke) wrote : Re: [Bug 414178] [NEW] Failure to boot Windows 7 after installing Karma

Am Mittwoch, den 19.08.2009, 20:19 +0000 schrieb Roderic Jones:
> Karmic has now been installed but grub (legacy) shows only Jaunty and
> Windows!!!
>

grub.cfg looks good.
So just make sure you load grub2 instead of grub-legacy.
Maybe the installer put it on a different disk
or just use grub-install /dev/sda from karmic so grub-legacy gets
replaced with grub2 in MBR.

Revision history for this message
Roderic Jones (rodericj) wrote : Re: [Bug 414178] [NEW] Failure to boot Windows 7 after installing Karma

I am afraid this does not work. Grub Legacy will boot to Windows or Jaunty.

Running Karmic from the live CD - it is not possible to mount the
Karmic partition.

It is possible to run Karmic using the Super-Grub disc - this shows
the Grub2 menu and then boots into Karmic.

Runiing grub-install /dev/sda appears to be satisfactory , the three
HDs are listed correctly, but on re-booting the grub legacy menu
appears.

I hope this helps - I would suggest that Karmic is supplied with
Grub-Legacy until these problems are sorted out.

I note that the Windows 7 partitions (three of them) are causing
problems with windows as well, there are many reports on the Internet.
For some reason grub2 does not seem to able to permanently alter the
MBR.

Best wishes

Rod Jones

2009/8/20 Felix Zielcke <email address hidden>:
> Am Mittwoch, den 19.08.2009, 20:19 +0000 schrieb Roderic Jones:
>> Karmic has now been installed but grub (legacy) shows only Jaunty and
>> Windows!!!
>>
>
> grub.cfg looks good.
> So just make sure you load grub2 instead of grub-legacy.
> Maybe the installer put it on a different disk
> or just use grub-install /dev/sda from karmic so grub-legacy gets
> replaced with grub2 in MBR.
>
> --
> Failure to boot Windows 7 after installing Karma
> https://bugs.launchpad.net/bugs/414178
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Roderic Jones

Trout Cottage
Llanvihangel Crucorney
Abergavenny
Monmouthshire
NP7 7NB

Telephone 01873 890050

Revision history for this message
Roderic Jones (rodericj) wrote :

Dear Felix,

I have more information. It occurred to me that karmic might not be
booting because its partition started beyond 1TB. I deleted the 1TB
partition at the start of sdc and installed karmic on that space and
it would still only boot windows 7 (on sda) and Jaunty (on sdb) using
grub legacy.

I have ediied the bios to change the hard disc boot order.

sda 1st - Grub legacy boots jaunty or windows 7
sdc 1st - Boots direct to windows 7 - this disk contains Karmic and
the extra windows 7 partition
sdb 1st - Boots grub 2 and windows 7, Karmic or Jaunty

It seems to me that the grub installer is writing the MBR to the wrong disk

I hope this helps. I enclose the output of fdisk-l

Best wishes

Rod Jones

#############################################################################################
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xeee5a48c

   Device Boot Start End Blocks Id System
/dev/sda1 1 30401 244196001 7 HPFS/NTFS
/dev/sda4 * 1 1 0 0 Empty
Partition 4 does not end on cylinder boundary.

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x6434ac01

   Device Boot Start End Blocks Id System
/dev/sdb1 * 1 60798 488359903+ 83 Linux
/dev/sdb2 60799 60801 24097+ 5 Extended
/dev/sdb5 60799 60801 24066 82 Linux swap / Solaris

Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0005363b

   Device Boot Start End Blocks Id System
/dev/sdc1 1 127480 1023983068+ 83 Linux
/dev/sdc2 * 127483 127495 102400 7 HPFS/NTFS
/dev/sdc3 127496 182401 441032445 b W95 FAT32
/dev/sdc4 127481 127482 16065 5 Extended
/dev/sdc5 127481 127482 16033+ 82 Linux swap / Solaris

2009/8/20 Felix Zielcke <email address hidden>:
> Am Mittwoch, den 19.08.2009, 20:19 +0000 schrieb Roderic Jones:
>> Karmic has now been installed but grub (legacy) shows only Jaunty and
>> Windows!!!
>>
>
> grub.cfg looks good.
> So just make sure you load grub2 instead of grub-legacy.
> Maybe the installer put it on a different disk
> or just use grub-install /dev/sda from karmic so grub-legacy gets
> replaced with grub2 in MBR.
>
> --
> Failure to boot Windows 7 after installing Karma
> https://bugs.launchpad.net/bugs/414178
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Roderic Jones

Trout Cottage
Llanvihangel Crucorney
Abergavenny
Monmouthshire
NP7 7NB

Telephone 01873 890050

Felix Zielcke (fzielcke)
affects: grub2 (Ubuntu) → grub-installer (Ubuntu)
Revision history for this message
Roderic Jones (rodericj) wrote :

I have tried alpha 5 and the situation is worse. sda (windows 7) boots to grub legacy and gives a choice of Jaunty or windows.

sdb boots to grub2 - karmic no choice

sdc boots to grub2 - karmic no choice.

There is something seriously wrong with the grub installer.

Revision history for this message
apt-ghetto (apt-ghetto) wrote :

Thank you for reporting this bug to Ubuntu. Karmic Koala reached EOL on April 30, 2011.
See this document for currently supported Ubuntu releases: https://wiki.ubuntu.com/Releases

Changed in grub-installer (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for grub-installer (Ubuntu) because there has been no activity for 60 days.]

Changed in grub-installer (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.