-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sven,

> This what it looks from Linux (using fdisk):
>
> Disk /dev/sda: 160.0 GB, 160041885696 bytes
> 255 heads, 63 sectors/track, 19457 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1          26      204819+  ee  EFI GPT
> Partition 1 does not end on cylinder boundary.
> /dev/sda2              26        5884    47054848   af  Unknown
> Partition 2 does not end on cylinder boundary.
> /dev/sda3   *        5884       18042    97656250+  ef  EFI  
> (FAT-12/16/32)
> Partition 3 does not end on cylinder boundary.
> /dev/sda4           18042       19209     9375000+   7  HPFS/NTFS
> Partition 4 does not end on cylinder boundary.
>
> I'm not sure if I can simply set the type (Id) to "Linux"...

In the MBR, sure.

> The MacOS Partition tool does not show the right type either. I think
> the GUID of the partition on the GPT is set wrong.

Exactly. This is a (major) bug in GNU parted. Parted has an internal  
abstract model, which it maps to the different partition schemes. The  
'boot' flag, which denotes the active partition in MBR, will instead  
cause the partition type to be set to EFI System Partition in a GPT  
table. So any installer tool or user who thinks the same rules apply  
to both MBR and GPT gets broken partition types on GPT. The 0.8  
release of rEFIt will then happily sync this bullshit into the MBR.

> I want to change this and this is my question:
>
>   How can I edit the GUIDs of the GPT?
>   Is there an tool (under Linux or MacOSX) to do this?

I'm not aware of any good tool for this. You could try using parted  
and switching the 'boot' flag off. In theory, it should detect the  
ext2/3 file system on the partition and set the right type. I have  
not tried this myself, though.

> The gptsync tool from the rEFIt does not set/change the right GUID,  
> and
> I'm not sure if there is a problem, which resulted in the current
> types I have set.

gptsync never changes the GPT. However, I've added a workaround to  
gptsync, so that at least the MBR partition ends up with the right  
type. You can download the latest build at http://svn.sourceforge.net/ 
viewvc/*checkout*/refit/trunk/dist/efi/tools/gptsync.efi. Stick it  
in /efi/tools and run the "Partitioning Tool" option in the rEFIt menu.

This may or may not help you with your actual problem using the ext2  
driver in Mac OS X. I don't know which of the partition tables it  
checks.

- -chrisp

- --
chrisp a.k.a. Christoph Pfisterer   "Any sufficiently advanced
[EMAIL PROTECTED] - http://chrisp.de      bug is indistinguishable
PGP key & geek code available        from a feature."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFF3M72r/EAHkwpC28RAkdrAKDl/m+USpj6O4F4olYEMpexNGuSwQCeOINx
U9ZbMDAurlOL3bDQq6Uf3/Q=
=AfnI
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mactel-linux-devel mailing list
Mactel-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mactel-linux-devel

Reply via email to