Skip to content

Host Disk

windows linux

HostDiskModule retrieves basic information about disk: name, model, size, type, controller and partitions.

Details

It heavily relies on the ghw library.

On Windows, it uses WMI requests:

SELECT Caption, CreationClassName, Description, DeviceID, FileSystem, FreeSpace, Name, Size, SystemName FROM Win32_LogicalDisk
SELECT DeviceId, MediaType FROM MSFT_PhysicalDisk
SELECT Access, BlockSize, Caption, CreationClassName, Description, DeviceID, DiskIndex, Index, Name, Size, SystemName, Type FROM Win32_DiskPartition
SELECT Antecedent, Dependent FROM Win32_LogicalDiskToPartition

On Linux, it reads /sys/block/$DEVICE/** files.

Dependencies