M
-bash-3.2# asr restore --s /Volumes/"Macintosh HD" --t /Volumes/Clone --erase --noprompt
Validating target...done
Validating source...done
Validating sizes...done
Restoring ....10....20....30....40....50....60....70....80....90....100
Verifying ....10newfs_hfs: cannot create filesystem on /dev/rdisk2s3: Resource busy
/sbin/newfs_hfs failed with error 256
Could not restore - Input/output error
diskutil list
df -H
-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *480.1 GB disk0
1: Apple_HFS Macintosh HD 480.1 GB disk0s1
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS HD Data 500.0 GB disk2s2
3: Apple_HFS Clone 499.7 GB disk2s3
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +10.5 MB disk3
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +10.5 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk21
/dev/disk22 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk22
/dev/disk23 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk23
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 2.0G 1.3G 669M 67% 47930 4294919349 0% /
devfs 208k 208k 0B 100% 704 0 100% /dev
/dev/disk3 10M 1.4M 9.1M 13% 21 4294967258 0% /private/var/log
/dev/disk4 10M 262k 10M 3% 3 4294967276 0% /private/var/log/dm
/dev/disk5 524k 147k 377k 29% 4 4294967275 0% /Volumes
/dev/disk6 524k 147k 377k 29% 8 4294967271 0% /private/var/tmp
/dev/disk7 524k 160k 365k 31% 15 4294967264 0% /private/var/run
/dev/disk8 2.1M 152k 1.9M 8% 6 4294967273 0% /private/tmp
/dev/disk9 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk10 524k 303k 221k 58% 27 4294967252 0% /private/var/db
/dev/disk11 13M 5.6M 6.9M 45% 99 4294967180 0% /private/var/folders
/dev/disk12 4.2M 578k 3.6M 14% 56 4294967223 0% /private/var/root/Library
/dev/disk14 2.1M 373k 1.7M 18% 76 4294967203 0% /private/var/root/Library/Containers
/dev/disk15 524k 176k 348k 34% 13 4294967266 0% /Library/Preferences
/dev/disk16 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Preferences/Logging
/dev/disk17 524k 160k 365k 31% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk18 1.0M 197k 852k 19% 8 4294967271 0% /Library/Keychains
/dev/disk19 524k 143k 381k 28% 2 4294967277 0% /Library/Security/Trust Settings
/dev/disk20 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk21 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk22 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk23 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Logs/DiagnosticReports
/dev/disk2s2 500G 446G 54G 90% 16240 4294951039 0% /Volumes/HD Data
-bash-3.2#
diskutil mount disk0s1
diskutil mount disk2s3
df -H
-bash-3.2# diskutil mount disk0s1
Volume Macintosh HD on disk0s1 mounted
-bash-3.2# diskutil mount disk2s3
Volume on disk2s3 failed to mount
Perhaps the operation is not supported (kDAReturnUnsupported)
If you think the volume is supported but damaged, try the "readOnly" option
-bash-3.2# df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 2.0G 1.3G 669M 67% 47930 4294919349 0% /
devfs 208k 208k 0B 100% 704 0 100% /dev
/dev/disk3 10M 1.5M 9.0M 14% 21 4294967258 0% /private/var/log
/dev/disk4 10M 262k 10M 3% 3 4294967276 0% /private/var/log/dm
/dev/disk5 524k 147k 377k 29% 5 4294967274 0% /Volumes
/dev/disk6 524k 147k 377k 29% 8 4294967271 0% /private/var/tmp
/dev/disk7 524k 160k 365k 31% 15 4294967264 0% /private/var/run
/dev/disk8 2.1M 152k 1.9M 8% 6 4294967273 0% /private/tmp
/dev/disk9 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk10 524k 303k 221k 58% 27 4294967252 0% /private/var/db
/dev/disk11 13M 7.0M 5.6M 56% 99 4294967180 0% /private/var/folders
/dev/disk12 4.2M 549k 3.6M 14% 52 4294967227 0% /private/var/root/Library
/dev/disk14 2.1M 373k 1.7M 18% 76 4294967203 0% /private/var/root/Library/Containers
/dev/disk15 524k 176k 348k 34% 13 4294967266 0% /Library/Preferences
/dev/disk16 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Preferences/Logging
/dev/disk17 524k 160k 365k 31% 6 4294967273 0% /Library/Preferences/SystemConfiguration
/dev/disk18 1.0M 197k 852k 19% 8 4294967271 0% /Library/Keychains
/dev/disk19 524k 143k 381k 28% 2 4294967277 0% /Library/Security/Trust Settings
/dev/disk20 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk21 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk22 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk23 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Logs/DiagnosticReports
/dev/disk2s2 500G 446G 54G 90% 16240 4294951039 0% /Volumes/HD Data
/dev/disk0s1 480G 470G 10G 98% 1400796 4293566483 0% /Volumes/Macintosh HD
diskutil eraseVolume jhfs+ Clone disk2s3
-bash-3.2# diskutil eraseVolume jhfs+ Clone disk2s3
Started erase on disk2s3
Unmounting disk
Erasing
Initialized /dev/rdisk2s3 as a 465 GB case-insensitive HFS Plus volume with a 40960k journal
Mounting disk
Finished erase on disk2s3 Clone
caffeinate -dimsu &
asr restore --s /Volumes/"Macintosh HD" --t /Volumes/Clone --erase --noprompt
-bash-3.2# asr restore --s /Volumes/"Macintosh HD" --t /Volumes/Clone --erase --noprompt
Validating target...done
Validating source...done
Validating sizes...done
Restoring ....10....20....30....40....50....60....70....80....90....100
Verifying ....10newfs_hfs: cannot create filesystem on /dev/rdisk2s3: Resource busy
/sbin/newfs_hfs failed with error 256
Could not restore - Input/output error
diskutil list
-bash-3.2# diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *480.1 GB disk0
1: Apple_HFS Macintosh HD 480.1 GB disk0s1
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS HD Data 500.0 GB disk2s2
3: Apple_HFS 499.7 GB disk2s3
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +10.5 MB disk3
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +10.5 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk21
/dev/disk22 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk22
/dev/disk23 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk23
diskutil eraseVolume jhfs+ Clone disk2s3
-bash-3.2# diskutil eraseVolume jhfs+ Clone disk2s3
Started erase on disk2s3
Unmounting disk
Erasing
Initialized /dev/rdisk2s3 as a 465 GB case-insensitive HFS Plus volume with a 40960k journal
Mounting disk
Finished erase on disk2s3 Clone
ça marche, je fais comment ?Opération effectuée.
- tu ne veux pas qu'on mesure les dossiers du volume Macintosh HD ? - il y a peut-être de quoi supprimer (caches ou autres) => pour alléger son occupation. Ce qui permettrait d'envisager une "copie de fichiers" (autre procédé de clonage) avec de la marge...
diskutil mount disk0s1