sudo asr restore --s /Volumes/"OS X Base System" --t /Volumes/BOOT --erase --noprompt
iMac-de-Jean-Claude-2:~ jean-claude$ sudo asr restore --s /Volumes/"OS X BaseSystem" --t /Volumes/BOOT --erase --noprompt
Password:
Validating target...done
Validating source...
Could not recognize "/Volumes/OS X BaseSystem" as an image file
done
Could not get source volume name
iMac-de-Jean-Claude-2:~ jean-claude$
sudo asr restore --s /Volumes/"OS X Base System" --t /Volumes/BOOT --erase --noprompt
iMac-de-Jean-Claude-2:~ jean-claude$ sudo asr restore --s /Volumes/"OS X Base System" --t /Volumes/BOOT --erase --noprompt
Validating target...done
Validating source...done
Validating sizes...done
Restoring ....10....20....30....40....50....60....70....80....90....100
Verifying ....10....20....30....40....50....60....70....80....90....100
Remounting target volume...done
iMac-de-Jean-Claude-2:~ jean-claude$
diskutil list
iMac-de-Jean-Claude-2:~ jean-claude$ diskutil list
/dev/disk0 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *120.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS SSD 120 117.0 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s5
4: Apple_HFS OS X Base System 2.0 GB disk0s4
/dev/disk1 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: *0 B disk1
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +6.8 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS OS X Install ESD 6.5 GB disk2s2
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk3
1: Apple_HFS OS X Base System 2.0 GB disk3s1
iMac-de-Jean-Claude-2:~ jean-claude$
iMac-de-Jean-Claude-2:~ jean-claude$
4: Apple_HFS OS X Base System 2.0 GB disk0s4
diskutil mount disk0s3
hdiutil attach ~/Desktop/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg
sudo rm -rf /Volumes/"Recovery HD"/com.apple.recovery.boot/BaseSystem.dmg /Volumes/"Recovery HD"/com.apple.recovery.boot/BaseSystem.chunklist
sudo cp -av /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg /Volumes/OS\ X\ Install\ ESD/BaseSystem.chunklist /Volumes/"Recovery HD"/com.apple.recovery.boot
iMac-de-Jean-Claude-2:~ jean-claude$ diskutil mount disk0s3
Volume Recovery HD on disk0s3 mounted
iMac-de-Jean-Claude-2:~ jean-claude$ hdiutil attach ~/Desktop/Install\ OS\ X\ El\ Capitan.app/Contents/SharedSupport/InstallESD.dmg
prévue CRC32 $7B0D9EC5
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 EFI
/dev/disk2s2 Apple_HFS /Volumes/OS X Install ESD
iMac-de-Jean-Claude-2:~ jean-claude$ sudo rm -rf /Volumes/"Recovery HD"/com.apple.recovery.boot/BaseSystem.dmg /Volumes/"Recovery HD"/com.apple.recovery.boot/BaseSystem.chunklist
Password:
iMac-de-Jean-Claude-2:~ jean-claude$ sudo cp -av /Volumes/OS\ X\ Install\ ESD/BaseSystem.dmg /Volumes/OS\ X\ Install\ ESD/BaseSystem.chunklist /Volumes/"Recovery HD"/com.apple.recovery.boot
/Volumes/OS X Install ESD/BaseSystem.dmg -> /Volumes/Recovery HD/com.apple.recovery.boot/BaseSystem.dmg
/Volumes/OS X Install ESD/BaseSystem.chunklist -> /Volumes/Recovery HD/com.apple.recovery.boot/BaseSystem.chunklist
iMac-de-Jean-Claude-2:~ jean-claude$
iMac-de-Jean-Claude-2:~ jean-claude$
diskutil eraseVolume free null disk0s3
diskutil resizeVolume disk0s2 0b
diskutil rename disk0s4 Recovery
sudo bless --folder /Volumes/Recovery/System/Library/CoreServices --file /Volumes/Recovery/System/Library/CoreServices/boot.efi
diskutil umount force /Volumes/Recovery
sudo asr adjust --t /dev/disk0s4 --settype "Apple_Boot"
sudo bless --folder /Volumes/Recovery/System/Library/CoreServices --file /Volumes/Recovery/System/Library/CoreServices/boot.efi
iMac-de-Jean-Claude-2:~ jean-claude$ sudo bless --folder /Volumes/Recovery/System/Library/CoreServices --file /Volumes/Recovery/System/Library/CoreServices.boot.efi
Password:
Error while getting file ID of /Volumes/Recovery/System/Library/CoreServices.boot.efi. Ignoring...
diskutil list