| Summary: | USB drives do not show SMART data | ||
|---|---|---|---|
| Product: | [Applications] partitionmanager | Reporter: | physkets <physkets> |
| Component: | general | Assignee: | Andrius Štikonas <andrius> |
| Status: | REPORTED --- | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 4.1.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
physkets
2020-08-05 08:26:28 UTC
Hmm, I don't have any devices that support that. So it would be a bit hard for me to test... If you have some patch that works for you, merge request would be ideal. But I understand that this is not always possible. It is unlikely I will be able to figure it out, but could you point me to the relevant bits in the code? I tried looking, but the GUI files seem to include a `smartstatus.h` that I'm unable to find. Could you help me out? (In reply to physkets from comment #2) > It is unlikely I will be able to figure it out, but could you point me to > the relevant bits in the code? > > I tried looking, but the GUI files seem to include a `smartstatus.h` that > I'm unable to find. Could you help me out? Those files are here https://invent.kde.org/system/kpmcore/-/tree/master/src/core There are four .cpp files dealing with smart. smartstatus.cpp displays all that info that GUI requests. It's probably a bit higher level stuff than you need. But you can take a brief look smartparser.cpp on the other hand runs smartctl command in function void SmartParser::loadSmartOutput() adding option -d sat there might immediately help you with your drive but it likely breaks other SMART drives. (In reply to Andrius Štikonas from comment #3) > (In reply to physkets from comment #2) > > It is unlikely I will be able to figure it out, but could you point me to > > the relevant bits in the code? > > > > I tried looking, but the GUI files seem to include a `smartstatus.h` that > > I'm unable to find. Could you help me out? > > Those files are here > https://invent.kde.org/system/kpmcore/-/tree/master/src/core > > There are four .cpp files dealing with smart. > > smartstatus.cpp displays all that info that GUI requests. It's probably a > bit higher level stuff than you need. But you can take a brief look > > smartparser.cpp on the other hand runs smartctl command in function > void SmartParser::loadSmartOutput() > > adding option -d sat there might immediately help you with your drive but it > likely breaks other SMART drives. Hmm, I briefly read man smartctl. It might be better to use -d sat,auto |