Bug 735273 - Command <grub2-mkconfig -o /boot/grub2/grub.cfg> finds Windows partition, adds to grub menu, but menu entry will not boot
Summary: Command <grub2-mkconfig -o /boot/grub2/grub.cfg> finds Windows partition, add...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: 16
Hardware: i386
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: RejectedBlocker
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-02 05:22 UTC by Robert Lightfoot
Modified: 2013-02-14 02:11 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 21:09:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fdisk -l output (23 bytes, text/plain)
2011-09-02 07:28 UTC, Robert Lightfoot
no flags Details
grub.cfg (23 bytes, text/plain)
2011-09-02 08:16 UTC, Robert Lightfoot
no flags Details
grub.cfg - not just a fpaste url (3.01 KB, text/plain)
2011-09-06 20:39 UTC, Mads Kiilerich
no flags Details
fdisk -l (1.17 KB, text/plain)
2011-09-06 20:41 UTC, Mads Kiilerich
no flags Details
grub.cfg that works (2.96 KB, text/plain)
2011-09-08 03:38 UTC, Jon Stanley
no flags Details
fdisk -l from working fc16 grub1 dual boot system (1.13 KB, text/plain)
2011-09-16 01:39 UTC, Robert Lightfoot
no flags Details
menu.lst from working fc16 grub1 dual boot system (1.22 KB, text/plain)
2011-09-16 01:39 UTC, Robert Lightfoot
no flags Details
sector63 from dd command from working fc16 grub1 dual boot system (512 bytes, application/octet-stream)
2011-09-16 01:40 UTC, Robert Lightfoot
no flags Details
sector2048 from dd command from working fc16 grub1 dual boot system (512 bytes, application/octet-stream)
2011-09-16 01:41 UTC, Robert Lightfoot
no flags Details
fdisk -l from non-working fc16 grub2 dual boot system (1.13 KB, text/plain)
2011-09-16 01:41 UTC, Robert Lightfoot
no flags Details
brug.cfg from non-working fc16 grub2 dual boot system (3.69 KB, text/plain)
2011-09-16 01:42 UTC, Robert Lightfoot
no flags Details
sector63 from dd command from non-working fc16 grub2 dual boot system (512 bytes, application/octet-stream)
2011-09-16 01:43 UTC, Robert Lightfoot
no flags Details
sector2048 from dd command from non-working fc16 grub2 dual boot system (512 bytes, application/octet-stream)
2011-09-16 01:43 UTC, Robert Lightfoot
no flags Details
Domain XML from F15 (2.08 KB, text/plain)
2011-10-06 02:52 UTC, Jon Stanley
no flags Details
Domain XML from F14 (2.06 KB, text/plain)
2011-10-06 03:08 UTC, Jon Stanley
no flags Details

Description Robert Lightfoot 2011-09-02 05:22:21 UTC
Description of problem:
Command <grub2-mkconfig -o /boot/grub2/grub.cfg> finds Windows partition, adds to grub menu, but menu entry will not boot.

Version-Release number of selected component (if applicable):
os-prober 1.48.1.fc16
grub2 1.99.0.2.fc16

How reproducible:


Steps to Reproduce:
1. Take Working Windows System and using Windows native partition tools create un-partitioned space for Fedora.
2. Install Fedora selecting free-space option and defaults for Graphical Desktop
3. After Firstboot open a terminal and run "yum install os-prober".
4. Run Command grub2-mkconfig -o /boot/grub2/grub.cfg 
5. Reboot and attempt to select and boot windows. - system will revert to bios prompts and grub menu 
  
Actual results:
Windows Never Boots

Expected results:
Windows should boot.
Additional info:

Comment 1 Robert Lightfoot 2011-09-02 07:28:47 UTC
Created attachment 521157 [details]
fdisk -l output

Comment 2 Robert Lightfoot 2011-09-02 08:16:49 UTC
Created attachment 521169 [details]
grub.cfg

