New Tool: Map bad blocks g_vfs or smartmon LBA_of_first_error to files
Minas Dasygenis
mdasyg at ieee.org
Tue Jan 7 12:02:47 UTC 2020
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
More information about the freebsd-questions
mailing list