Search code examples
objective-cmacoscocoavolumedisk-partitioning

Geting list of all partitons and their names on startup volume


Using Cocoa, how can I get list of all partitions with their mounted paths and volume names on startup disk?

Thanks.


Solution

  • Run diskutil list -plist and parse the output.