gpt add -b 40 -s 409600 -t C12A7328-F81F-11D2-BA4B-00A0C93EC93B -i 1 /dev/disk0
diskutil list disk0
diskutil info disk0s1
-bash-3.2# diskutil list disk0
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *240.1 GB disk0
1: EFI 209.7 MB disk0s1
-bash-3.2# diskutil info disk0s1
Device Identifier: disk0s1
Device Node: /dev/disk0s1
Part of Whole: disk0
Device / Media Name: Untitled 1
Volume Name: Not applicable (no file system)
Mounted: Not applicable (no file system)
File System: None
Partition Type: EFI
OS Can Be Installed: No
Media Type: Generic
Protocol: SATA
SMART Status: Verified
Total Size: 209.7 MB (209715200 Bytes) (exactly 409600 512-Byte-Blocks)
Volume Free Space: Not applicable (no file system)
Device Block Size: 512 Bytes
Read-Only Media: No
Read-Only Volume: Not applicable (no file system)
Ejectable: No
Whole: No
Internal: Yes
Solid State: Yes
-bash-3.2#
1: EFI 209.7 MB disk0s1
diskutil repairDisk disk0
-bash-3.2# diskutil repairDisk disk0
Repairing the partition map might erase disk0s1, proceed? (y/N) y
Started partition map repair on disk0
Checking prerequisites
Checking the partition list
Problems were encountered during repair of the partition map
Error: -69770: Partition map check failed because no slices were found
-bash-3.2#
diskutil eraseDisk free null gpt disk0
-bash-3.2# diskutil eraseDisk free null gpt disk0
Started erase on disk0
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Finished erase on disk0
-bash-3.2#
diskutil list disk0
gpt show disk0
-bash-3.2# diskutil list disk0
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *240.1 GB disk0
1: EFI 209.7 MB disk0s1
-bash-3.2# gpt show disk0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 468452455
468862095 32 Sec GPT table
468862127 1 Sec GPT header
-bash-3.2#
gpt add -b 409640 -s 467182912 -t 53746F72-6167-11AA-AA11-00306543ECAC -i 2 /dev/disk0
diskutil list disk0
diskutil list
-bash-3.2# diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *240.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_CoreStorage 239.2 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS Bootcamp 499.8 GB disk1s2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: Apple_partition_scheme *1.4 GB disk2
1: Apple_partition_map 30.7 KB disk2s1
2: Apple_Driver_ATAPI 2.0 KB disk2s2
3: Apple_HFS Mac OS X Base System 1.4 GB disk2s3
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk3
/dev/disk4
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk4
/dev/disk5
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk5
/dev/disk6
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk6
/dev/disk7
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk7
/dev/disk8
#: TYPE NAME SIZE IDENTIFIER
0: untitled *6.3 MB disk8
/dev/disk9
#: TYPE NAME SIZE IDENTIFIER
0: untitled *2.1 MB disk9
/dev/disk10
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk10
/dev/disk11
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk11
/dev/disk12
#: TYPE NAME SIZE IDENTIFIER
0: untitled *524.3 KB disk12
/dev/disk13
#: TYPE NAME SIZE IDENTIFIER
0: untitled *1.0 MB disk13
-bash-3.2#
diskutil cs list
-bash-3.2# diskutil cs list
CoreStorage logical volume groups (1 found)
|
+-- Logical Volume Group 8DD76351-DC89-466F-84C3-B64B7F85628A
=========================================================
Name: Macintosh SSD
Sequence: 2
Free Space: 21655552 B (21.7 MB)
|
+-< Physical Volume 7859C85E-BA07-42A6-91B3-D23D8A2FDFC1
| ----------------------------------------------------
| Index: 0
| Disk: disk0s2
| Status: Online
| Size: 239197650944 B (239.2 GB)
|
+-> Logical Volume Family B546BE45-8091-41E1-834A-E7C85528ADB6
----------------------------------------------------------
Sequence: 13
Encryption Status: Locked
Encryption Type: AES-XTS
Encryption Context: Present
Conversion Status: Complete
Has Encrypted Extents: Yes
Conversion Direction: -none-
|
+-> Logical Volume 4967BE40-C225-475D-B37C-0763160C1C76
---------------------------------------------------
Disk: -none-
Status: Locked
Sequence: 6
Size (Total): 238840446976 B (238.8 GB)
Size (Converted): -none-
Revertible: Yes (unlock and decryption required)
LV Name: Macintosh SSD
Content Hint: Apple_HFS
-bash-3.2#
diskutil coreStorage unlockVolume 4967BE40-C225-475D-B37C-0763160C1C76 -passphrase toto