Comment 3 Jon Stanley 2011-09-05 17:53:41 UTC
FWIW, I'm unable to reproduce this particular failure. Here's what I did:

Install Windows 7 Ultimate 64-bit in KVM VM (using default Windows 7 OS Type)

During installation of Windows, I did custom partitioning and left some unused space for Fedora.

Boot F16-Alpha LiveCD, and install to hard drive, choosing "Replace Existing Linux System" in the partitioning dialog (and clicked to review the layout to make sure it wasn't destroying my NTFS partitions, which it wasn't - made no changes here)

Reboot, Windows was not in the menu (which is another bug)

Following the steps in comment #0 and rebooting, Windows was now in the menu and boots fine.

Comment 4 Robert Lightfoot 2011-09-06 02:21:49 UTC
Good to know.  The original problem was with WindowsXPSP3 and F16-Beta.TC1-DVD.

Comment 5 Mads Kiilerich 2011-09-06 20:39:17 UTC
Created attachment 521757 [details]
grub.cfg - not just a fpaste url

Comment 6 Mads Kiilerich 2011-09-06 20:41:39 UTC
Created attachment 521758 [details]
fdisk -l

Comment 7 Mads Kiilerich 2011-09-06 21:07:23 UTC
Robert, does it work if you remove the drivemap line?

Comment 8 Robert Lightfoot 2011-09-07 20:05:53 UTC
No it does not work any better with the drivemap command removed.

Comment 9 Jon Stanley 2011-09-08 03:37:14 UTC
Good to know that you were testing with Windows XP. The bootloader between Winsows XP and Windows 7 is very different. I tried the same test that I tried above, except with a (different) VM that I installed with WinXP Pro and some free space, and it worked fine as well.

I'll attach the grub.cfg that it came up with for me.

Comment 10 Jon Stanley 2011-09-08 03:38:23 UTC
Created attachment 522036 [details]
grub.cfg that works

Comment 11 Robert Lightfoot 2011-09-09 12:32:48 UTC
Jon I am not seeing any differences between your grub.cfg and mine.  I am curious as to what VM engine you are using. I am using Fedora default libvirtd/qemu-kvm on an F14_x86_64 host system.

Comment 12 Robert Lightfoot 2011-09-16 01:39:20 UTC
Created attachment 523480 [details]
fdisk -l from working fc16 grub1 dual boot system

Comment 13 Robert Lightfoot 2011-09-16 01:39:56 UTC
Created attachment 523481 [details]
menu.lst from working fc16 grub1 dual boot system

Comment 14 Robert Lightfoot 2011-09-16 01:40:42 UTC
Created attachment 523482 [details]
sector63 from dd command from working fc16 grub1 dual boot system

Comment 15 Robert Lightfoot 2011-09-16 01:41:13 UTC
Created attachment 523483 [details]
sector2048 from dd command from working fc16 grub1 dual boot system

Comment 16 Robert Lightfoot 2011-09-16 01:41:47 UTC
Created attachment 523484 [details]
fdisk -l from non-working fc16 grub2 dual boot system

Comment 17 Robert Lightfoot 2011-09-16 01:42:30 UTC
Created attachment 523485 [details]
brug.cfg from non-working fc16 grub2 dual boot system

Comment 18 Robert Lightfoot 2011-09-16 01:43:16 UTC
Created attachment 523486 [details]
sector63 from dd command from non-working fc16 grub2 dual boot system

Comment 19 Robert Lightfoot 2011-09-16 01:43:55 UTC
Created attachment 523487 [details]
sector2048 from dd command from non-working fc16 grub2 dual boot system

Comment 20 Fedora Admin XMLRPC Client 2011-09-16 19:08:21 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 21 Oded Arbel 2011-09-24 09:55:29 UTC
I'm having what I think is a similar issue: I've installed Fedora 16 beta RC1 and let anaconda shrink the MS-Windows XP NTFS partition and install Fedora side by side for a dual boot. The boot loader menu then did not contain an option for the windows partition (I opened a separate bug on that) so I ran the grub reconfiguration like mentioned in comment #1.

