diskutil ap deleteVolume disk2s4
-bash-3.2# diskutil ap deleteVolume disk2s4
Started APFS operation
Deleting APFS Volume from its APFS Container
Unmounting disk2s4
Deleting Volume
[ / 0%..10%..20%..30%..40%..50%...................... ] 50.0%
-bash-3.2# diskutil mount /dev/disk2s1
Volume on disk2s1 failed to mount; it appears to be an APFS Volume which might be locked
Try "diskutil apfs unlockVolume"
-bash-3.2# diskutil apfs unlockVolume
Usage: diskutil apfs unlockVolume|unlock <apfsVolumeDisk>
[-user disk | -user <cryptoUserUUID> | -recoverykeychain keychainFile]
[-passphrase <passphrase> | -stdinpassphrase]
[-nomount | -mountpoint <mountPoint> | -verify] [-plist]
where <apfsVolumeDisk> = APFS Volume DiskIdentifier
<cryptoUserUUID> = one of (possibly many) users who have access
<keychainFile> = a full path to an unlocked keychain file
<passphrase> = a password (if none specifed, get interactively)
<mountPoint> = custom (must exist and your uid must have privs)
Unlock an encrypted APFS Volume which is currently locked. If you do not supply
the -user option, then all users are searched for a match; if you supply "disk"
then the Disk UUID (which equals the APFS Volume UUID) is assumed; if you supply
a UUID then that crypto user is assumed. You can supply the password on the
command line (specify "-passphrase foo") or interactively (specify no
passphrase). Scripts can securely pipe into diskutil's stdin when using
"-stdinpassphrase".
Ownership of the affected disks is required in addition to the credentials.
Examples: diskutil apfs unlockVolume disk5s1
diskutil apfs unlockVolume disk5s1 -passphrase hello
-bash-3.2# diskutil apfs unlockVolume disk2s1 -passphrase 2826
Unlocking any cryptographic user on APFS Volume disk2s1
Unlocked and mounted APFS Volume
-bash-3.2# diskutil verifyVolume disk2s1
Started file system verification on disk2s1 Macintosh HD
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_apfs -n -l -x /dev/rdisk2s1
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the space manager free queue trees
error: sfqe_entry : (range 0x46d6f29+0x1, xid 0xabe94b) : Range in free queue tree is not a vaid address range on disk
error: Spaceman free queue tree of type [1] is invalid
Space manager free queue trees are invalid
The volume /dev/rdisk2s1 could not be verified completely
File system check exit code is 0
Restoring the original state found as mounted
Finished file system verification on disk2s1 Macintosh HD
-bash-3.2#
-bash-3.2# diskutil mount /dev/disk2s4
Volume VM on /dev/disk2s4 mounted
-bash-3.2# diskutil verifyVolume disk2s4
Started file system verification on disk2s4 VM
Verifying file system
Volume could not be unmounted
Using live mode
Performing fsck_apfs -n -l -x /dev/rdisk2s4
Checking the container superblock
Checking the EFI jumpstart record
Checking the space manager
Checking the space manager free queue trees
error: sfqe_entry : (range 0x46d6f29+0x1, xid 0xabe94b) : Range in free queue tree is not a vaid address range on disk
error: Spaceman free queue tree of type [1] is invalid
Space manager free queue trees are invalid
The volume /dev/rdisk2s4 could not be verified completely
File system check exit code is 0
Restoring the original state found as mounted
Finished file system verification on disk2s4 VM
-bash-3.2#
diskutil list ; df -H
-bash-3.2# diskutil list ; df -H
/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 disk2 121.1 GB disk0s2
/dev/disk1 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +2.1 GB disk1
1: Apple_HFS macOS Base System 2.0 GB disk1s1
/dev/disk2 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk2
Physical Store disk0s2
1: APFS Volume Macintosh HD 114.8 GB disk2s1
2: APFS Volume Preboot 27.9 MB disk2s2
3: APFS Volume Recovery 510.3 MB disk2s3
4: APFS Volume VM 5.4 GB disk2s4
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_HFS Maxtor 2.0 TB disk3s2
/dev/disk4 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +5.2 MB disk4
/dev/disk5 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk5
/dev/disk6 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk6
/dev/disk7 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk7
/dev/disk8 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk8
/dev/disk9 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk9
/dev/disk10 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk10
/dev/disk11 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +12.6 MB disk11
/dev/disk12 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +4.2 MB disk12
/dev/disk13 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk13
/dev/disk14 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk14
/dev/disk15 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk15
/dev/disk16 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk16
/dev/disk17 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +1.0 MB disk17
/dev/disk18 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk18
/dev/disk19 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk19
/dev/disk20 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +6.3 MB disk20
/dev/disk21 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +524.3 KB disk21
/dev/disk22 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: untitled +2.1 MB disk22
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s1 2.0G 1.3G 721M 64% 50287 4294916992 0% /
devfs 212k 212k 0B 100% 716 0 100% /dev
/dev/disk4 5.2M 3.6M 1.7M 69% 22 4294967257 0% /private/var/log
/dev/disk5 524k 147k 377k 29% 8 4294967271 0% /Volumes
/dev/disk6 524k 147k 377k 29% 8 4294967271 0% /private/var/tmp
/dev/disk7 524k 156k 369k 30% 14 4294967265 0% /private/var/run
/dev/disk8 2.1M 143k 2.0M 7% 2 4294967277 0% /private/tmp
/dev/disk9 524k 143k 381k 28% 2 4294967277 0% /System/Installation
/dev/disk10 524k 295k 229k 57% 19 4294967260 0% /private/var/db
/dev/disk11 13M 3.5M 9.1M 28% 71 4294967208 0% /private/var/folders
/dev/disk12 4.2M 205k 4.0M 5% 19 4294967260 0% /private/var/root/Library
/dev/disk14 2.1M 143k 2.0M 7% 2 4294967277 0% /private/var/root/Library/Containers
/dev/disk15 524k 180k 344k 35% 11 4294967268 0% /Library/Preferences
/dev/disk16 524k 156k 369k 30% 5 4294967274 0% /Library/Preferences/SystemConfiguration
/dev/disk17 1.0M 197k 852k 19% 8 4294967271 0% /Library/Keychains
/dev/disk18 524k 143k 381k 28% 2 4294967277 0% /Library/Security/Trust Settings
/dev/disk19 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/RecoveryTemp
/dev/disk20 6.3M 176k 6.1M 3% 2 4294967277 0% /private/var/tmp/OSISPredicateUpdateProductTemp
/dev/disk21 524k 143k 381k 28% 2 4294967277 0% /private/var/tmp/InstallerCookies
/dev/disk22 2.1M 143k 2.0M 7% 2 4294967277 0% /Library/Logs/DiagnosticReports
/dev/disk3s2 2.0T 130G 1.9T 7% 2018983 4292948296 0% /Volumes/Maxtor
/dev/disk2s1 121G 115G -4.1k 1% 955016 9223372036853820791 0% /Volumes/Macintosh HD
/dev/disk2s2 121G 28M -4.1k 1% 101 9223372036854775706 0% /Volumes/Preboot
/dev/disk2s3 121G 510M -4.1k 1% 34 9223372036854775773 0% /Volumes/Recovery
/dev/disk2s4 121G 5.4G -4.1k 1% 5 9223372036854775802 0% /Volumes/VM
-bash-3.2#
diskutil resizeVolume disk3s2 1800g jhfs+ Clone 0b
-bash-3.2# diskutil resizeVolume disk3s2 1800g jhfs+ Clone 0b
Resizing to 1800000000000 bytes and adding 1 partition
Started partitioning on disk3s2 Maxtor
Verifying the disk
Verifying file system
Volume was successfully unmounted
Performing fsck_hfs -fn -x /dev/rdisk3s2
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 multi-linked directories
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/rdisk3s3 as a 186 GB case-insensitive HFS Plus volume with a 16384k journal
Mounting disk
Finished partitioning on disk3s2 Maxtor
/dev/disk3 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *2.0 TB disk3
1: EFI EFI 209.7 MB disk3s1
2: Apple_HFS Maxtor 1.8 TB disk3s2
3: Apple_HFS Clone 199.9 GB disk3s3
-bash-3.2#
ls /Vol*
-bash-3.2# ls /Vol*
Clone Maxtor macOS Base System
-bash-3.2# diskutil apfs unlockVolume disk2s1 -passphrase 2826
Unlocking any cryptographic user on APFS Volume disk2s1
Unlocked and mounted APFS Volume
-bash-3.2# diskutil mountDisk /dev/disk2
Volume(s) mounted successfully
-bash-3.2# ls /Vol*
Clone Preboot macOS Base System
Macintosh HD Recovery
Maxtor VM
-bash-3.2#
diskutil ap convert disk3s3
-bash-3.2# diskutil ap convert disk3s3
Converting the volume on disk3s3 to an APFS Volume on an APFS Container
Started APFS operation on disk3s3 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 disk3s3
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 disk3s3
Starting conversion from HFS to APFS
Performing apfs_hfs_convert -x --verbose=0x400 --efi /usr/standalone/i386/apfs.efi /dev/disk3s3
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 disk3s3 to APFS
Changing the physical disk partition type in shared mode
Partition modification attempt count was 1
Opening and closing disk3s3 to terminate old content driver
Expecting the new APFS Container at Physical Store disk3s3
Confirmed existence of new unencrypted APFS Volume disk23s1
Mounting APFS Volume disk23s1
APFS Volume mount attempt result was 0
Exiting conversion operations with error code 0
Disk from APFS operation: disk23s1
Finished APFS operation on disk3s3 Clone
-bash-3.2#
caffeinate -dimsu &
cp -av /Vol*/Macin*/* /Vol*/Clone
caffeinate -dimsu &
cp -avn /Vol*/Macin*/* /Vol*/Clone