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

Submitted by:  Kurt Frank <kurt_aust>
Submitted on:  Fri 08 Jan 2010 11:13:47 PM UTC  
 
Category: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Kurt_Aust
Open/Closed: ClosedRelease: 
Release: 1.97Reproducibility: 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>
Project 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>

 

No files currently attached

 

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 fzielcke (Posted a comment)
  • -unavailable- added by kurt_aust (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
    Sat 17 Apr 2010 05:43:52 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1