Now I have a Windows XP setting in the boot menu, but when I try to boot it I get a BSOD. XP was working fine before the installation, and I also installed VirtualBox in Fedora and set it up to boot the raw disk - and that boots the XP just fine.

Comment 22 Robert Lightfoot 2011-09-26 20:15:02 UTC
Ok this problem still exists in F16-Beta.RC2 for me when installing fedora into an existing windowsxp vm.

Comment 23 Robert Lightfoot 2011-09-28 08:20:34 UTC
Final Release Criteria Item 6 "The installer must be able to install into free space alongside an existing clean single-partition Windows installation and either install a bootloader which can boot into the Windows installation, or leave the Windows bootloader untouched and working "  Is not met in this test case.

Comment 24 Adam Williamson 2011-09-30 18:41:49 UTC
oded: I think yours is a different issue; if you get a BSOD that at least means Windows' bootloader fired and got some distance into Windows startup, as you only get BSODs from Windows' kernel, not from the bootloader.

Bob's issue, as I understand it, happens before that: the Windows bootloader simply isn't firing properly.

Comment 25 Adam Williamson 2011-09-30 18:48:56 UTC
Discussed at 2011-09-30 blocker review meeting. Agreed we need more detail here, and as things stand, it would be unlikely to be accepted as a blocker, as we more require _some_ dual boot tests to work than absolutely all of them to work.

Bob, if you can do a bit more testing - see if you can reproduce with a clean VM and fresh Windows install - that would help. thanks!

We will re-visit this next week.

Comment 26 Jon Stanley 2011-10-02 21:48:50 UTC
I'll provide some additional test coverage as well, probably tomorrow or Tuesday (depending on Real Life(TM) obligations). As I have a MS subscription that allows me access to pretty much any Windows OS, I need to know EXACTLY what scenario to test. Thus far, I've done Win7 Ultimate and WinXP Pro without issue (but not Vista).

Is there some other scenario that I'm missing (note that I'll also refresh my Fedora install media before trying again)

Comment 27 Jon Stanley 2011-10-03 15:59:24 UTC
Also, regarding comment #21, that wouldn't be a blocker. NTFS resize is dicey at best, and we don't support it as a release-blocking criteria. So if you haven't, please open a separate bug (and I can test that scenario as well, but I don't hold high hopes for it working) for that.

Comment 28 Robert Lightfoot 2011-10-03 17:46:52 UTC
Jon can you start with an FC14-x86_64 host system and create a qemu/kvm guest using VMM which is 32GB img with WindowsXPSP2 installed and upgraded with all Microsoft Updates.  Then using Partition Magic or some other native Windows partitoning tool shrink the 32gb windows plattter to allow for 12gb of free space.
Then try using FC16.Beta-RC4 to install Fedora. If the os-prober feature which is now imcluded in RC4 works you'll have a grub2 menu with a WIndows OS option that fails to boot.

Comment 29 Jon Stanley 2011-10-06 01:22:02 UTC
I can confirm this bug using the steps described in comment #28 (except that I didn't use some windows thing to resize NTFS since I don't have access to such a thing and instead made the filesystem small to begin with)

My other test setup (which works successfully) is installed using an F15 hypervisor and WinXP Pro with SP3. I'll see if installing with the SP3 media to start with makes a difference (perhaps there was a bugfix to the Windows bootloader?)

Comment 30 Jon Stanley 2011-10-06 02:50:00 UTC
And it gets more interesting. On a F15 hypervisor performing the same steps in I did on the F14 hypervisor, I can't reproduce this.

I'll attach the domain XML from both, but I'm not entirely sure that'll help - the problem may lie somewhere like gPXE or SeaBIOS or such. I'm also not sure how to further debug - pointers?

