lsdsk
English | Deutsch

lsdsk is a storage diagnostic for Linux and Windows. It groups every drive under the
controller and the PCIe or USB path it hangs off, reads what the ports and the drives can do
and what they actually negotiated, reads SMART data and error counters, and recommends what to
act on.
USB drives are covered like internal ones. lsdsk shows the speed a USB disk runs at against
what the drive and its socket can do, flags a USB 3 drive that came up at USB 2 speed, and
reads SMART through the USB bridge where the bridge passes it on. For every disk it shows
whether the machine boots from it and what it is mapped to: the drive letters on Windows, the
mount points on Linux, or the ZFS pool, LVM volume group, RAID array or encrypted volume it
belongs to.
FINDINGS.md
says exactly when it can call a disk not mounted and when it falls back to - instead.
c't Magazin covered it on 17 September 2026, in German:
Kommandozeilentool lsdsk: Performance-Engpässe bei SSDs und Controllern finden.
Ten drives, three controllers, a chipset and a riser between them and the CPU. The machine
boots fine, and nothing on it tells you that one card negotiated x1 in an x8 slot, that two
SSDs share a link, or that the free port you were about to fill hangs off an uplink that is
already full. A storage server rarely fails outright. It runs quietly for years with a
shortfall that is easy to fix, and the values that would explain it are spread across sysfs, a
set of ioctls and the mainboard manual.
lsdsk makes no network requests, with two exceptions that both stay off until you ask for them.
The optional Graylog log sink opens a connection only once you enable it. And if you accept the
offer to create a desktop shortcut on a machine that has no uv installed, lsdsk can install uv for
you from the official astral.sh installer, but only after you confirm; that installer runs the
astral.sh script through sh and curl on Linux and macOS, and through PowerShell on Windows.
Apart from that installer, the one process it ever
starts is its own elevated copy: the interactive view asks for Administrator on Windows, where it
reopens elevated in a new window, and for root through sudo on Linux and macOS, where it restarts
as root in the same terminal (--no-elevate turns that off). Every value it prints was read directly,
from sysfs and direct ioctls on Linux and from SetupAPI and DeviceIoControl on Windows.
QUICKSTART
The command below needs uv and nothing else; if uv is not installed yet,
INSTALL.md documents the one-line installer for
Linux, macOS and Windows.
For full information run lsdsk as root or Administrator. Without those rights you lose SMART
wear, the error counters, PCIe connector detection, the SATA controllers' port count and, on
Linux before kernel 6.9, what a USB disk itself can do. The
details are in INSTALL.md.
The usual invocation is uvx lsdsk@latest - uv then installs the newest version in a virtual
environment. The rest of this document writes the short form lsdsk for readability.