Nice! I’ve got the command script this far. What Recovery/transformation command should I enter?
Last login: Mon Jun 1 09:54:50 on ttys000
Macintosh-7:~ jordanmelick$ sudo gdisk /dev/rdisk0
GPT fdisk (gdisk) version 1.0.0
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): Sudo gdisk /dev/disk0
You may need to edit /etc/fstab and/or your boot loader configuration!
Command (? for help): P (Print list of parts)
Disk /dev/rdisk0: 977105060 sectors, 465.9 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 918F8A4C-ECA9-468F-B6B7-5D810DD13595
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 977105026
Partitions will be aligned on 8-sector boundaries
Total free space is 521 sectors (260.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 827397983 394.3 GiB AF00 Customer
3 827397984 828667519 619.9 MiB AB00 Recovery HD
4 828667904 977104895 70.8 GiB 0700 BOOTCAMP
Command (? for help): R (Recover)
Recovery/transformation command (? for help): O (print current Hybrid MBR)
Disk size is 977105060 sectors (465.9 GiB)
MBR disk identifier: 0xAFB6F03E
MBR partitions:
Number Boot Start Sector End Sector Status Code
1 1 977105059 primary 0xEE
Recovery/transformation command (? for help): H (chooses Hybrid)
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): N
Set the bootable flag? (Y/N): N
Creating entry for GPT partition #3 (MBR partition #3)
Enter an MBR hex code (default AB): N
Set the bootable flag? (Y/N): N
Creating entry for GPT partition #4 (MBR partition #4)
Enter an MBR hex code (default 07): Y
Set the bootable flag? (Y/N): Y
Recovery/transformation command (? for help): ?
b use backup GPT header (rebuilding main)
c load backup partition table from disk (rebuilding main)
d use main GPT header (rebuilding backup)
e load main partition table from disk (rebuilding backup)
f load MBR and build fresh GPT from it
g convert GPT into MBR and exit
h make hybrid MBR
i show detailed information on a partition
l load partition data from a backup file
m return to main menu
o print protective MBR data
p print the partition table
q quit without saving changes
t transform BSD disklabel partition
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Recovery/transformation command (? for help):