Q: Cannot boot into OS X
While I was on my Windows, I sort of messed with the disk management and deleted a 600/621 mb partition in between my OS X partition and bootcamp partition. After trying to go back to OS X, I found that both the OS X and recovery partition are gone, though I can still see the OS X partition on my Windows.
Is there anyway to get my Mac to boot back on OS X?
iMac, Windows 8
Posted on Feb 21, 2015 2:32 PM
If you have the CLI on the Gparted CD/Live CD, you can use that.
Please use the following example, and use the partition code as appropriate for the specific GPT entries you want to change.
The steps show be
sudo gdisk /dev/disk0
p (Print)
t (Change Type codes)
2
AF00
p
w
y
Reboot and test.
Here is an example.
sudo gdisk /dev/disk0
Password:
GPT fdisk (gdisk) version 0.8.10
Warning: Devices opened with shared lock will not have their
partition table automatically reloaded!
Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present
Found valid GPT with hybrid MBR; using GPT.
Command (? for help): ?
b back up GPT data to a file
c change a partition's name
d delete a partition
i show detailed information on a partition
l list known partition types
n add a new partition
o create a new empty GUID partition table (GPT)
p print the partition table
q quit without saving changes
r recovery and transformation options (experts only)
s sort partitions
t change a partition's type code
v verify disk
w write table to disk and exit
x extra functionality (experts only)
? print this menu
Command (? for help): t
Partition number (1-4): 4
Current type is 'Microsoft basic data'
Hex code or GUID (L to show codes, Enter = AF00): 0700
Changed type of partition to 'Microsoft basic data'
Command (? for help): p
Disk /dev/disk0: 500118192 sectors, 238.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 22749ACF-207D-458E-B255-5DF02C39DC2D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 500118158
Partitions will be aligned on 8-sector boundaries
Total free space is 1325 sectors (662.5 KiB)
Number Start (sector) End (sector) Size Code Name
1 40 409639 200.0 MiB EF00 EFI System Partition
2 409640 250801735 119.4 GiB AF05 OSY-MBP13
3 250801736 252071271 619.9 MiB AB00 Recovery HD
4 252071936 500117503 118.3 GiB 0700 BOOTCAMP
Command (? for help):
Posted on Feb 21, 2015 8:48 PM