Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178586 - sys-boot/grub-0.97-x does not support GPT parition tables
Summary: sys-boot/grub-0.97-x does not support GPT parition tables
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 01:16 UTC by Joshua Hoblitt
Modified: 2008-03-03 10:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0.97-r3 ebuild modified to apply gpt patch (grub-0.97-r3.ebuild,4.58 KB, text/plain)
2007-05-15 01:19 UTC, Joshua Hoblitt
Details
grub gpt patch from: http://www.mail-archive.com/bug-grub@gnu.org/msg10632.html (grub-gpt.patch,10.43 KB, text/plain)
2007-05-15 01:21 UTC, Joshua Hoblitt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Hoblitt 2007-05-15 01:16:13 UTC
Grub 0.97 does not include support for GPT partition tables and
upstream has stated that they have no intention of adding this support
as it is a Grub "2" feature.  Perhaps this is a pessimistic view point but
I don't believe we'll be seeing a stable Grub "2" release for some time.

This going to become a serious problem for many users in the near future
as storage devices in excess of 2TB are becoming more and more common.
We're likely just few years away from seeing single disks in this size
range.

In my case, I've encountered this issue already with 10TB RAID sets that
I'd like to be able to boot from.  I've been able to work around this
limitation in two ways.  1) cutting the RAID set up into multiple
volumes with first one being smaller than 2TB so it can host a msdos
partition table or 2) building my own liveCD with a patched version of
grub that supports GPT partition tables and using a portage overlay with
the same patched version of grub.  It is my belief that fix #2 is the
more elegant solution.  Therefore I'd like to propose that Gentoo
patches grub to support GPT partitions.  The patch that I pulled from
the grub mailing lists to add this support is attached and I can attest
that it is functional in a production environment.


Reproducible: Always
Comment 1 Joshua Hoblitt 2007-05-15 01:19:47 UTC
Created attachment 119309 [details]
0.97-r3 ebuild modified to apply gpt patch
Comment 2 Joshua Hoblitt 2007-05-15 01:21:09 UTC
Created attachment 119311 [details]
grub gpt patch from: http://www.mail-archive.com/bug-grub@gnu.org/msg10632.html
Comment 3 Coornaert David 2007-07-12 13:21:36 UTC
Is this patch to be pushed in quite soon ?

if not how could I do it ?
I've tried replacing 0.97-r3.ebuild (v1.10) with the one here, 
but then emerge complains because of Manifest signatures  incorrect
and so I reverted ...

Is there trouble with GPT for lilo  too ?
while elilo is masked for amd64....
Comment 4 Joshua Hoblitt 2007-07-19 20:48:24 UTC
Coornaert David - you need to rebuild the digest for the ebuild

Is there any interest or even hope of a response on this issue from the grub ebuild maintainer?
Comment 5 Coornaert David 2007-08-09 12:34:19 UTC
(In reply to comment #4)
> Coornaert David - you need to rebuild the digest for the ebuild
> 
> Is there any interest or even hope of a response on this issue from the grub
> ebuild maintainer?
> 
back from holidays, sorry for late reaction,
Indeed I figured that I had to fiddle the digest,
but I never did this kind of stuff,
I'd really appreciate directions/howtos for this case

in all cases, +2Tera disks are more and more common, hence I'd advocate for this patch to reach the standard grub ebuild

who's in charge of this ?
Comment 6 Ramon 2007-10-05 14:47:03 UTC
This patch works for us on amd64 and we need it badly for our 4tb systems.

Could this be integrated in the default grub-0.97 ebuild ?
Comment 7 Joshua Hoblitt 2007-10-05 20:05:26 UTC
We've been using this patch in our internal portage_overlay tree for months and months and both x86 and amd64.  There have been zero problems.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-23 06:59:33 UTC
I'm just testing, and will commit this probably on Sunday.
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-25 01:56:15 UTC
Ok, it works in both non-GPT and GPT disks fine.
For non-GPT, I did my laptop, and for GPT I did my new 1U server (/dev/sda is >2Tb as it's a nice 3ware array).

I've put it in the tree now, I'll blog about using it so that the Planet feeds pick it up.
Comment 10 Ramon 2008-02-28 15:35:13 UTC
Great, thanx
Comment 11 Coornaert David 2008-02-29 10:36:58 UTC
thanks
Comment 12 Thibault Hild 2008-02-29 15:07:00 UTC
I'm using a gentoo based system embedded in an initrd as a platform installer.
The linux kernel is booted from PXE and operates the following:
- partitions the HDDs
- installs grub (built from portage)
- installs other OS and soft

Then the platform restarts and boots the other OS via grub.

When using grub-0.97-r3 everything goes well.
When just emerging grub-0.97-r4, something goes wrong. When the platform restarts at the end of the install, it tries to boot on the HDD which MBR contains grub stage-1 and suddenly restart again (over and over as long as this HDD is the first boot device).

What is the preferred way to diagnosis this problem ?
Comment 13 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-02-29 20:50:54 UTC
thild: please open a new bug, and include if you see any grub letters in the output (use a grub config that outputs to a serial port). In that bug, please also include details about your setup.
Comment 14 Thibault Hild 2008-03-03 10:03:47 UTC
Robin, I've logged a new bug here:
http://bugs.gentoo.org/show_bug.cgi?id=212165

I need to check with a serial line on spare time...