gpt add -b 409640 -i 2 -s 488083416 -t FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF /dev/disk0Īdd new partitions in the (old) Windows part of your disk. This will destroy the content of the Windows partition(s).Īdd a new partition in the (old) OS X part of your disk to protect it. Now you can either guess the old content of the GUID partition table or you can install OS X to a new partiton - without overwriting your old OS X partitions - and try to detect the sizes of the old partitions with appropriate tools (like Test Disk/wxHe圎ditor). Now replace the MBR by a GUID partition table: diskutil umountDisk /dev/disk0ĭd if=/dev/random of=/dev/disk0 count=1 bs=512Īdd the EFI partition in the partition table: gpt add -b 40 -i 1 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B /dev/disk0 dev/disk1.~/dev/disk12 belong to the recovery system You should get the following output (the types may be different in your diskutil listing: -bash-3.2# diskutil listĠ: FDisk_partition_scheme *500.0 GB disk0 In the commands below I assume the disk identifier is disk0. Remove the MBR and modify the GUID partition tableĮnter diskutil list and gpt -r show /dev/diskX (with diskX: the disk identifier of your internal disk (probably disk0) to get an overview. If you boot to a full system and login as admin you have to prepend sudo to execute some commands like gpt. If you are restricted to WIFI and the boot process fails, just restart your Mac until you succeed booting.Īlternatively you may start from a bootable installer thumb drive (preferably Yosemite or El Capitan) or a thumb drive containing a full system (preferably Yosemite or El Capitan). I recommend ethernet because it's more reliable. On a 50 Mbps-line it takes about 4 min (presenting a small animated globe) to boot into a recovery netboot image which usually is loaded from an Apple/Akamai server. The prerequisites are the latest firmware update installed, either ethernet or WLAN (WPA/WPA2) and a router with DHCP activated. Restart to Internet Recovery Mode by pressing alt cmd R at startup. The answer below is NOT intended for users WITH a thumb drive or an external disk! If you have one of those devices much easier solutions exist. The particular obstacle here is: the OP neither has a thumb drive nor a second Mac or an external drive. This usually only effects the partition table but not the content of your disk (though it seems to be gone)! To restore a proper GUID partition table, the MBR has to be deleted and a proper GUID partition table has to be restored. Windows' Disk Management has overwritten the GUID partition table with an MBR partition table.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |