diskutil list
Last login: Mon Sep 24 22:06:25 on console
imac-de-JC:~ JC$ df -H /
Filesystem Size Used Avail Capacity Mounted on
/dev/disk1s2 500G 485G 15G 98% /
imac-de-JC:~ JC$
Last login: Mon Oct 1 18:43:55 on console
imac-de-JC:~ JC$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 499.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS SSD Mac HD USB 499.8 GB disk1s2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk2
1: EFI 209.7 MB disk2s1
2: Apple_HFS Clone 499.9 GB disk2s2
3: Apple_HFS Divers 499.9 GB disk2s3
imac-de-JC:~ JC$
sudo diskutil resizeVolume disk1s2 498g jhfs+ BOOT %recovery% free null 0b ; diskutil mount disk0s3 ; sudo asr restore --s /Volumes/"Recovery HD" --t /Volumes/BOOT --erase --noprompt ; diskutil list
Last login: Tue Oct 2 11:53:44 on ttys001
imac-de-JC:~ JC$ sudo diskutil resizeVolume disk1s2 498g jhfs+ BOOT %recovery% free null 0b ; diskutil mount disk0s3 ; sudo asr restore --s /Volumes/"Recovery HD" --t /Volumes/BOOT --erase --noprompt ; diskutil list
Password:
%recovery% does not appear to be a valid disk size
Volume Recovery HD on disk0s3 mounted
Validating target...
"/Volumes/BOOT" is not a volume
Could not validate target - Fichier ou répertoire inexistant
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 499.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS SSD Mac HD USB 499.8 GB disk1s2
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk2
1: EFI 209.7 MB disk2s1
2: Apple_HFS Clone 499.9 GB disk2s2
3: Apple_HFS Divers 499.9 GB disk2s3
imac-de-JC:~ JCh$
sudo diskutil resizeVolume disk1s2 498g jhfs+ BOOT 650m free null 0b ; diskutil mount disk0s3 ; sudo asr restore --s /Volumes/"Recovery HD" --t /Volumes/BOOT --erase --noprompt ; diskutil list
sudo diskutil resizeVolume disk1s2 498g jhfs+ BOOT 650m free null 0b ; diskutil mount disk0s3 ; sudo asr restore --s /Volumes/"Recovery HD" --t /Volumes/BOOT --erase --noprompt ; diskutil list
Last login: Tue Oct 2 11:54:05 on ttys001
imac-de-JC:~ JC$ sudo diskutil resizeVolume disk1s2 498g jhfs+ BOOT 650m free null 0b ; diskutil mount disk0s3 ; sudo asr restore --s /Volumes/"Recovery HD" --t /Volumes/BOOT --erase --noprompt ; diskutil list
Password:
Started partitioning on disk1s2 SSD Mac HD USB
Verifying the disk
Checking file system
Performing live verification
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking volume bitmap
Checking volume information
The volume SSD Mac HD USB appears to be OK
Resizing
Waiting for the disks to reappear
Formatting disk1s3 as Mac OS Extended (Journaled) with name BOOT
Initialized /dev/rdisk1s3 as a 620 MB HFS Plus volume with a 8192k journal
Mounting disk
Finished partitioning on disk1s2 SSD Mac HD USB
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS SSD Mac HD USB 498.0 GB disk1s2
3: Apple_HFS BOOT 650.0 MB disk1s3
Volume Recovery HD on disk0s3 mounted
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
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 499.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk1
1: EFI 209.7 MB disk1s1
2: Apple_HFS SSD Mac HD USB 498.0 GB disk1s2
3: Apple_HFS Recovery HD 650.0 MB disk1s3
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk2
1: EFI 209.7 MB disk2s1
2: Apple_HFS Clone 499.9 GB disk2s2
3: Apple_HFS Divers 499.9 GB disk2s3
3: Apple_HFS Recovery HD 650.0 MB disk1s3
sudo asr adjust --t /dev/disk1s3 --settype "Apple_Boot"
Last login: Tue Oct 2 15:06:40 on ttys001
imac-de-JC:~ JC$ sudo asr adjust --t /dev/disk1s3 --settype "Apple_Boot"Password:
asr: Target for adjust mode must be a partition with no mounted volume
diskutil umount force disk1s3
sudo asr adjust --t /dev/disk1s3 --settype "Apple_Boot"
diskutil umount force disk0s3
diskutil mount disk1s3
bless --info /Volumes/"Recovery HD"