Let's say I have the volume path.
Normally I can right-click and 'Get info' to get its Disk image.
I want to replicate the same on terminal (basically need to code it in objective C)
mdls doesn't seem to helping. Not xattr, putils etc.
MacOS – How to get the Disk Image property using terminal
command linefilesystemmacosmetadata
Related Question
- Drag file from file chooser or get path
- MacOS – Why does “kernel[0]: AFP_VFS afpfs_vnop_ioctl: afpfs_FindForkRef failed -1” pour from MusicBrainz Picard when writing to the AFP NAS server
- MacOS – External disk reports incorrect amount of free space after doing clean up via terminal. DiskUtility’s Repair temporarily fixes it, but why
- MacOS – Changing a startup disk using AppleScript
- MacOS – How to get the path to a DMG (disk image) file given the mounted volume path
- MacOS – GUI vs. CLI Folders on macOS
- MacOS – Resized/Rotated PNG image using ImageMagic is blury. How to sharpen
Best Answer
The Disk Utility application shows the following on my Mac.
If I select "Get Info" on Marlin, I get the following popup.
I can also get information about the volume labeled
Marlin
by entering the following command in a Terminal application window.Doing so produces the following output.
Which is basically the same as using the Disk Utility application.