bugGNU GRUB - Bugs: bug #48448, drivemap needed for Windows7 but...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #48448: drivemap needed for Windows7 but prevented in update-grub

Submitted by:  Pavel Mendl <pmendl>
Submitted on:  Fri 08 Jul 2016 10:00:59 PM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: 2.02~beta1Reproducibility: Every Time
Planned Release: 2.03+

Sun 10 Jul 2016 05:51:04 PM UTC, comment #1:

Could you run https://github.com/arvidjaar/bootinfoscript and attach results?

Andrei Borzenkov <arvidjaar>
Project Member
Fri 08 Jul 2016 10:00:59 PM UTC, original submission:

Recently I installed second SDD drive on my dual-boot rig and separated Windows-related and Linux-related partitions. Thus grub boot partition (and rest of Linux) appears now on /dev/sdb (actually boot = /dev/sdb2), which is first disk to be booted, thus becomes (hd0). Windows remained on original /dev/sda device.

Run update-grub and everything seemed OK after Linux reboot, however Windows (Windows 7 Ultimate) popped up screen requesting to run some bcd reparation via Repair disk.

Turned out, that simple (manual) adding line "drivemap (hd0) ($root)" into grub.cfg made Windows booting again lika a charm.

Problem is, that Debian actualization of kernel packages runs update-grub regularly, so it is a bit tricky how to make change persistent.

After some hacker-like snuffing in /etc/grub.d/30_os-prober script I found out, that even the code for adding this line is in place, but is CONDITIONALLY PREVENTED a.o. for Windows 7 (what seems like a bug to me).

I made dirty workaround, which you can see in the attached patch file - more to allow fast localization in the script, than the real patch to propagate to release. However this works for me anyways and I want to share the idea even though it needs to be polished further.

Pavel Mendl <pmendl>

 

Attached Files
file #37778:  30_os-prober.patch added by pmendl (411B - text/x-patch - Fast-and-dirty workaround making Windows on non-(hd0) drive boot again even after update-grub.)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by arvidjaar (Posted a comment)
  • -unavailable- added by pmendl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Mar 2017 07:13:30 PM UTCphcoderPlanned ReleaseNone=>2.03+
    Fri 08 Jul 2016 10:00:59 PM UTCpmendlAttached File-=>Added 30_os-prober.patch, #37778

    Back to the top


    Powered by Savane 3.1-cleanup1