diskutil eraseVolume free null disk0s3
Started erase on disk0s3 Macintosh HD
Unmounting disk
Finished erase on disk0
MacBook-Pro-de-Mondoloni:~ pandora$ diskutil ap resizeContainer disk2 0b
Started APFS operation
Aligning grow delta to 56 963 178 496 bytes and targeting a new physical store size of 499 963 174 912 bytes
Determined the maximum size for the targeted physical store of this APFS Container to be 499 962 146 816 bytes
Resizing APFS Container designated by APFS Container Reference disk2
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Using live mode
Performing fsck_apfs -n -x -l /dev/disk0s2
Checking volume
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the object map
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Checking the APFS volume superblock
Checking the object map
Checking the fsroot tree
Checking the snapshot metadata tree
Checking the extent ref tree
Checking the snapshots
Verifying allocated space
The volume /dev/disk0s2 appears to be OK
Storage system check exit code is 0
Growing APFS Physical Store disk0s2 from 442 999 996 416 to 499 963 174 912 bytes
Modifying partition map
Growing APFS data structures
Finished APFS operation
MacBook-Pro-de-Mondoloni:~ pandora$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 500.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk2 500.0 GB disk0s2
/dev/disk1 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *970.2 GB disk1
1: EFI EFI 209.7 MB disk1s1
2: Apple_HFS Sans titre 969.9 GB disk1s2
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +500.0 GB disk2
Physical Store disk0s2
1: APFS Volume Pandora 298.0 GB disk2s1
2: APFS Volume Preboot 117.8 MB disk2s2
3: APFS Volume Recovery 2.6 GB disk2s3
4: APFS Volume VM 1.1 GB disk2s4
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_HFS Pandora 999.9 GB disk3s2