M
macbook-pro-de-thomas:~ thomasmanen$ diskutil eraseVolume jhfs+ CLE disk2s2 ; diskutil list disk2
Started erase on disk2s2 Mac OS X Install ESD
Unmounting disk
Erasing
Initialized /dev/rdisk2s2 as a 14 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
Finished erase on disk2s2 CLE
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *15.6 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS CLE 15.3 GB disk2s2
macbook-pro-de-thomas:~ thomasmanen$
macbook-pro-de-thomas:~ thomasmanen$ hdiutil attach ~/Desktop/Install*/C*/Sha*/Install* ; df
prévue CRC32 $D61C13C2
/dev/disk4 Apple_partition_scheme
/dev/disk4s1 Apple_partition_map
/dev/disk4s2 Apple_Driver_ATAPI
/dev/disk4s3 Apple_HFS /Volumes/Mac OS X Install ESD
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk0s2 975093952 934815128 39766824 96% 116915889 4970853 96% /
devfs 393 393 0 100% 680 0 100% /dev
localhost:/SeM0fagaF8t6ydTP5VXtPY 975093952 975093952 0 100% 0 0 100% /Volumes/MobileBackups
map -hosts 0 0 0 100% 0 0 100% /net
map auto_home 0 0 0 100% 0 0 100% /home
/dev/disk1s4 66842768 227528 66615240 1% 28439 8326905 0% /Volumes/TEST
/dev/disk3 556640624 533813928 22826696 96% 66726739 2853337 96% /Volumes/Copies de sauvegarde Time machine
/dev/disk2s2 29792176 74120 29718056 1% 9263 3714757 0% /Volumes/CLE
/dev/disk4s3 10055264 9324752 730512 93% 1165592 91314 93% /Volumes/Mac OS X Install ESD
macbook-pro-de-thomas:~ thomasmanen$
sudo asr restore --s /Volumes/"Mac OS X Install ESD" --t /Volumes/CLE --erase --noprompt
macbook-pro-de-thomas:~ thomasmanen$ sudo asr restore --s /Volumes/"Mac OS X Install ESD" --t /Volumes/CLE --erase --noprompt
Password:
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
macbook-pro-de-thomas:~ thomasmanen$
macbook-pro-de-thomas:~ thomasmanen$ bless --info /Volumes/"Mac OS X Install ESD 1"
finderinfo[0]: 2 => Blessed System Folder is /Volumes/Mac OS X Install ESD 1/
finderinfo[1]: 2078 => Blessed System File is /Volumes/Mac OS X Install ESD 1/boot.efi
finderinfo[2]: 2 => 1st dir in open-folder list is /Volumes/Mac OS X Install ESD 1/
finderinfo[3]: 0 => No alternate OS blessed file/folder
finderinfo[4]: 0 => Unused field unset
finderinfo[5]: 2 => OS X blessed folder is /Volumes/Mac OS X Install ESD 1/
64-bit VSDB volume id: 0xCDAB5C9053AB080A
macbook-pro-de-thomas:~ thomasmanen$