Re: GPT hard drive repartitioning
Re: GPT hard drive repartitioning
- Subject: Re: GPT hard drive repartitioning
- From: Joe van Tunen <email@hidden>
- Date: Fri, 07 Dec 2007 11:42:58 -0800
- Thread-topic: GPT hard drive repartitioning
Title: Re: GPT hard drive repartitioning
> From: Paul Wasmund <email@hidden>
> Date: Fri, 7 Dec 2007 11:18:43 -0600
>
> On Leopard, I can repartition a GPT hard drive using the gpt command
> line tool. This breaks if a BootCamp partition has been added to a
> drive. After installing a BootCamp partition, doing a gpt remove only
> changes a n HFS partition into a MBR Part 175 and still the space
> can't be used in a subsequent gpt add. Is there a way around this or
> a different utility that can change GPT disks partition once a
> BootCamp partition has been added?
>
> Paul Wasmund
I’ve never tried gpt by itself. I’m not sure what you mean by “changes an HFS partition into a MBR Part 175. 175=AF which is the ID for HFS+ in the MBR.
Have you tried using the diskutil command for partitioning?
The 3 partitioning commands that I know of are:
diskutil
gpt
fdisk
Use fdisk to edit the MBR. The first partition (ID EE for GPT) in a disk formatted for BootCamp includes everything up to the first usable partition. The other 3 partitions in the MBR include the partitions you want to make visible to Windows (including the partition(s) you want to boot Windows from).
You might also want to look into iPartition (user friendly partitioning application) and rEFIt (boot partition selector EFI stuff for multiple Windows/Linux/Mac OS X partitions).
diskutil list disk2
/dev/disk2
#: type name size identifier
0: GUID_partition_scheme *232.9 GB disk2
1: EFI 200.0 MB disk2s1
2: Apple_HFS Tiger 81.7 GB disk2s2
3: Microsoft Basic Data 60.1 GB disk2s3
4: Microsoft Basic Data 60.6 GB disk2s4
5: Apple_HFS Misc1 29.9 GB disk2s5
gpt show disk2
start size index contents
0 1 MBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 171400232 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
171809872 262144
172072016 62652416 5 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
234724432 262144
234986576 126133208 3 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
361119784 262144
361381928 127015200 4 GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
488397128 7
488397135 32 Sec GPT table
488397167 1 Sec GPT header
gpt show: /dev/disk2: Suspicious MBR at sector 0
fdisk /dev/rdisk2
Disk: /dev/rdisk2 geometry: 30401/255/63 [488397168 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 0 0 2 - 25 127 14 [ 1 - 409639] <Unknown ID>
2: AF 25 127 15 - 1023 170 52 [ 409640 - 171400232] HFS+
3: 07 1023 60 42 - 1023 170 4 [ 234986576 - 126133208] HPFS/QNX/AUX
*4: 07 1023 251 6 - 1023 80 23 [ 361381928 - 127015200] HPFS/QNX/AUX
****************************************************************************
This email may contain confidential
material. If you were not
an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
***************************************************************************
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden