Inspect a macOS disk or volume
Build a paste-ready command, then review its compatibility and effects before running it.
read-onlyno known side effects Compatibility
macOSVerified for macOS using zsh, bash syntax.
Operational knowledgereview due 2027-01-20
Requirementsdiskutildiskutil must be installed and available on PATH.
Version supportdiskutil Current supported releasesVerified for macos using zsh, bash syntax; consult compatibility notes for platform-specific differences.
Expected signalsDevice Identifier: disk3s5s1Representative successful output; values vary with the selected target and system state.
Known errorsdiskutil: command not founddiskutil is missing or is not available on PATH.
Verifydiskutil info /The output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01diskutilCommandRuns the diskutil stage of this one-liner.
02infoArgumentPasses info to diskutil.
03/ArgumentPasses / to diskutil.
Example input
diskutil info /
Example output
Device Identifier: disk3s5s1
Device Node: /dev/disk3s5s1
Volume Name: Macintosh HD
Mounted: Yes
File System Personality: APFS
Illustrative output — exact values vary by system and data.
Official sources