diskutil list
- Get a list of all block devices
sudo diskutil mount disk0f1
- Mount a disk; Name is found in the list obtained using
diskutil tool
e.g. disk0f1
sudo diskutil unmount disk0f1
- Unmount a disk
Once virtual disk has been resized, the following commands should be run to allow the apfs partitions to expand into the free space. For example if the virtual disk is a Linux qemu disk format i.e. qcow2, after running qemu-img resize MyDisk.qcow2 +20G
to expand the file MyDisk.qcow2 by 20 gigabytes, the following commands should be run in Mac terminal. Explained here.