-bash-3.2# diskutil ap list
APFS Container (1 found)
|
+-- Container disk2 FC5C8C59-7330-424C-A55E-8BB281037C8B
====================================================
APFS Container Reference: disk2
Size (Capacity Ceiling): 499963174912 B (500.0 GB)
Capacity In Use By Volumes: 118195986432 B (118.2 GB) (23.6% used)
Capacity Not Allocated: 381767188480 B (381.8 GB) (76.4% free)
|
+-< Physical Store disk0s2 455A235A-60AD-4DDC-8707-70A25C1B49CA
| -----------------------------------------------------------
| APFS Physical Store Disk: disk0s2
| Size: 499963174912 B (500.0 GB)
|
+-> Volume disk2s1 FC732AC6-8F05-4B94-8910-4D34FEC7145B
| ---------------------------------------------------
| APFS Volume Disk (Role): disk2s1 (Data)
| Name: MacOS - Data - Données - Données - Données - Données - Données - Data - Data - Data (Case-insensitive)
| Mount Point: Not Mounted
| Capacity Consumed: 115097669632 B (115.1 GB)
| Sealed: No
| FileVault: Yes (Locked)
|
+-> Volume disk2s2 1D234F1A-4113-40CB-942B-7AFD3D55E816
| ---------------------------------------------------
| APFS Volume Disk (Role): disk2s2 (Preboot)
| Name: Preboot (Case-insensitive)
| Mount Point: Not Mounted
| Capacity Consumed: 169078784 B (169.1 MB)
| Sealed: No
| FileVault: No
|
+-> Volume disk2s3 FE0FE147-6058-4902-AF90-F7D702065392
| ---------------------------------------------------
| APFS Volume Disk (Role): disk2s3 (Recovery)
| Name: Recovery (Case-insensitive)
| Mount Point: Not Mounted
| Capacity Consumed: 619618304 B (619.6 MB)
| Sealed: No
| FileVault: No
|
+-> Volume disk2s4 57D0C74A-43C8-4977-B0EA-8264B2A445C7
---------------------------------------------------
APFS Volume Disk (Role): disk2s4 (VM)
Name: VM (Case-insensitive)
Mount Point: Not Mounted
Capacity Consumed: 2147504128 B (2.1 GB)
Sealed: No
FileVault: No (Encrypted at rest)
-bash-3.2#
+-> Volume disk2s1 FC732AC6-8F05-4B94-8910-4D34FEC7145B
| ---------------------------------------------------
| APFS Volume Disk (Role): disk2s1 (Data)
| Name: MacOS - Data - Données - Données - Données - Données - Données - Data - Data - Data (Case-insensitive)
| Mount Point: Not Mounted
| Capacity Consumed: 115097669632 B (115.1 GB)
| Sealed: No
| FileVault: Yes (Locked)
ls /Vol*/MacOS*
-bash-3.2# ls /Vol*/MacOS*
.DocumentRevisions-V100 Volumes
.Spotlight-V100 cores
.TempReceipt.bom home
.TemporaryItems macOS Install Data
.fseventsd mnt
.installer-compatibility opt
Applications private
Library sw
System usr
Users
-bash-3.2#
diskutil ap resizeContainer disk2 300g jhfs+ Clone 0b
-bash-3.2# diskutil ap resizeContainer disk2 300g jhfs+ Clone 0b
Started APFS operation
Aligning shrink delta to 199 963 176 960 bytes and targeting a new physical store size of 299 999 997 952 bytes
Determined the minimum size for the targeted physical store of this APFS Container to be 121 701 924 864 bytes
Resizing APFS Container designated by APFS Container Reference disk2
The specific APFS Physical Store being resized is disk0s2
Verifying storage system
Performing fsck_apfs -n -x /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
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
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
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
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
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 299 999 997 952 bytes
Shrinking APFS data structures
Shrinking partition
Modifying partition map
Initialized /dev/rdisk0s3 as a 186 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
1 new disk created or changed due to APFS operation
Disk from APFS operation: disk0s3
Finished APFS operation
-bash-3.2#
diskutil ap convert disk0s3
-bash-3.2# diskutil ap convert disk0s3
Converting the volume on disk0s3 to an APFS Volume on an APFS Container
Started APFS operation on disk0s3 (Clone)
Converting HFS Volume to an APFS Container which will export one APFS Volume
The target is the Journaled HFS+ volume "Clone" backed by the GPT partition disk0s3
The target is 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 disk0s3
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk0s3
Reporting post-conversion statistics
A problem occurred during conversion from HFS to APFS
APFS Converter exit code is 1
Aborted conversion in commit mode so will restore type
Setting type of disk0s3 to HFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Not mounting APFS Volume
Exiting conversion operations with error code -69860
Error: -69860: The underlying task reported failure on exit
Underlying error: 1
-bash-3.2#
diskutil list internal
-bash-3.2# diskutil list internal
/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 disk2 300.0 GB disk0s2
3: Apple_HFS Clone 199.8 GB disk0s3
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +300.0 GB disk2
Physical Store disk0s2
1: APFS Volume MacOS - Data - Donné... 115.1 GB disk2s1
2: APFS Volume Preboot 169.1 MB disk2s2
3: APFS Volume Recovery 619.6 MB disk2s3
4: APFS Volume VM 2.1 GB disk2s4
-bash-3.2#
diskutil mount disk0s3
Volume Clone on disk0s3 mounted
diskutil ap convert disk0s3
-bash-3.2# diskutil mount disk0s3
Volume Clone on disk0s3 mounted
-bash-3.2# diskutil ap convert disk0s3
Converting the volume on disk0s3 to an APFS Volume on an APFS Container
Started APFS operation on disk0s3 (Clone)
Converting HFS Volume to an APFS Container which will export one APFS Volume
The target is the Journaled HFS+ volume "Clone" backed by the GPT partition disk0s3
The target is 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 disk0s3
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk0s3
Reporting post-conversion statistics
A problem occurred during conversion from HFS to APFS
APFS Converter exit code is 1
Aborted conversion in commit mode so will restore type
Setting type of disk0s3 to HFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Not mounting APFS Volume
Exiting conversion operations with error code -69860
Error: -69860: The underlying task reported failure on exit
Underlying error: 1
-bash-3.2#
caffeinate -dimsu &
cp -av /Vol*/MacOS*/* /Vol*/Clone