[smartmontools-support] Samsung HD502IJ new firmware causes i/o error while querying Device Statistics log

Christian Franke Christian.Franke at t-online.de
Sat Apr 12 19:08:10 CEST 2025


Viktor Štujber wrote:
> Alright. I guess only dissecting the firmware could show if those 
> 'badly formed scsi parameters' could even be satisfied. Aside from 
> that, I was thinking of at least working around the firmware bug so 
> that basic functionality isn't affected.
>
> I saw that drivedb is able to target specific firmware versions and 
> already has a bunch of -F quirks. Funnily enough, three of the six are 
> for 'samsung' and my particular drive is also samsung.

These options are very old, the last one 'samsung3' was added 2007.


> I also saw documentation for -F nologdir and tried it out, and it 
> doesn't look like it does precisely what it says it does... it only 
> stops output of the GP log directory, but it still goes through every 
> available GP and S log anyway. 

If -F nologdir is specified, a log directory which indicates support for 
'standard' logs (Error, Self-Test, Device Statistics) is assumed. It was 
added for early Intel SSDs which stopped working after a log directory 
read command.


> I guess if this was ever meant to be addressed, I would rewrite this 
> quirk to actually apply comprehensively and to allow specifying an 
> optional list of log addresses to exclude (0x00 causing all the other 
> logs to be skipped as well, which the docs say is supposed to be this 
> quirk's intended effect.)

Was never needed, except for the mentioned Intel SSDs. Feel free to 
create a ticket or GH issue/PR with detailed suggestions.

-- 
Regards,
Christian



More information about the Smartmontools-support mailing list