diskinfo

struct DiskinfoVerb : public Verb

Implements the diskinfo CLI verb.

Prints information about the partitions on a disk.

Usage

On Unix:

sudo apfs diskinfo /dev/rdisk4

On Windows, in an administrator command prompt/powershell:

apfs diskinfo \\.\PhysicalDrive1