daniel@macbook-pro-de-daniel ~ % diskutil ap resizeContainer disk1 450g fat32 BOOTCAMP 0b ; diskutil list
Started APFS operation
Aligning shrink delta to 49 963 175 936 bytes and targeting a new physical store size of 449 999 998 976 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 318 465 114 112 bytes
Resizing APFS Container designated by APFS Container Reference disk1
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the space manager free queue trees
Checking the object map
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD was formatted by storagekitd (1677.81.1) and last modified by apfs_kext (1677.81.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 1 (com.apple.os.update-35C699ADD439C653A3B09EBD8A30FBD366881244EB7C82207A2E135362FCCB7F)
Checking the extent ref tree
Checking the fsroot tree
Checking the file extent tree
Checking volume
Checking the APFS volume superblock
The volume Macintosh HD - Data was formatted by asr (1412.81.1) and last modified by apfs_kext (1677.81.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
error: Cross Check : ExtentRef physical extent (0x67d35ee + 5464) has kind APFS_KIND_UPDATE but was not referenced previously
Checking the fsroot tree
error: Cross Check : FSroot tree references extent (0x59209b1 + 128) which is not present in the ExtentRef tree
error: Cross Check : Mismatch between extentref entry reference count (0) and calculated fsroot entry reference count (1) for extent (0x59209b1 + 128)
Checking volume
Checking the APFS volume superblock
The volume Preboot was formatted by asr (1412.81.1) and last modified by apfs_kext (1677.81.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume Recovery was formatted by asr (1412.81.1) and last modified by apfs_kext (1677.81.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume VM was formatted by apfs_boot_util (1677.60.23) and last modified by apfs_kext (1677.81.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Checking volume
Checking the APFS volume superblock
The volume Update was formatted by com.apple.Mobile (1677.60.23) and last modified by apfs_kext (1677.81.1)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking the extent ref tree
Checking the fsroot tree
Verifying allocated space
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Shrinking APFS Physical Store disk0s2 from 499 963 174 912 to 449 999 998 976 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
4096 bytes per physical sector
/dev/rdisk0s3: 12194872 sectors in 1524359 FAT32 clusters (32768 bytes/cluster)
bps=4096 spc=8 res=32 nft=2 mid=0xf8 spt=32 hds=255 hid=109940224 drv=0x80 bsec=12197888 bspf=1489 rdcl=2 infs=1 bkbs=6
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 450.0 GB disk0s2
3: Microsoft Basic Data BOOTCAMP 50.0 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +450.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 15.1 GB disk1s1
2: APFS Snapshot com.apple.os.update-... 15.1 GB disk1s1s1
3: APFS Volume Macintosh HD - Data 295.6 GB disk1s2
4: APFS Volume Preboot 439.0 MB disk1s3
5: APFS Volume Recovery 613.9 MB disk1s4
6: APFS Volume VM 20.5 KB disk1s5
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_APFS Container disk3 1.0 TB disk2s2
3: Apple_APFS Container disk4 1.0 TB disk2s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +1.0 TB disk3
Physical Store disk2s2
1: APFS Volume Time machine 475.6 GB disk3s2
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +1.0 TB disk4
Physical Store disk2s3
1: APFS Volume Stockage 61.4 GB disk4s1
2: APFS Volume Stockage_CCC 15.1 GB disk4s2
3: APFS Volume Stockage_CCC - Données 295.1 GB disk4s3
4: APFS Volume Preboot 447.6 MB disk4s4
5: APFS Volume Recovery 615.0 MB disk4s5