Lshw outputs to single line

I think I’ve found it. Run sudo modprobe sg and then sudo lshw -class disk, lshw should give you the expected results.

Reason: lshw uses sg library to check on disks and sg kernel module is not automatically loaded. Once loaded, lshw works fine.

Source:

2 Likes