diskutil ap deleteSnapshot disk2s1 -xid 1067141
mount
macbook-air-de-mathilde:~ mathilde$ mount
/dev/disk1s1 on / (apfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1s4 on /private/var/vm (apfs, local, noexec, journaled, noatime, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
macbook-air-de-mathilde:~ mathilde$
Si tu as un DDE USB disponible => je peux t'indiquer comment faire.
diskutil list
df -H
MacBook-Air-de-Mathilde:~ mathilde$ 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 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 117.1 GB disk1s1
2: APFS Volume Preboot 45.8 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/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_HFS Maxtor 2.0 TB disk2s2
MacBook-Air-de-Mathilde:~ mathilde$ df -H
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 121G 117G 2.3G 99% 753370 9223372036854022437 0% /
devfs 193k 193k 0B 100% 651 0 100% /dev
/dev/disk1s4 121G 1.1G 2.3G 32% 1 9223372036854775806 0% /private/var/vm
map -hosts 0B 0B 0B 100% 0 0 100% /net
map auto_home 0B 0B 0B 100% 0 0 100% /home
/dev/disk2s2 2.0T 8.6G 2.0T 1% 4909 4294962370 0% /Volumes/Maxtor
MacBook-Air-de-Mathilde:~ mathilde$
diskutil resizeVolume disk2s2 1800g jhfs+ Clone 0b ; diskutil list disk2
macbook-air-de-mathilde:~ mathilde$ diskutil resizeVolume disk2s2 1800g jhfs+ Clone 0b ; diskutil list disk2
Resizing to 1800000000000 bytes and adding 1 partition
Started partitioning on disk2s2 Maxtor
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk2s2
Checking Journaled HFS Plus volume
Detected a case-sensitive 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 Maxtor 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/rdisk2s3 as a 186 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
Finished partitioning on disk2s2 Maxtor
/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_HFS Maxtor 1.8 TB disk2s2
3: Apple_HFS Clone 199.9 GB disk2s3
/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_HFS Maxtor 1.8 TB disk2s2
3: Apple_HFS Clone 199.9 GB disk2s3
macbook-air-de-mathilde:~ mathilde$
diskutil ap convert disk2s3
macbook-air-de-mathilde:~ mathilde$ diskutil ap convert disk2s3
Converting the volume on disk2s3 to an APFS Volume on an APFS Container
Started APFS operation on disk2s3 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 disk2s3
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 disk2s3
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk2s3
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 disk2s3 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk2s3 to terminate old content driver
Expecting the new APFS Container at Physical Store disk2s3
Confirmed existence of new unencrypted APFS Volume disk3s1
Mounting APFS Volume disk3s1
APFS Volume mount attempt result was 0
Exiting conversion operations with error code 0
Disk from APFS operation: disk3s1
Finished APFS operation on disk2s3 Clone
macbook-air-de-mathilde:~ mathilde$
diskutil list
macbook-air-de-mathilde:~ mathilde$ 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 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 117.5 GB disk1s1
2: APFS Volume Preboot 45.8 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 1.1 GB disk1s4
/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_HFS Maxtor 1.8 TB disk2s2
3: Apple_APFS Container disk3 199.9 GB disk2s3
/dev/disk3 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +199.9 GB disk3
Physical Store disk2s3
1: APFS Volume Clone 40.7 GB disk3s1
2: APFS Volume PreBoot 42.9 MB disk3s2
3: APFS Volume Recovery 517.5 MB disk3s3
macbook-air-de-mathilde:~ mathilde$