GPT fdisk (gdisk) version 1.0.3
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Command (? for help): p
Disk /dev/disk0: 157286400 sectors, 75.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): A00FDE86-5A09-431E-89BA-45CC6D3ACF58
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 157286366
Partitions will be aligned on 8-sector boundaries
Total free space is 3908517 sectors (1.9 GiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 74628383 35.4 GiB AF00 Apple HFS/HFS+
3 74628384 75897919 619.9 MiB AB00 Recovery HD
4 79804176 83695375 1.9 GiB 8300 Linux filesystem
5 83695616 83697663 1024.0 KiB EF02
6 83697664 92086271 4.0 GiB 8200
7 92086272 157284351 31.1 GiB 8300
Command (? for help): d
Partition number (1-7): 4
Command (? for help): d
Partition number (1-7): 5
Command (? for help): n
Partition number (4-128, default 4): 5
First sector (34-157286366, default = 75897920) or {+-}size{KMGTP}: 83681280
Last sector (83681280-83697663, default = 83697663) or {+-}size{KMGTP}: +8m
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): ef02
Changed type of partition to 'BIOS boot partition'
Command (? for help): p
Disk /dev/disk0: 157286400 sectors, 75.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): A00FDE86-5A09-431E-89BA-45CC6D3ACF58
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 157286366
Partitions will be aligned on 8-sector boundaries
Total free space is 7785381 sectors (3.7 GiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 74628383 35.4 GiB AF00 Apple HFS/HFS+
3 74628384 75897919 619.9 MiB AB00 Recovery HD
5 83681280 83697663 8.0 MiB EF02 BIOS boot partition
6 83697664 92086271 4.0 GiB 8200
7 92086272 157284351 31.1 GiB 8300
Command (? for help): n
Partition number (4-128, default 4):
First sector (34-157286366, default = 75897920) or {+-}size{KMGTP}:
Last sector (75897920-83681279, default = 83681279) or {+-}size{KMGTP}:
Current type is 'Apple HFS/HFS+'
Hex code or GUID (L to show codes, Enter = AF00): 8300
Changed type of partition to 'Linux filesystem'
Command (? for help): p
Disk /dev/disk0: 157286400 sectors, 75.0 GiB
Sector size (logical): 512 bytes
Disk identifier (GUID): A00FDE86-5A09-431E-89BA-45CC6D3ACF58
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 157286366
Partitions will be aligned on 8-sector boundaries
Total free space is 2021 sectors (1010.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 74628383 35.4 GiB AF00 Apple HFS/HFS+
3 74628384 75897919 619.9 MiB AB00 Recovery HD
4 75897920 83681279 3.7 GiB 8300 Linux filesystem
5 83681280 83697663 8.0 MiB EF02 BIOS boot partition
6 83697664 92086271 4.0 GiB 8200
7 92086272 157284351 31.1 GiB 8300
Command (? for help): r
Recovery/transformation command (? for help): h
WARNING! Hybrid MBRs are flaky and dangerous! If you decide not to use one,
just hit the Enter key at the below prompt and your MBR partition table will
be untouched.
Type from one to three GPT partition numbers, separated by spaces, to be
added to the hybrid MBR, in sequence: 2 3 4
Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N): y
Creating entry for GPT partition #2 (MBR partition #2)
Enter an MBR hex code (default AF):
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #3 (MBR partition #3)
Enter an MBR hex code (default AB):
Set the bootable flag? (Y/N): n
Creating entry for GPT partition #4 (MBR partition #4)
Enter an MBR hex code (default 83):
Set the bootable flag? (Y/N): y
Recovery/transformation command (? for help): o
Disk size is 157286400 sectors (75.0 GiB)
MBR disk identifier: 0x00000000
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 409639 primary 0xEE
2 409640 74628383 primary 0xAF
3 74628384 75897919 primary 0xAB
4 * 75897920 83681279 primary 0x83
Recovery/transformation command (? for help): w
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!
Do you want to proceed? (Y/N): y
OK; writing new GUID partition table (GPT) to /dev/disk0.
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Warning: The kernel may continue to use old or deleted partitions.
You should reboot or remove the drive.
The operation has completed successfully.