-
-
Save walidvb/8d8ca4b91a31a0f552f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gdisk /dev/disk0 | |
GPT fdisk (gdisk) version 0.8.4 | |
Partition table scan: | |
MBR: hybrid | |
BSD: not present | |
APM: not present | |
GPT: present | |
Found valid GPT with hybrid MBR; using GPT. | |
Command (? for help): p | |
Disk /dev/disk0: 1465149168 sectors, 698.6 GiB | |
Logical sector size: 512 bytes | |
Disk identifier (GUID): 00005865-758C-0000-D936-00005B400000 | |
Partition table holds up to 128 entries | |
First usable sector is 34, last usable sector is 1465149134 | |
Partitions will be aligned on 8-sector boundaries | |
Total free space is 3445 sectors (1.7 MiB) | |
Number Start (sector) End (sector) Size Code Name | |
1 40 409639 200.0 MiB EF00 EFI system partition | |
2 409640 1421154879 677.5 GiB AF00 Customer | |
3 1421154880 1422424415 619.9 MiB AB00 Recovery HD | |
4 1422426112 1465147391 20.4 GiB 0700 UBUNTU | |
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 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): AF | |
Set the bootable flag? (Y/N): n | |
Creating entry for GPT partition #4 (MBR partition #3) | |
Enter an MBR hex code (default 07): 83 | |
Set the bootable flag? (Y/N): n | |
Unused partition space(s) found. Use one to protect more partitions? (Y/N): y | |
Note: Default is 0xEE, but this may confuse Mac OS X. | |
Enter an MBR hex code (default EE): AF | |
Recovery/transformation command (? for help): w | |
Warning! Mismatched GPT and MBR partition! MBR partition 4, of type 0xAF, | |
has no corresponding GPT partition! You may continue, but this condition | |
might cause data loss in the future! | |
Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING | |
PARTITIONS!! | |
Do you want to proceed? (Y/N): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment