You are a legend!įor anyone else who has this issue - this is what I did:įirst remove the 2 incorrect partitions sudo gpt remove -i 2 /dev/disk0Īnd then add back in the new APFS partition sudo gpt add -i 2 -b 409640 -s 1953115488 -t apfs /dev/disk0 Thanks to David Anderson for his previous detailed posts here and here I managed to work it out and restore the partitions. The KEY part here is working out the correct Size - in my case - 1953115488.ĭavid explains how to find the correct values in this post here. I assumed I wanted a 1TB partition, split over blocks of 512k - so 1000000000000 / 512 = 1953125000Īfter creating the partition at that size, it didn't work, so I ran a verifyVolume on the APFS Container diskutil verifyVolume disk0s2Īnd that failed with warning: nx_block_count is 244139436, while device block count is 234379555 I initially created the new partition with the incorrect size. Using Davids' calculations each APFS block is 8 Logical blocks, so I multipied the nx_block_count by 8 to get the correct size of 1953115488 for the APFS Container.
0 Comments
Leave a Reply. |