[smartmontools-support] smartctl fails but badblocks succeeds

Alex mysqlstudent at gmail.com
Tue Jun 28 22:08:23 CEST 2022


Hi,

> https://pastebin.com/P2uvFxfa
> >
> > I've also tried to run badblocks on the area around that bad sector, and
> > it's succeeded.
>
> As far as I could see, you didn't include the screen log of the
> "badblocks" run -- I don't know if that will actually show us anything
> useful, but certainly the exact details of the badblocks invocation
> (including command-line options) may be important to understanding why
> that isn't detecting the error.
>

# badblocks -svw /dev/sda <end> <start>

I'm pretty sure it bypasses any cache. I've been using it to stress-test
disks for many years, sometimes even running multiple copies of badblocks
across different parts of the disk to really test the system memory and CPU
and IO.

I discussed the idea with one of the developers of the Adaptec AHA driver
for Linux like fifteen years ago now, yikes.

  # DEV=/dev/sdb
>   # SECT=$(( 556876652 - 100 ))
>   # dd iflag=direct if=$DEV of=/dev/null count=200 skip=$SECT


I'll try this as well.

Thanks,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://listi.jpberlin.de/pipermail/smartmontools-support/attachments/20220628/7236575d/attachment.htm>


More information about the Smartmontools-support mailing list