bugGNU GRUB - Bugs: bug #28527, update-grub fails to create...

 
 

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

bug #28527: update-grub fails to create Windows 2000 entry correctly

Submitter:  Kurt Frank <kurt_aust>
Submitted:  Fri 08 Jan 2010 11:13:47 PM UTC
   
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name:  Kurt_Aust
Open/Closed:  Closed Release:  1.97
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 09 Jan 2010 08:47:07 AM UTC, comment #1: 


>grub-probe: error: Cannot find a GRUB drive for /dev/sdb1. Check your device.map.


Well and did you check that /dev/sdb is in device.map?

Felix Zielcke <fzielcke>
Group Member
Fri 08 Jan 2010 11:13:47 PM UTC, original submission:  

First I installed Linux Mint 8 x32 (uses GNU GRUB version 1.97~beta4) on a 120GB HDD on the IDE primary master with the following partition scheme:
32GB Primary Ext4 /
 8GB Primary Swap
80GB Primary Ext4 /home

I then removed the drive and placed a 40GB HDD on IDE primary master and installed Windows 2000 Professional (single 40GB primary NTFS partition).

Then I moved the 40GB W2K HDD to the primary slave and put the 120GB Linux Mint HDD back on the primary master.

I proceeded to boot Linux Mint and then ran "update-grub" with the following result:

L7S7A2 user # update-grub
Generating grub.cfg ...
Found Debian background: linuxmint.png
Found linux image: /boot/vmlinuz-2.6.31-14-generic
Found initrd image: /boot/initrd.img-2.6.31-14-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Microsoft Windows 2000 Professional on /dev/sdb1
grub-probe: error: Cannot find a GRUB drive for /dev/sdb1.  Check your device.map.

done
L7S7A2 user #


The appropriate section of "grub.cfg" read as follows:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows 2000 Professional (on /dev/sdb1)" {
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###


Trying to boot Windows 2000 resulted in the following error:

error: invalid signature
Press any key to continue...


Reading through the "grub.cfg" file I (correctly) guessed that it was missing the command that defined "root", specifically:
set root=(hd1,1)

Hence GRUB will boot W2K successfully if the 'grub.cfg" section is modified to:
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows 2000 Professional (on /dev/sdb1)" {
set root=(hd1,1)
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

Kurt Frank <kurt_aust>

 

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

No files currently attached

 

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 fzielcke (Posted a comment)
  • -email is unavailable- added by kurt_aust (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
    2010-04-17 phcoder StatusNone Invalid
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code