M
macbook-pro-de-buillard:~ buillardthomas$ diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 240.8 GB disk1s1
2: APFS Volume Preboot 46.1 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +13.2 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Shared Support 12.8 GB disk2s2
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +3.6 GB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_HFS QGIS-LTR.app 3.3 GB disk3s2
-----------------------------------------
macbook-pro-de-buillard:~ buillardthomas$ sudo find -x / -d 1 -regex '.*[^\.\].*' -exec sudo du -shx {} +
0B /.HFS+ Private Directory Data
1,0K /home
637M /usr
du: /.Spotlight-V100: Operation not permitted
1,0K /net
12K /.DS_Store
0B /.PKInstallSandboxManager-SystemSoftware
2,5M /bin
0B /installer.failurerequests
0B /Network
1,0M /sbin
0B /.file
0B /etc
0B /var8,9G /Library
7,0G /System
4,0K /.OSInstallerMessages
29M /.fseventsd
4,6G /private
412K /.DocumentRevisions-V100
0B /.vol
13G /Users
30G /Applications
5,0K /dev
0B /Volumes
0B /tmp
0B /cores
-----------------------------------------
macbook-pro-de-buillard:~ buillardthomas$ diskutil verifyVolume disk1
Started file system verification on disk1
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 hfs_convert (945.275.7) and last modified by apfs_kext (945.275.9)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 1
error: (oid 0x520009ab00) apfs_extentref: btn: invalid object address (0x520009ab00)
Snapshot is invalid
The volume /dev/disk0s2 could not be verified completely
Storage system check exit code is 0
Finished file system verification on disk1
macbook-pro-de-buillard:~ buillardthomas$ tmutil listlocalsnapshots /System/Volumes/Data
/System/Volumes/Data is not a valid disk
tmutil listlocalsnapshots /
diskutil verifyVolume disk1
macbook-pro-de-buillard:~ buillardthomas$ diskutil verifyVolume disk1
Started file system verification on disk1
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 hfs_convert (945.275.7) and last modified by apfs_kext (945.275.9)
Checking the object map
Checking the snapshot metadata tree
Checking the snapshot metadata
Checking snapshot 1 of 1
error: (oid 0x520009ab00) apfs_extentref: btn: invalid object address (0x520009ab00)
Snapshot is invalid
The volume /dev/disk0s2 could not be verified completely
Storage system check exit code is 0
Finished file system verification on disk1
Checking snapshot 1 of 1
error: (oid 0x520009ab00) apfs_extentref: btn: invalid object address (0x520009ab00)
Snapshot is invalid
diskutil list ; df -H
macbook-pro-de-buillard:~ buillardthomas$ diskutil list ; df -H
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 241.6 GB disk1s1
2: APFS Volume Preboot 45.5 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +13.2 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Shared Support 12.8 GB disk2s2
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +3.6 GB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_HFS QGIS-LTR.app 3.3 GB disk3s2
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS Thomas Passport 999.8 GB disk4s2
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 251G 242G 6.2G 98% 963556 9223372036853812251 0% /
devfs 206k 206k 0B 100% 697 0 100% /dev
/dev/disk1s4 251G 2.1G 6.2G 26% 2 9223372036854775805 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 13G 12G 366M 98% 15 4294967264 0% /Volumes/Shared Support
/dev/disk3s2 3.3G 3.3G 10M 100% 33244 4294934035 0% /Volumes/QGIS-LTR.app
/dev/disk4s2 1000 435G 564G 44% 1968613 4292998666 0% /Volumes/Thomas Passport
diskutil resizeVolume disk4s2 900g jhfs+ Clone 0b ; diskutil list disk4
macbook-pro-de-buillard:~ buillardthomas$ diskutil resizeVolume disk4s2 900g jhfs+ Clone 0b ; diskutil list disk4
Resizing to 900000000000 bytes and adding 1 partition
Started partitioning on disk4s2 Thomas Passport
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk4s2
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 Thomas Passport 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/rdisk4s3 as a 93 GB case-insensitive HFS Plus volume with a 8192k journal
Mounting disk
Finished partitioning on disk4s2 Thomas Passport
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS Thomas Passport 900.0 GB disk4s2
3: Apple_HFS Clone 99.7 GB disk4s3
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS Thomas Passport 900.0 GB disk4s2
3: Apple_HFS Clone 99.7 GB disk4s3
diskutil ap convert disk4s3 ; diskutil list
macbook-pro-de-buillard:~ buillardthomas$ diskutil ap convert disk4s3 ; diskutil list
Converting the volume on disk4s3 to an APFS Volume on an APFS Container
Started APFS operation on disk4s3 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 disk4s3
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 disk4s3
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk4s3
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 disk4s3 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk4s3 to terminate old content driver
Expecting the new APFS Container at Physical Store disk4s3
Confirmed existence of new unencrypted APFS Volume disk5s1
Mounting APFS Volume disk5s1
APFS Volume mount attempt result was 0
Exiting conversion operations with error code 0
Disk from APFS operation: disk5s1
Finished APFS operation on disk4s3 Clone
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 251.0 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 250.7 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +250.7 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 241.6 GB disk1s1
2: APFS Volume Preboot 45.5 MB disk1s2
3: APFS Volume Recovery 510.5 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +13.2 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Apple_HFS Shared Support 12.8 GB disk2s2
/dev/disk3 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +3.6 GB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_HFS QGIS-LTR.app 3.3 GB disk3s2
/dev/disk4 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk4
1: EFI EFI 209.7 MB disk4s1
2: Apple_HFS Thomas Passport 900.0 GB disk4s2
3: Apple_APFS Container disk5 99.7 GB disk4s3
/dev/disk5 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +99.7 GB disk5
Physical Store disk4s3
1: APFS Volume Clone 978.9 KB disk5s1