Data recovery and disk repair questions and discussions related to old-fashioned SATA, SAS, SCSI, IDE, MFM hard drives - any type of storage device that has moving parts
Post a reply

How to erase smart error logs?

October 25th, 2021, 7:18

I have various SATA drives from Samsung, WD and Hitachi which work correctly, but the smart error logs show past glitches which IMHO have no real meaning about the reliability of these drives.

However, smartctl exits with some high bits set which trigger my health checking scripts.

For this reason I would like to add a paper sticker to these disk indicating what they have shown and thereafter clear the error logs.

After reading a lot in this forum I have come to the conclusion that clearing the error log should be easy by issuing the right VSC's. However I lack the time for going into more details and hope that the experts here can tell me a cookbook recipe how to do that.

Thanks in advance and regards from Switzerland
Irgendeiner

Re: How to erase smart error logs?

October 28th, 2021, 10:46

Too sad that no one told me a cookbook recipe.
I therefore try to add code to smartcl (source in C++) which does it....

Re: How to erase smart error logs?

November 2nd, 2021, 21:12

Irgendeiner wrote:Too sad that no one told me a cookbook recipe.
I therefore try to add code to smartcl (source in C++) which does it....
Wow, would you be willing to share this smartcl?
Post a reply