diskutil list
Last login: Thu Nov 8 20:57:47 on console
MBP-de-ni00ja:~ ninja$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh 159.3 GB disk0s2
3: Apple_Boot 649.9 MB disk0s3
4: Apple_CoreStorage BIS 158.6 GB disk0s4
5: Apple_Boot Recovery HD 650.0 MB disk0s5
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS BIS +158.2 GB disk1
Logical Volume on disk0s4
B91FAB50-3162-48FA-88DD-4BF143614386
Unencrypted
MBP-de-ni00ja:~ ninja$
sudo asr restore --s /dev/disk0s5 --t /dev/disk0s3 --erase --noprompt
Last login: Thu Nov 8 21:28:13 on ttys000
MBP-de-ni00ja:~ ninja$ sudo asr restore --s /dev/disk0s5 --t /dev/disk0s3 --erase --noprompt
Password:
Validating target...done
Validating source...done
Repartitioning target device...
Could not change the partition type for /dev/disk0s3 - Opération non permise
MBP-de-ni00ja:~ ninja$
sudo asr adjust --t /dev/disk0s3 --settype "Apple_HFS"
csrutil disable
sudo asr restore --s /dev/disk0s5 --t /dev/disk0s3 --erase --noprompt
Last login: Thu Nov 8 22:09:43 on ttys000
MBP-de-ni00ja:~ niooja$ sudo asr restore --s /dev/disk0s5 --t /dev/disk0s3 --erase --noprompt
Password:
Validating target...
Could not access device "/dev/disk0s3"
Could not validate target - Fichier ou répertoire inexistant
MBP-de-ni00ja:~ niooja$
sudo asr adjust --t /dev/disk0s3 --settype "Apple_HFS"
MBP-de-ni00ja:~ niooja$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh 159.3 GB disk0s2
3: Apple_HFS 649.9 MB disk0s6
4: Apple_CoreStorage BIS 158.6 GB disk0s4
5: Apple_Boot Recovery HD 650.0 MB disk0s5
/dev/disk1 (internal, virtual):
#: TYPE NAME SIZE IDENTIFIER
0: Apple_HFS BIS +158.2 GB disk1
Logical Volume on disk0s4
B91FAB50-3162-48FA-88DD-4BF143614386
Unencrypted
MBP-de-ni00ja:~ niooja$
3: Apple_HFS 649.9 MB disk0s6
sudo newfs_hfs -J -v "Recovery HD" /dev/disk0s6
diskutil mount disk0s6