Find and relocate unused bad sectors in ext filesystem
Implement the algorithm described in STANDARDS section for the ext[2-4] partitions only.
The I<smarmontools> can report problematic bad sectors in LBA addressing format. This program relocates bad LBA sector provided it is unused.
However, if the sector contains data, there is nothing that can be done. This program is no "spinrite" and it is not cabable of reading or restoring damaged data.
Project homepage (bugs and source) is at <http://freecode.com/projects/badsector>
Debian packages mentioned in parenthesis.
- Linux OS
- Bash (bash)
- Standard GNU command line programs (coreutils)
- mktemp (coreutils)
- dd (coreutils)
- fdisk (util-linux)
- debugfs (e2fsprogs)
- expect (expect, which also requires package tcl8.5)
- smartctl (smartmontools)
Bad block HOWTO for smartmontools by Bruce Allen http://smartmontools.sourceforge.net/BadBlockHowTo.txt
Copyright (C) 2007-2012 Jari Aalto <firstname.lastname@example.org>
This project is free; you can redistribute and/or modify it under the terms of GNU General Public license either version 2 of the License, or (at your option) any later version.