Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2020 14:02:33 +0200
From:      Minas Dasygenis <mdasyg@ieee.org>
To:        freebsd-questions@freebsd.org
Subject:   New Tool: Map bad blocks g_vfs or smartmon LBA_of_first_error to files
Message-ID:  <CAJ2qtT5A=oyNm852syH1ETWBadEm5k0Zzj30Y4w_gvKcX7d-ng@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Dear all,

I am releasing a tool that I have created for my FreeBSD servers, that
can check /var/log/messages and smartctl output and locate
automatically the file that carries the bad sector (if there is).

Many times I needed a tool like this when I was a novice FreeBSD user,
and I was not able to find it. Only some expert tips on using a
plethora of tools, but a complete example was missing. So I decided to
contribute to FreeBSD.

It is written in pure sh. Feel free to send me patches to post them.
It has been tested in some of the FreeBSD 12 servers that I
administer.

It is located at the link

http://arch.ece.uowm.gr/mdasyg/misc/hard_disk_locate_bad_sector_from_vfs_smartctl.sh

in my page

http://arch.ece.uowm.gr/mdasyg/mdmiscellaneous.php


---
Dr. Minas Dasygenis
Electrical and Computer Engineer



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ2qtT5A=oyNm852syH1ETWBadEm5k0Zzj30Y4w_gvKcX7d-ng>