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

Submitter:  Pavel Mendl <pmendl>
Submitted:  Fri 08 Jul 2016 10:00:59 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release:  2.02~beta1
Release:  Reproducibility:  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>
Group 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by pmendl (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-05 phcoder Planned ReleaseNone 2.03+
    2016-07-08 pmendl Attached File- Added 30_os-prober.patch, #37778

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code