Bloc de code:
Last login: Sun Oct 21 19:36:48 on ttys000
macbookethernet:~ test$ sudo asr imagescan --source /Volumes/BROL/Conteneurdisk2.dmg
Password:
Block checksum:
Last login: Sun Oct 21 19:36:48 on ttys000
macbookethernet:~ test$ sudo asr imagescan --source /Volumes/BROL/Conteneurdisk2.dmg
Password:
Block checksum:
Last login: Sun Oct 21 19:36:48 on ttys000
macbookethernet:~ test$ sudo asr imagescan --source /Volumes/BROL/Conteneurdisk2.dmg
Password:
Block checksum: ....10....20....30....40....50....60....70....80....90....100
successfully scanned image "/Volumes/BROL/Conteneurdisk2.dmg"
macbookethernet:~ test$
asr info --source /Volumes/BROL/Conteneurdisk2.dmg
Last login: Sun Oct 21 21:38:11 on ttys000
macbookethernet:~ test$ asr info --source /Volumes/BROL/Conteneurdisk2.dmg
SHA-256-digest: 0x0E9C5D22D9902E65939C59CE0C89501768B33BA60DB7B7F8DBD80D5ADA0DBD21
block-checksum-2: 1495110766
SHA-1-digest: 0x37785A4F9E0E9F484A3AB01B4398EFEA2C828AA2
Volume names and UUIDs:
0:
uuid: 7318A9BA-9A8B-426D-8AEA-4304245CFD60
name: Macintosh HD ( ancien mojave )
1:
uuid: 1F7B3337-35C6-4085-826A-93EF354BB64B
name: Sans titre
2:
uuid: 6C7B8CDC-AA59-4206-A19D-2C4ED042D02E
name: macOS Mojave
part-num: 0
version: 6
macbookethernet:~ test$
1:
uuid: 1F7B3337-35C6-4085-826A-93EF354BB64B
name: Sans titre
df -H /Volumes/BROL
Last login: Sun Oct 21 22:28:33 on ttys001
macbookethernet:~ test$ df -H /Volumes/BROL
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s3 700G 250G 450G 36% 83 4294967196 0% /Volumes/BROL
macbookethernet:~ test$
diskutil resizeVolume disk1s3 300g jhfs+ TOTO 0b
Last login: Sun Oct 21 22:41:06 on ttys002
macbookethernet:~ test$ diskutil resizeVolume disk1s3 300g jhfs+ TOTO 0b
Resizing to 300000000000 bytes and adding 1 partition
Started partitioning on disk1s3 BROL
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk1s3
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 BROL appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Shrinking file system
Modifying partition map
Initialized /dev/rdisk1s4 as a 372 GB case-insensitive HFS Plus volume with a 32768k journal
Mounting disk
Finished partitioning on disk1s3 BROL
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk3 300.0 GB disk1s2
3: Apple_HFS BROL 300.0 GB disk1s3
4: Apple_HFS TOTO 399.7 GB disk1s4
macbookethernet:~ test$
macbookethernet:~ test$
diskutil ap convert disk1s4
diskuti list
Last login: Sun Oct 21 22:47:30 on ttys000
macbookethernet:~ test$ diskutil ap convert disk1s4
Converting the volume on disk1s4 to an APFS Volume on an APFS Container
Started APFS operation on disk1s4 TOTO
Converting HFS Volume to an APFS Container which will export one APFS Volume
The target is the Journaled HFS+ volume "TOTO" backed by the GPT partition disk1s4
The target is a data disk; it is not a macOS system disk
Found APFS EFI driver /usr/standalone/i386/apfs.efi to install into the APFS Container
The target is not encrypted
Unmounting disk1s4
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk1s4
Reporting pre-conversion statistics
Reporting post-conversion statistics
Successfully finished conversion from HFS to APFS
Successful conversion in commit mode so will switch type to APFS
Setting type of disk1s4 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk1s4 to terminate old content driver
Expecting the new APFS Container at Physical Store disk1s4
Confirmed existence of new unencrypted APFS Volume disk4s1
Mounting APFS Volume disk4s1
APFS Volume mount attempt result was 0
Exiting conversion operations with error code 0
Disk from APFS operation: disk4s1
Finished APFS operation on disk1s4 TOTO
macbookethernet:~ test$ diskuti list
-bash: diskuti: command not found
macbookethernet:~ test$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk2 250.8 GB disk0s2
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk3 300.0 GB disk1s2
3: Apple_HFS BROL 300.0 GB disk1s3
4: Apple_APFS Container disk4 399.7 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD ( ancie... 143.8 GB disk2s1
2: APFS Volume Preboot 110.5 MB disk2s2
3: APFS Volume Recovery 3.1 GB disk2s3
4: APFS Volume VM 1.1 GB disk2s4
5: APFS Volume Sans titre 55.0 GB disk2s5
6: APFS Volume macOS Mojave 83.5 GB disk2s6
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +300.0 GB disk3
Physical Store disk1s2
1: APFS Volume Preboot 106.0 MB disk3s2
2: APFS Volume Recovery 1.6 GB disk3s3
3: APFS Volume Macintosh HD 192.3 GB disk3s6
4: APFS Volume VM 1.1 GB disk3s7
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +399.7 GB disk4
Physical Store disk1s4
1: APFS Volume TOTO 991.2 KB disk4s1
macbookethernet:~ test$
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +399.7 GB disk4
Physical Store disk1s4
1: APFS Volume TOTO 991.2 KB disk4s1
caffeinate -dimsu &
sudo asr restore --s /Volumes/BROL/Conteneurdisk2.dmg --sourcevolumename "Sans titre" --t /Volumes/TOTO --erase --noprompt
Last login: Sun Oct 21 22:57:15 on ttys001
macbookethernet:~ test$ caffeinate -dimsu &
[1] 2124
macbookethernet:~ test$ sudo asr restore --s /Volumes/BROL/Conteneurdisk2.dmg --sourcevolumename "Sans titre" --t /Volumes/TOTO --erase --noprompt
Password:
Validating target...done
Validating source...done
Retrieving scan information...done
Validating sizes...nx_kernel_mount:1455: : checkpoint search: largest xid 39354200, best xid 39354200 @ 108
done
Restoring ....10....20....30....40....50....60....70....80....90....100
Verifying ....10....20....30....40....50....60....70....80....90....100
Inverting target volume...lookup_topology:1227: synth container: disk4
lookup_topology:1228: synth vol: disk4s1
lookup_topology:1233: main tier: /dev/disk1s4
lookup_topology:1241: encrypted: no
*** Mounting outer volume (/dev/disk4 s1)...
nx_kernel_mount:1455: /dev/disk1s4: checkpoint search: largest xid 127, best xid 127 @ 253
spaceman_metazone_init:233: metazone for device 0 of size 1548850 blocks (encrypted: 0-774425 unencrypted: 774425-1516082)
spaceman_metazone_init:236: metazone also includes omap zone (1516082-1548850)
spaceman_trim_free_blocks:3245: scan took 1.622814 s, trims took 0.000000 s
*** Getting image dstream info...
ContainerToInvert: dstream_id=18, size=250790436864
*** Mounting inner volume (ContainerToInvert)...
nx_kernel_mount:1455: : checkpoint search: largest xid 39354200, best xid 39354200 @ 108
obj_checksum_verify:4010: failed: cksum 0x28ed3cf3b57394bd, oid 0x889fe66861804da4, o_xid 0x8b47ed5bb6515d8c, o_type 0x1c586d1d, o_subtype 0x8b79c42c, size 4096
nx_corruption_detected_int:60: Corruption detected by obj_checksum_verify:4018 in container 734014E7-90E3-44D4-9694-174ABFCEB1B7!
obj_read:3704: oid 0xc0250b flags 0x10000123 0x0 type 0x10000002/0xe paddr 0x28c8 error verifying checksum
apfs_mount_livefs:18227: failed to fs root tree (error 92)
mount_inner_volume:870: Inner volume is encrypted
APFS inverter failed to invert the volume - Paramètre invalide
macbookethernet:~ test$
diskutil list
Last login: Sun Oct 21 23:09:33 on ttys000
macbookethernet:~ test$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *251.0 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk2 250.8 GB disk0s2
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_APFS Container disk3 300.0 GB disk1s2
3: Apple_HFS BROL 300.0 GB disk1s3
4: Apple_APFS Container disk4 399.7 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.8 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD ( ancie... 143.8 GB disk2s1
2: APFS Volume Preboot 110.5 MB disk2s2
3: APFS Volume Recovery 3.1 GB disk2s3
4: APFS Volume VM 1.1 GB disk2s4
5: APFS Volume Sans titre 55.0 GB disk2s5
6: APFS Volume macOS Mojave 83.5 GB disk2s6
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +300.0 GB disk3
Physical Store disk1s2
1: APFS Volume Preboot 106.0 MB disk3s2
2: APFS Volume Recovery 1.6 GB disk3s3
3: APFS Volume Macintosh HD 192.3 GB disk3s6
4: APFS Volume VM 1.1 GB disk3s7
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +399.7 GB disk4
Physical Store disk1s4
1: APFS Volume Sans titre 249.7 GB disk4s1
2: APFS Volume Preboot 21.2 MB disk4s2
3: APFS Volume Recovery 516.8 MB disk4s3
macbookethernet:~ test$
macbookethernet:~ test$
macbookethernet:~ test$
nx_corruption_detected_int:60: Corruption detected by obj_checksum_verify:4018 in container
734014E7-90E3-44D4-9694-174ABFCEB1B7!
obj_read:3704: oid 0xc0250b flags 0x10000123 0x0 type 0x10000002/0xe paddr 0x28c8 error verifying checksum
apfs_mount_livefs:18227: failed to fs root tree (error 92)
mount_inner_volume:870: Inner volume is encrypted
APFS inverter failed to invert the volume - Paramètre invalide