[Bug 998097] Re: Grub2 not recognise GPT when presence hybrid MBR
Stas Davydov
stas.davydov at gmail.com
Sat Sep 15 16:04:11 UTC 2012
Hello, YannUbuntu.
Yes. I still have this problem.
Here is link for my boot-info:
http://paste.ubuntu.com/1207043/
Let me ephesize my statement:
If protective GPT record become first - then problem does not appears. It
appears only if it is NOT first.
Reason why I placed it NOT first - becouse my bios (which support UEFI)
refuse to run MBR boot in case it detect protective GPT record.
I have disabled UEFI in bios and using old fashion MBR boot.
I have performed dist-upgrade so here are updated info:
root at helena:~# apt-cache policy grub-pc
grub-pc:
Installed: 1.99-21ubuntu3.1
Candidate: 1.99-21ubuntu3.1
Version table:
*** 1.99-21ubuntu3.1 0
500 http://ua.archive.ubuntu.com/ubuntu/ precise-updates/main amd64
Packages
100 /var/lib/dpkg/status
1.99-21ubuntu3 0
500 http://ua.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
And here are info on version of GRUB
root at helena:~# dlocate -l grub
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-=============================-=============================-============================================================================
un grub <none> (no
description available)
ii grub-common 1.99-21ubuntu3 GRand
Unified Bootloader (common files)
un grub-coreboot <none> (no
description available)
un grub-doc <none> (no
description available)
un grub-efi <none> (no
description available)
rc grub-efi-amd64 1.99-12ubuntu5 GRand
Unified Bootloader, version 2 (EFI-AMD64 version)
ii grub-efi-amd64-bin 1.99-21ubuntu3 GRand
Unified Bootloader, version 2 (EFI-AMD64 binaries)
un grub-efi-ia32 <none> (no
description available)
un grub-emu <none> (no
description available)
ii grub-gfxpayload-lists 0.6 GRUB
gfxpayload blacklist
un grub-ieee1275 <none> (no
description available)
un grub-legacy <none> (no
description available)
un grub-legacy-doc <none> (no
description available)
un grub-linuxbios <none> (no
description available)
ii grub-pc 1.99-21ubuntu3 GRand
Unified Bootloader, version 2 (PC/BIOS version)
ii grub-pc-bin 1.99-21ubuntu3 GRand
Unified Bootloader, version 2 (PC/BIOS binaries)
un grub-yeeloong <none> (no
description available)
un grub2 <none> (no
description available)
ii grub2-common 1.99-21ubuntu3 GRand
Unified Bootloader (common files for version 2)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/998097
Title:
Grub2 not recognise GPT when presence hybrid MBR
Status in “grub2” package in Ubuntu:
New
Bug description:
Root issue:
grub ignore protective GPT record if that record is not the first one in MBR.
Need to correct:
If protective GPT record appears on any place in MBR - grub must consider system as GPT.
I have hybrid GPT/MBR. Hybrid MBR contains protective record 0xEE but that record is NOT first.
Here is output of gdisk (hybrid MBR):
Number Boot Start Sector End Sector Status Code
1 468992 101480447 primary 0x07
2 234375168 234569727 primary 0xEF
3 * 550782882 574927413 primary 0x83
4 1 468991 primary 0xEE
gdisk (GPT):
Number Start (sector) End (sector) Size Code Name
1 2048 206847 100.0 MiB EF00 EFI system partition
2 206848 468991 128.0 MiB 0C01 Microsoft reserved part
3 468992 101480447 48.2 GiB 0700 win7
4 101480448 138344447 17.6 GiB AF00 other
5 390625280 527343615 65.2 GiB 8301 copyfilesWIN7
6 527343616 550780927 11.2 GiB AF00 backupfile
7 581042176 625141759 21.0 GiB 2700 Samsung_diag
8 138344448 234375167 45.8 GiB 0700 DATA
11 574927414 581042175 2.9 GiB 8200
12 234375168 234569727 95.0 MiB EF02 grub
13 550782882 574927413 11.5 GiB 0700 linux
After that it result in such errors:
root at helena:~# grub-install /dev/sda
/usr/sbin/grub-setup: warn: This msdos-style partition label has no post-MBR gap; embedding won't be possible!.
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: will not proceed with blocklists.
invoking grub-mkconfig manually gives:
root at helena:~# grub-mkconfig -o test.conf
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.2.0-24-generic
Found initrd image: /boot/initrd.img-3.2.0-24-generic
Found linux image: /boot/vmlinuz-3.0.0-19-generic
Found initrd image: /boot/initrd.img-3.0.0-19-generic
Found linux image: /boot/vmlinuz-2.6.38-14-generic
Found initrd image: /boot/initrd.img-2.6.38-14-generic
Found linux image: /boot/vmlinuz-2.6.38-8-generic
Found initrd image: /boot/initrd.img-2.6.38-8-generic
Found memtest86+ image: /boot/memtest86+.bin
grub-probe: error: cannot find a GRUB drive for /dev/sda4. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda5. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda6. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda7. Check your device.map.
done
I have tried diferent approach - was removed hybrid MBR (retained only protective record). After that grub-install succeed. After that I have created hybrid MBR (the same as above).
But after reboot I have got "grub rescue" prompt and error: no such partition.
root at helena:~# lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04
root at helena:~# apt-cache policy grub-pc
grub-pc:
Installed: 1.99-21ubuntu3
Candidate: 1.99-21ubuntu3
Version table:
*** 1.99-21ubuntu3 0
500 http://ua.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
100 /var/lib/dpkg/status
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: grub-pc 1.99-21ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-14.58-generic 2.6.38.8
Uname: Linux 2.6.38-14-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Fri May 11 17:45:17 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64+mac (20110426)
SourcePackage: grub2
UpgradeStatus: Upgraded to precise on 2012-05-07 (3 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/998097/+subscriptions
More information about the foundations-bugs
mailing list