bugGNU GRUB - Bugs: bug #37098, os-prober won't find second...

 
 

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

bug #37098: os-prober won't find second partition where the uefi is.Wrong chainloader options

Submitted by:  Dana Wellen <dwellen>
Submitted on:  Tue 14 Aug 2012 11:01:51 PM UTC  
 
Category: BootingSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: Dana Wellen
Open/Closed: ClosedRelease: 
Release: 1.98Reproducibility: Every Time
Planned Release: None

Thu 16 Aug 2012 07:24:46 PM UTC, comment #1:

os-prober isn't part of GRUB at all (but is managed by debian-boot). And the problem is that it has no support for EFI windows at all.

Vladimir Serbinenko <phcoder>
Project Administrator
Tue 14 Aug 2012 11:01:51 PM UTC, original submission:

Model: ATA WDC WD5000AAKS-0 (scsi)Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 32.3kB 500GB 500GB ntfs Microsoft basic data
2 500GB 500GB 209MB fat32 boot

The stanza created automatically by the 30_os-prober in /etc/grub.d creates
this which points to the first partition (ntfs)
and appears to be a mbr boot config.

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os
$menuentry_id_option 'osprober-chain-746C89606C891E4C' {
insmod part_gpt
insmod ntfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1
--hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 746C89606C891E4C
else
search --no-floppy --fs-uuid --set=root 746C89606C891E4C
fi
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

The uuids are for the ntfs partition not the gpt partition and the chainloader
command is should be:

chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi

grub2-probe --target=fs_uuid /boot/efi/EFI/Microsoft/Boot/bootmgr.efi
3185-A28F

grub2-probe --target=fs_uuid /windows/C/
746C89606C891E4C

As seen the uuid being used is the one for the ntfs but should be the uuid for
the efi partition. And
what I think is casuing the problem is that it isn't on the first partition.

Dana Wellen <dwellen>

 

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 (Posted a comment)
  • -unavailable- added by dwellen (Submitted the item)
  • -unavailable- added by dwellen
  •  

    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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 16 Aug 2012 07:24:46 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Tue 14 Aug 2012 11:01:51 PM UTCdwellenCarbon-Copy-=>Added dwellen

    Back to the top


    Powered by Savane 3.1-cleanup1