Comment 31 Jon Stanley 2011-10-06 02:52:27 UTC
Created attachment 526609 [details]
Domain XML from F15

Comment 32 Jon Stanley 2011-10-06 03:08:51 UTC
Created attachment 526610 [details]
Domain XML from F14

Comment 33 Robert Lightfoot 2011-10-06 09:04:13 UTC
Reading Jon's latest above I'd say the issue lies in the resize step -- I'll ahve to try with a small windows partition to start and see what happens.

Comment 34 Jon Stanley 2011-10-06 17:03:13 UTC
No, it's not the resize step - I can reproduce this on F14, but not F15 as the host system.

So the problem lies in F14, not in F16.

Comment 35 Adam Williamson 2011-10-07 17:52:08 UTC
Bob: "Reading Jon's latest above I'd say the issue lies in the resize step"

note that he said he *could* reproduce the bug, so the difference in how he did resizing is not the issue. The issue seems to be caused by using F14 as the VM host.

Comment 36 Adam Williamson 2011-10-07 17:55:45 UTC
Discussed at the 2011-10-07 blocker review meeting. Rejected as a blocker as the trigger circumstances appear to be very specific, and not entirely F16-related: seems to be to do with using F14 as the VM host. The criterion in question is intentionally worded slightly loosely - "The installer must be able to install into free space alongside an existing clean single-partition Windows installation and either install a bootloader which can boot into the Windows installation, or leave the Windows bootloader untouched and working" - it doesn't really require *every* attempt to install alongside Windows to be successful, just for the installer to be capable of doing it. Which it clearly is, as it works in most situations tested so far, this specific one does not work.

Comment 37 Robert Lightfoot 2011-10-08 21:04:13 UTC
My schedule didn;t permit me to make blocker meeting, but I would concur based on work of Jon Stanley.  I would ask someone with Centos 5 or Centos 6 as the vm host to test this and make sure it is not a pre Fc15 os issue?  But that still while NTH isn;t a blocker.

Comment 38 Mads Kiilerich 2012-04-16 17:59:30 UTC
Has this issue been solved?

Or can it be reproduced now - especially when f14 no longer is supported?

If so: Is it also an f17 issue?

Comment 39 Robert Lightfoot 2012-04-17 01:33:00 UTC
Response to Mads Kiilerich post 2012-04-16 from Bob Lightfoot.
1.  Bad News, I no longer have the F14 Virtual Host on which this bug originally occurred for me.
2.  Good news I do now have a Centos 6.2 Virtual Host on which to attempt and recreate the problem with F16 DVD Media and an Initially XP Guest VM.
3.  Bad News my $dayjob is on a maintenance shutdown week thru 2012-04-23 which demands much of my time and attention so I won't be testing soon - sorry.
4.  Good News -- I've not heard of any XPSP3 / FC17 Dual Boot issues in my skimming of Bugzilla and Test Mailing List.

Final Note : I will re-test as soon a schedule permits and post results.  If no one else is having issues my vote we be that this is again a non-blocker for F17.

Comment 40 Mads Kiilerich 2012-04-17 12:39:15 UTC
Ok - we will wait for more information.

Comment 41 Vladimir Serbinenko 2012-06-03 18:43:14 UTC
This may be a case of drivemap problem I've just fixed upstream

Comment 42 Mads Kiilerich 2012-06-12 12:48:55 UTC
(In reply to comment #41)
> This may be a case of drivemap problem I've just fixed upstream

This fix can be tested with an unofficial scratch build with a snapshot from bzr: grub2-2.0-0.37.beta6.4462.fc17 at http://koji.fedoraproject.org/koji/taskinfo?taskID=4152623

Comment 43 Fedora End Of Life 2013-01-16 16:56:40 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 44 Fedora End Of Life 2013-02-13 21:09:25 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 45 Robert Lightfoot 2013-02-14 02:11:45 UTC
This bug was reproduced during the F18 testing cycle and resolved there.


Note You need to log in before you can comment on or make changes to this bug.