Hello,

i've tried this once, and it worked. But the tradeoff was, that i  
wasn't able to boot into the Windows installation via paralles. So i  
changed it back. If you don't use parallels workstation for booting  
your windows installation under MacOS then just go ahead.

First you have to get the MBR right. This is easily done via fdisk  
under linux. The problem is, that this will break you GPT. The best  
way to fix this is to correct it by hand with the MacOS Boot CD, a  
console and the "gpt" command. Try man gpt for usage instructions.

For doing this you first have to know the sectors where your  
patitions start and end. You can get these with fdisk under MacOS.  
Type in the console:

fdisk -e /dev/rdisk0

and then enter 'p' for print. This will show you the MBR-Table with  
the numbers you need to edit the GPT.

with these numbers you edit your GPT. First flush the GPT.

gpt destroy /dev/disk0
gpt create /dev/disk0

Now you have a empty GPT. The first entry is created via:

gpt add -b <start-sector> -i 1 -s <size_of_partition_in_sectors> -t  
efi /dev/disk0

The the other entries are created as described. Just change the 'efi'  
part to 'hfs' for the MacOS partition, 'windows' for the NTFS  
partition and 'linux' for the ext2/3 partition and increase the '-i  
1' to '-i 2', 3 and so on. As it specifies the slot in the gpt where  
the entry is created.

When you're done you should check via

gpt show /dev/disk0

Don't be worried about the same GUID for Windows and Linux  
partitions. That is OK. Referring to http://en.wikipedia.org/wiki/ 
GUID_Partition_Table#Partition_type_GUIDs do windows and linux use  
the same GUID-Type. (that's why it's called "globally unique" ;) i  
don't know why!!!)

Good luck. And don't forget to do a backup of you data ;) Messing  
around with MBR and GPT is quite dangerous ;)

After all. You should be able to see your ext2 partition under MacOS :)

cya,
        Sebastian Steinmetz



Am 21.02.2007 um 12:48 schrieb Sven Anders:

> Hello!
>
> I'm using rEFIt to dual (triple) boot MacOS and Linux.
> Now I want to use the MacOS ext2 filesystem driver, but it does not  
> recognize
> my Linux partition. Maybe it's not recognizing the correct type of the
> partition on the GPT.
>
>
>
> 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"...
>
>
> The MacOS Partition tool does not show the right type either. I think
> the GUID of the partition on the GPT is set wrong.
>
>
>
>
> 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?
>
>
> 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.
>
>
> Regards
>  Sven
> -- 
>  Sven Anders <[EMAIL PROTECTED]>                 () Ascii Ribbon  
> Campaign
>                                                  /\ Support plain  
> text e-mail
>  ANDURAS service solutions AG
>  Innstra?e 71 - 94036 Passau - Germany
>  Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0) 
> 851-4 90 50-55
>
> Rechtsform: Aktiengesellschaft - Sitz: Passau - Amtsgericht Passau  
> HRB 6032
> Mitglieder des Vorstands: Sven Anders, Marcus Junker
> Vorsitzender des Aufsichtsrats: Dipl. Kfm. Thomas Tra"ger
> <anders.vcf>
> ---------------------------------------------------------------------- 
> ---
> 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


-------------------------------------------------------------------------
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