grub2 fails to boot windows correctly

Bug #454930 reported by Ned
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Expired
Undecided
Unassigned
Nominated for Karmic by roland

Bug Description

Binary package hint: grub2

After installing Ubuntu 9.10 beta, windows fails to boot. On selecting windows on the grub boot menu, I get an error similar to:

"Windows could not start because the following file is missing or corrupt:
...\system32\ntoskrnl.exe"

I can boot windows fine using the "Super Grub Disk" boot CD from http://www.supergrubdisk.org/, so it seems like it's not a problem with windows. This is the automatically generated entry in grub.cfg:

menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
        insmod ntfs
        set root=(hd0,1)
        search --no-floppy --fs-uuid --set 6e2cf50d2cf4d0d7
        drivemap -s (hd0) ${root}
        chainloader +1
}

Partition info from parted:
Model: ATA ST3200820AS (scsi)
Disk /dev/sda: 200GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 32.3kB 105GB 105GB primary ntfs boot
 2 105GB 157GB 52.4GB primary ext4
 3 157GB 159GB 2097MB primary linux-swap(v1)
 4 159GB 200GB 40.7GB primary ext3

ProblemType: Bug
Architecture: i386
Date: Sun Oct 18 20:41:27 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: grub2 (not installed)
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: grub2
Uname: Linux 2.6.31-14-generic i686
XsessionErrors:
 (gnome-settings-daemon:1756): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:1756): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (polkit-gnome-authentication-agent-1:1871): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (nautilus:1852): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (gnome-panel:1851): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 24

Revision history for this message
Ned (ned-tropic) wrote :
Revision history for this message
hospadar (hospada1) wrote :

I have the same issue. My grub entry looks identical (except the uuid is different, and I have verified it to be the correct uuid)

Revision history for this message
Ernesto Gutierrez (ernesto-g3) wrote :

I have the same problem.

In my case i tried upgrading grub to grub2. When testing grub2 via chainloading, the ubuntu entries worked fine however the windows one doesnt. It gives me this error.

Booting into windows under legacy grub is ok.

Any ideas or suggestions?

Revision history for this message
Konrad Materka (kmaterka) wrote :

This bug seems to be similar with bug #402154 which is marked as solved, but shouldn't be, another are bugs #475881 and #486499.
All this bugs are about Windows 7 (mostly 64bit), but probably they are connected. It seems, that windows bootloader starts, but because of grub2, it can't find windows root partition.

Too bad that you didn't paste complete path, instead of "..." in:

"Windows could not start because the following file is missing or corrupt:
...\system32\ntoskrnl.exe"

On Windows 7 system immediately reboots after error, so I can't say if it is an error about missing files or something else.

Revision history for this message
Donatas Olsevičius (donatas-o) wrote :

I probably have the same error, just cannot read the BSOD output - it reboots too quickly.

Well, LILO was fine, grub was usable and grub2 just makes me nervous... I want to play a new game and cannot boot windows :)

Revision history for this message
Donatas Olsevičius (donatas-o) wrote :

Sorry, my (and MS) mistake. Just a week ago I've changed SATA mode from IDE to AHCI to be able to use eSATA HDD. Changing it back solved this win boot problem.

Revision history for this message
Supay (jabbaspalace) wrote :

This error affects me too. It only first appeared when I upgraded from Grub Legacy to Grub 2 after upgrading from Ubuntu 9.04 to 9.10. Grub 2 is driving me mad, I changed nothing other than Grub and have been poking away trying to fix this with my novice skills for many months. I just use Windows bootloader straight into XP and boot Linux from a boot CD now.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in grub2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Jean.c.h (slug71) wrote :

Is it possible this bug is a duplicate of,

https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/402154

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in grub2 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in grub2 (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.