edisionnano / QDiskInfo

QDiskInfo is a frontend for smartctl (part of the smartmontools package). It provides a user experience similar to CrystalDiskInfo. It shows the SMART (Self-Monitoring, Analysis, and Reporting Technology) data of modern hard disk drives.
GNU General Public License v3.0
102 stars 9 forks source link

Option to display all disks buttons without needing to scroll #16

Open sgmihai opened 1 month ago

sgmihai commented 1 month ago

https://i.imgur.com/XdNYs2J.png Not very pracrtical, if you want to see if any is bad at a glance, when you have tens/hundreds of disks.

Also, it fails to detect a HGST SAS disk as HGST : https://i.imgur.com/HoPi0zr.png

edisionnano commented 1 month ago

How would that look? A popup with grid? As for your HGST disk you show /dev/sdam on the top screenshot and /dev/sdbe on the bottom, are these disks the same? I'd want the JSON sudo smartctl -a --json=o /dev/sdam > /tmp/sdam.json this produces

sgmihai commented 1 month ago

An option to switch between a list (horizontal scroll) or a grid (vertical scroll) would be optimal, if it's not too complicated to implement.

Will post the json soon.

edisionnano commented 1 month ago

An option to switch between a list (horizontal scroll) or a grid (vertical scroll) would be optimal, if it's not too complicated to implement.

Will post the json soon.

Ah okay now I got what you meant, yes please send the JSON

sgmihai commented 1 month ago

Here you go, json of one of the disks: https://pastebin.com/raw/VQK5DD83

edisionnano commented 1 month ago

Ahhh, a SCSI drive, yeah these are different. QDiskInfo only supports SAT and NVMe at the moment

edisionnano commented 2 weeks ago

@sgmihai Compile the latest version and tell me if your scsi drive:

  1. Has a correct model name now
  2. Shows a power on count
  3. Shows ---- instead of empty Firmware
sgmihai commented 2 weeks ago

https://i.imgur.com/tIQSOTf.png Better, but, still missing firmware info, it's "A907" in the log. Missing reads/writes info, I think this is the relevant part from the log " "Error counter log:", " Errors Corrected by Total Correction Gigabytes Total", " ECC rereads/ errors algorithm processed uncorrected", " fast | delayed rewrites corrected invocations [10^9 bytes] errors", "read: 0 0 0 0 231780 6170,833 0", "write: 0 42 0 42 277773 9475,177 0","

edisionnano commented 2 weeks ago

https://i.imgur.com/tIQSOTf.png Better, but, still missing firmware info, it's "A907" in the log. Missing reads/writes info, I think this is the relevant part from the log " "Error counter log:", " Errors Corrected by Total Correction Gigabytes Total", " ECC rereads/ errors algorithm processed uncorrected", " fast | delayed rewrites corrected invocations [10^9 bytes] errors", "read: 0 0 0 0 231780 6170,833 0", "write: 0 42 0 42 277773 9475,177 0","

Done. Currently for SCSI we show Good if the smart test passed and Bad if it failed. Next, I will try to parse scsi_grown_defect_list and total_uncorrected_errors for the Warning status and perhaps display the scsi_error_counter_log at the bottom table,

edisionnano commented 1 week ago

If scsi_grown_defect_list is !=0 the status will be caution, I haven't found a good place to display it though, perhaps a popup. The table now has the counter log, the status is caution for uncorrected errors. @sgmihai give it a test