Host Disk
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. On windows 11, the local user account must have administrator permissions (it does not mean it must be run as root). ghw: https://github.com/jaypipes/ghw/