diskutil list
df -H
Paulines-Air:~ paulineleseur$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 30.9 GB disk0s2
3: Apple_APFS Container disk2 90.2 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +30.9 GB disk1
Physical Store disk0s2
1: APFS Volume Disque interne Mac 2.7 MB disk1s1
2: APFS Volume Preboot 21.3 MB disk1s2
3: APFS Volume Recovery 520.8 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +90.2 GB disk2
Physical Store disk0s3
1: APFS Volume Untitled 74.0 GB disk2s1
2: APFS Volume Preboot 44.9 MB disk2s2
3: APFS Volume Recovery 510.5 MB 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 Disque dur Pauline 999.3 GB disk3s2
3: Apple_Boot Recovery HD 650.0 MB disk3s3
Paulines-Air:~ paulineleseur$ df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk2s1 90G 74G 14G 84% 705516 9223372036854070291 0% /
devfs 207k 207k 0B 100% 702 0 100% /dev
/dev/disk2s4 90G 1.1G 14G 7% 2 9223372036854775805 0% /private/var/vm
/dev/disk1s1 31G 2.7M 27G 1% 87 9223372036854775720 0% /Volumes/Disque interne Mac
map -hosts 0B 0B 0B 100% 0 0 100% /net
map auto_home 0B 0B 0B 100% 0 0 100% /home
/dev/disk3s2 999G 651G 349G 66% 3998077 4290969202 0% /Volumes/Disque dur Pauline
com.apple.TimeMachine.2020-05-03-232103@/dev/disk1s1 31G 2.6M 27G 1% 87 9223372036854775720 0% /Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Pauline’s MacBook Air/2020-05-03-232103/Disque interne Mac
com.apple.TimeMachine.2020-05-03-232103@/dev/disk2s1 90G 74G 14G 84% 705463 9223372036854070344 0% /Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Pauline’s MacBook Air/2020-05-03-232103/Untitled
com.apple.TimeMachine.2020-05-03-221757@/dev/disk1s1 31G 2.3M 27G 1% 85 9223372036854775722 0% /Volumes/com.apple.TimeMachine.localsnapshots/Backups.backupdb/Pauline’s MacBook Air/2020-05-03-221757/Disque interne Mac
Paulines-Air:~ paulineleseur$
diskutil resizeVolume disk3s2 850g jhfs+ Clone 0b ; diskutil list disk3
Paulines-Air:~ paulineleseur$ diskutil resizeVolume disk3s2 850g jhfs+ Clone 0b ; diskutil list disk3
Resizing to 850000000000 bytes and adding 1 partition
Started partitioning on disk3s2 Disque dur Pauline
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk3s2
Checking Journaled HFS Plus volume
Checking extents overflow file
Checking catalog file
Checking multi-linked files
Checking catalog hierarchy
Checking extended attributes file
Checking multi-linked directories
Checking volume bitmap
Checking volume information
The volume Disque dur Pauline appears to be OK
File system check exit code is 0
Restoring the original state found as mounted
Resizing
Shrinking file system
Copying booter
Modifying partition map
Initialized /dev/rdisk3s4 as a 139 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
Finished partitioning on disk3s2 Disque dur Pauline
/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 Disque dur Pauline 850.0 GB disk3s2
3: Apple_Boot Recovery HD 650.0 MB disk3s5
4: Apple_HFS Clone 149.2 GB disk3s4
/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 Disque dur Pauline 850.0 GB disk3s2
3: Apple_Boot Recovery HD 650.0 MB disk3s5
4: Apple_HFS Clone 149.2 GB disk3s4
Paulines-Air:~ paulineleseur$
diskutil ap convert disk3s4
Paulines-Air:~ paulineleseur$ diskutil ap convert disk3s4
Converting the volume on disk3s4 to an APFS Volume on an APFS Container
Started APFS operation on disk3s4 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 disk3s4
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 disk3s4
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk3s4
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 disk3s4 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk3s4 to terminate old content driver
Expecting the new APFS Container at Physical Store disk3s4
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 disk3s4 Clone
diskutil list
Paulines-Air:~ paulineleseur$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 30.9 GB disk0s2
3: Apple_APFS Container disk2 90.2 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +30.9 GB disk1
Physical Store disk0s2
1: APFS Volume Disque interne Mac 2.8 MB disk1s1
2: APFS Volume Preboot 21.3 MB disk1s2
3: APFS Volume Recovery 520.8 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +90.2 GB disk2
Physical Store disk0s3
1: APFS Volume Untitled 76.1 GB disk2s1
2: APFS Volume Preboot 44.9 MB disk2s2
3: APFS Volume Recovery 510.5 MB disk2s3
4: APFS Volume VM 2.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 Disque dur Pauline 850.0 GB disk3s2
3: Apple_Boot Recovery HD 650.0 MB disk3s3
4: Apple_APFS Container disk4 149.2 GB disk3s4
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +149.2 GB disk4
Physical Store disk3s4
1: APFS Volume Clone 74.3 GB disk4s1
2: APFS Volume PreBoot 42.9 MB disk4s2
3: APFS Volume Recovery 517.6 MB disk4s3
diskutil list
[Restauré 4 mai 2020 à 16:34:57]
Last login: Mon May 4 16:21:53 on console
Paulines-Air:~ paulineleseur$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 30.9 GB disk0s2
3: Apple_APFS Container disk2 90.2 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +30.9 GB disk1
Physical Store disk0s2
1: APFS Volume Disque interne Mac 3.1 MB disk1s1
2: APFS Volume Preboot 21.3 MB disk1s2
3: APFS Volume Recovery 520.8 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +90.2 GB disk2
Physical Store disk0s3
1: APFS Volume Untitled 76.2 GB disk2s1
2: APFS Volume Preboot 44.9 MB disk2s2
3: APFS Volume Recovery 510.5 MB disk2s3
4: APFS Volume VM 2.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 Disque dur Pauline 850.0 GB disk3s2
3: Apple_Boot Recovery HD 650.0 MB disk3s3
4: Apple_APFS Container disk4 149.2 GB disk3s4
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +149.2 GB disk4
Physical Store disk3s4
1: APFS Volume Clone 74.6 GB disk4s1
2: APFS Volume PreBoot 44.9 MB disk4s2
3: APFS Volume Recovery 517.6 MB disk4s3
4: APFS Volume VM 4.3 GB disk4s4
diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list
Paulines-Air:~ paulineleseur$ diskutil eraseDisk apfs "Macintosh HD" gpt disk0 ; diskutil list
Started erase on disk0
Unmounting disk
Error: -69877: Couldn't open device
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *121.3 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 30.9 GB disk0s2
3: Apple_APFS Container disk2 90.2 GB disk0s3
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +30.9 GB disk1
Physical Store disk0s2
1: APFS Volume Disque interne Mac 3.1 MB disk1s1
2: APFS Volume Preboot 21.3 MB disk1s2
3: APFS Volume Recovery 520.8 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +90.2 GB disk2
Physical Store disk0s3
1: APFS Volume Untitled 76.2 GB disk2s1
2: APFS Volume Preboot 44.9 MB disk2s2
3: APFS Volume Recovery 510.5 MB disk2s3
4: APFS Volume VM 2.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 Disque dur Pauline 850.0 GB disk3s2
3: Apple_Boot Recovery HD 650.0 MB disk3s3
4: Apple_APFS Container disk4 149.2 GB disk3s4
/dev/disk4 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +149.2 GB disk4
Physical Store disk3s4
1: APFS Volume Clone 74.6 GB disk4s1
2: APFS Volume PreBoot 44.9 MB disk4s2
3: APFS Volume Recovery 517.6 MB disk4s3
4: APFS Volume VM 4.3 GB disk4s4
diskutil ap deleteContainer disk1 ; diskutil ap deleteContainer disk2
Paulines-Air:~ paulineleseur$ diskutil ap deleteContainer disk1 ; diskutil ap deleteContainer disk2
Started APFS operation on disk1
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Disque interne Mac" on disk1s1
The volume "Disque interne Mac" on disk1s1 couldn't be unmounted because it is in use by process 542 (backupd)
Error: -69888: Couldn't unmount disk
Started APFS operation on disk2
Deleting APFS Container with all of its APFS Volumes
Unmounting Volumes
Unmounting Volume "Untitled" on disk2s1
The volume "Untitled" on disk2s1 couldn't be unmounted because it is in use by process 542 (backupd)
Error: -69888: Couldn't unmount disk
diskutil umount force disk1s1 ; diskutil umount force disk2s1