List Physical Drives

List the physical drives that are available on a system.
Updated 2 Dec 2022

View License

Simple system utility function which returns a table containing information about physical drives available on a system.
  • Implement for linux systems
  • Add internal, external (how to get this on pc?)
  • On mac, file system is not correct...
  • On mac, don't show partitions?
  • On windows, is the serial number complete?
  • On mac, add serial number
  • On mac, parse result when using -plist instead?
  • On windows, use 'where drivetype=3' i.e 'wmic logicaldisk where drivetype=3 get ...' ?

Cite As

Eivind Hennestad (2024). List Physical Drives (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Added missing local function