lsds: A One-Stop Shop for Linux Block Device Settings

2025-05-09

Managing disks and I/O on Linux often involves running multiple commands like lsblk, lsscsi, and nvme list, then manually correlating their output. To streamline this, a Python program called `lsds` was created. It directly reads information from the `/sys/class/blocks/...` directories, consolidating key disk details into a single, easy-to-read output. This includes device name, size, type, scheduler, rotational flag, model, queue depth, number of requests, and write cache settings. `lsds` is highly customizable, allowing users to specify which columns to display and providing a verbose mode for tracing information sources. This tool significantly simplifies the complexity of managing Linux disks.