Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 178586
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joshua Hoblitt <j_gentoo@hoblitt.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
grub-0.97-r3.ebuild 0.97-r3 ebuild modified to apply gpt patch text/plain Joshua Hoblitt 2007-05-15 01:19 0000 4.58 KB Details
grub-gpt.patch grub gpt patch from: http://www.mail-archive.com/bug-grub@gnu.org/msg10632.html text/plain Joshua Hoblitt 2007-05-15 01:21 0000 10.43 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 178586 depends on: Show dependency tree
Bug 178586 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-05-15 01:16 0000
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 From Joshua Hoblitt 2007-05-15 01:19:47 0000 -------
Created an attachment (id=119309) [details]
0.97-r3 ebuild modified to apply gpt patch

------- Comment #2 From Joshua Hoblitt 2007-05-15 01:21:09 0000 -------
Created an attachment (id=119311) [details]
grub gpt patch from: http://www.mail-archive.com/bug-grub@gnu.org/msg10632.html

------- Comment #3 From Coornaert David 2007-07-12 13:21:36 0000 -------
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 From Joshua Hoblitt 2007-07-19 20:48:24 0000 -------
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 From Coornaert David 2007-08-09 12:34:19 0000 -------
(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 From Ramon 2007-10-05 14:47:03 0000 -------
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 From Joshua Hoblitt 2007-10-05 20:05:26 0000 -------
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 From Robin Johnson 2008-02-23 06:59:33 0000 -------
I'm just testing, and will commit this probably on Sunday.

------- Comment #9 From Robin Johnson 2008-02-25 01:56:15 0000 -------
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 From Ramon 2008-02-28 15:35:13 0000 -------
Great, thanx

------- Comment #11 From Coornaert David 2008-02-29 10:36:58 0000 -------
thanks

------- Comment #12 From Thibault Hild 2008-02-29 15:07:00 0000 -------
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 From Robin Johnson 2008-02-29 20:50:54 0000 -------
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 From Thibault Hild 2008-03-03 10:03:47 0000 -------
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...

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug