Page 1 of 2

HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Mon Feb 12, 2018 11:16 pm
by NevilsStation
Is this a known problem?

HardInfo 0.5.1 Devices->Storage Shows Nothing

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Mon Feb 12, 2018 11:57 pm
by timkb4cq
Same here. On Github there are indications that the versions in stretch & jessie have issues that are now fixed. I'll have a look.

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Tue Feb 13, 2018 12:13 am
by timkb4cq
Building the new version in Buster yields the same result. Since this particular bug hasn't been reported in debian, I'll have to look further tomorrow.

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Tue Feb 13, 2018 12:38 am
by timkb4cq
After a bit of code parsing in the hardinfo GitHub, I discovered that the Storage box info is parsed from /proc/scsi/ & /proc/ide/
With newer kernels those folders do not exist. The information is presented in a different format in /sys/class/scsi_disk/ & /sys/class/ata_device/
That means the hardinfo storage module needs to be rewritten for the new standard.

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Thu Feb 15, 2018 12:29 am
by NevilsStation
Thanks for chasing that down.
I am curious to know ... How do you suppose that they ever missed that one in pre-release testing?

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Thu Feb 15, 2018 1:09 am
by timkb4cq
The Hardinfo project is over a decade old, and the last official release was in 2009. There has been activity in github but lately it's all applying submitted patches. The original author is not doing any coding for it anymore. The module that populates the Storage tab hasn't been touched in 18 months.
If someone could rewrite that storage.c file to work again I'm sure it would get accepted. But although I can generally follow non-obfuscated C coding, it's not in my wheelhouse. I would need docs handy just to write a "Hello World" program in C. :dizzy:

It think it stays in debian through inertia, and because it's still useful even with that bug.

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Thu Feb 15, 2018 7:42 pm
by NevilsStation
So, what do people use to gather the same info?
I can't believe that no one ever wants that data.
It worked fine in Puppy - so maybe they have a patch of some sort?

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Fri Feb 16, 2018 2:58 am
by ChrisUK
NevilsStation wrote:So, what do people use to gather the same info?
[...]
Try

Code: Select all

inxi -dx
in the terminal

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Fri Feb 16, 2018 2:25 pm
by NevilsStation
ChrisUK wrote:
NevilsStation wrote:So, what do people use to gather the same info?
[...]
Try

Code: Select all

inxi -dx
in the terminal

Code: Select all

$ inxi -dx
Drives:    HDD Total Size: 1128.2GB (36.8% used)
           ID-1: /dev/sda model: ADATA_SU800 size: 128.0GB
           ID-2: /dev/sdb model: WDC_WD10EZEX size: 1000.2GB
           Optical-1: /dev/sr0 model: HL-DT-ST DVD-RAM GH40L
           rev: 1.04 dev-links: cdrom,cdrw,dvd,dvdrw
           Features: speed: 40x multisession: yes
audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: running [/code]

That's helpful, thanks!

Is there a way to list USB devices - also missing from HardInfo - as well, please?

Re: HardInfo 0.5.1 Devices->Storage Shows Nothing

Posted: Fri Feb 16, 2018 2:37 pm
by Jerry3904
lsusb?