🗃️Hard Drive

Hard drives, SSDs, and NVMe chips

This lists information about the hard drives that are parsed by Inxi. You can use the below properties to learn more about its information.

Module name according to each operating system:

OSModule name

Linux

007#Drives

Windows

Win32_DiskDrive Win32_DiskPartition Win32_LogicalDisk

macOS

SPStorageDataType

You can call the module either by enumerating through the entire dictionary of the hard drives, or you can use their names directly as follows:

HardwareInfo.HDD["TOSHIBA DT01ACA100"].<property>

which <property> is:

PropertyTypeDescription

ID

String

Drive ID

Size

String

Drive size

Model

String

Drive model

Vendor

String

Drive vendor

Speed

String

Drive speed

Serial

String

Drive serial number

Partitions

Dictionary of string and Partition

Drive partitions

Drive size is automatically GiB in Inxi on Unix systems, and is in bytes on Windows systems.

Compatibility notes:

  • Drive speed property is not implemented yet on Windows

  • Drive speed and vendor properties are not supported yet on macOS

Last updated