Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220581 - Gentoo Linux Installer don't know about GPT partition tables
Summary: Gentoo Linux Installer don't know about GPT partition tables
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-05-06 13:07 UTC by yarma
Modified: 2008-07-06 17:44 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yarma 2008-05-06 13:07:33 UTC
happens on the new MacPro early 2008, with the amd64 livecd-2008.0_beta2.

the installer doesn't support gpt labelled partition tables and crash with an error.

the graphical installer only display an error: "There was an error loading the partition table from device /dev/sda. It will not be displayed."
the installer-dialog run as root is more verbose and add a Traceback:
  File ./gli-dialog.py, line 2117, in ?
    gli.run_phase2()  #Do partitioning
  File ./gli-dialog.py, line 1918, in run_phase2
    self.set_partitions()
  File ./gli-dialog.py, line 477, in set_partitions
    devices[drive] = Partitioning.Device(drive, self._arch, self._install_profile)
  File /opt/installer/Partitioning.py, line 69, in __init__
    self._labelinfo = labelinfo[self._disklabel]
KeyError: 'gpt'

how to do the installer works:
in /opt/installer/Partitioning.py on line 21 (labelinfo = {)
duplicate the "mac" line and replace "mac" by "gpt"

  'mac':   { 'ignoredparts': [1], 'extended': False },
  'gpt':   { 'ignoredparts': [1], 'extended': False },

it seems that it is only a not known label, after that the installer can work!

Reproducible: Always

Steps to Reproduce:
1.boot the livecd-amd64-2008.0_beta2
2.run the installer
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-05-06 13:53:03 UTC
Are you sure that actually works? The 'ignoredparts' bit for mac makes the installer ignore the first partition, since that's the Apple Partition Map. Does GPT do something similar?
Comment 2 yarma 2008-05-06 14:11:49 UTC
I don't know how it should work!

I just see that the error code "KeyError: 'gpt'" means that the installer crash because it don't understand what is 'gpt', so I put a 'gpt'-line right after the 'mac'-line and it works...
as the installer use parted and parted supports gpt, I think it's just a forgetting in the installer code

I know that gpt partition table is use by mac computers, but if the installer get a 'gpt' label and didn't find it in the labelinfo function, it simply crash ...
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2008-05-06 15:10:35 UTC
The 'mac' disklabel type applies to the Apple partition table type used on the PPC hardware, which has nothing to do with what's used on the Mactel stuff. I can fix this easily, but I need to know more about GPT.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2008-05-09 19:24:02 UTC
What information do you need about GPT?  While I don't have an Intel-based Mac, I *do* have an Itanium.
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2008-05-09 19:35:14 UTC
Just 2 things:

1) Does it have extended partitions?
2) Does it have any "reserved" partitions (like the Apple partition map or sun's "whole disk")?
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2008-05-13 19:51:38 UTC
Wikipedia told me what I needed to know. This is in SVN.
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2008-07-06 17:44:22 UTC
This should be fixed in 2008.0, which is now released.