Questa è la mia attuale mappa delle partizioni:
$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Hummingbird 100.5 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
$ sudo hdiutil pmap -complete -endoffsets -shims -uuids /dev/disk0
MEDIA: ""; Size 113 GB (236978176 x 512); Max Transfer Blocks 2048
SCHEME: 1 GPT, "GPT Partition Scheme" [16]
SECTION: 1 Type:'MAP'; Size 113 GB; Offset: 34 - 236978143, (236978109 x 512); Overhead 67; UUID: 0000146C-6D0C-0000-F108-0000266E0000
ID Type Offset Size End Name (3)
-- -------------------- ------------ ------------ ------------ -------------------- --------
Free 34 6 39
1 EFI 40 409600 409639 EFI system partition 00005552-571C-0000-C278-0000F1770000
2 Apple_HFS 409640 196236456 196646095 Hummingbird 0000026E-6D8D-0000-6064-0000840F0000
3 Apple_Boot 196646096 1269536 197915631 Recovery HD 2175E76A-2663-4D30-8EF6-21786653B4A3
Free 197915632 39062511 236978142
$ sudo gpt -vvvv show /dev/disk0
Password:
gpt show: /dev/disk0: mediasize=121332826112; sectorsize=512; blocks=236978176
gpt show: /dev/disk0: PMBR at sector 0
gpt show: /dev/disk0: Pri GPT at sector 1
gpt show: /dev/disk0: GPT partition: type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B, start=40, size=409600
gpt show: /dev/disk0: GPT partition: type=48465300-0000-11AA-AA11-00306543ECAC, start=409640, size=196236456
gpt show: /dev/disk0: GPT partition: type=426F6F74-0000-11AA-AA11-00306543ECAC, start=196646096, size=1269536
gpt show: /dev/disk0: Sec GPT at sector 236978175
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 196236456 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
196646096 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
197915632 39062511
236978143 32 Sec GPT table
236978175 1 Sec GPT header
$ diskutil resizevolume /dev/disk0s2 limits
For device disk0s2 Hummingbird:
Current size: 100.5 GB (100473065472 Bytes)
Minimum size: 100.5 GB (100473065472 Bytes)
Maximum size: 100.5 GB (100473065472 Bytes)
È il risultato della precedente partizione Bootcamp, che ho rimosso utilizzando diskutil eraseVolume "Free Space" "Free Space" disk0s4
(dopo averla prima salvata come immagine nella memoria esterna).
Vorrei spostare disk0s3 alla fine del disco, ovvero offset 236978142-1269536 = 235708606 (o un'appropriata approssimazione per l'allineamento SSD), in modo che s2 (la mia partizione di root) sia libero di ridimensionare.
Come posso fare in modo che GPT ne sia a conoscenza?