I have an iMac 27" with a Fusion Disk (SSD 121 GB, HDD 1 TB) and Mac OS X 10.7 (Lion) installed.
The HDD failed and the Fusion Drive is lost (Lions recovery diskutil: disk missing - fix/ignore)
After the incident both disks were cloned to external 1TB HDD each. The failed HDD was replaced by a new 2 TB disk. I cloned both disks back to internal.
For more than one month I am playing with creating new GPT structure on SSD/HDD. Now I would like to revive SSD with correct partitions.
I went through lot of klanomoath posts, how to find corestage partition with disk editor, how to find and calculate start and size of P1 and P2, etc. Also used the excel tool for calculating right numbers. Not lucky at all. I don't know, what should I see, if the SSD partitions are correctly set. Thank you for any help.
Details of my SSD and steps done are:
SSD (disk1) looking for Corestage partition#2 -i 2 (part of lost fusion drive):
Total blocks: 236978176
BlockOffset2 = 236715990 (second HFSJ)
StartBlockOfVolume2 = 236715988 (BlockOffset2-2)
Rule 6. empty space 262144 blocks (should be the size of part#3)
EndBlockOfVolume1 = 236715988-262144-1 = 236453843
SizeOfVolume1 = 236453843-409640+1=236044204
LastBlockOfVolume2 = 236978176-1-32-7-262144-1 = 236715991
SizeOfVolume2 = 236715991-236715988+1=4 (this is something pointing at JHFS+ and not corestage)
diskutil umountDisk /dev/disk1
sudo gpt destroy /dev/disk1
diskutil umountDisk /dev/disk1
sudo gpt create -f /dev/disk1
sudo gpt add -b 40 -i 1 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B disk1
sudo gpt add -b 236715988 -i 3 -s 262144 -t 426F6F74-0000-11AA-AA11-00306543ECAC disk1
sudo gpt add -b 409640 -i 2 -s 236044204 -t 53746F72-6167-11AA-AA11-00306543ECAC disk1