Check that the following tools are installed on your system:
A recent bash version (any 2.x.x should be good -- must support arrays and arithmetic operations)
e2fsck (tested with 1.19)
mke2fs (tested with 1.19)
cut, tail, grep, head, sed, true and other standard unix utilities.
Check on the manual and with --help that both e2fsck and mke2fs accept the -n parameter and that it means
``don't do what you are told to, just display what you would do''. WARNING!! If you are not sure that -n is accepted by your e2fs tools and that it has the intended meaning don't
use the provided script! Do not even try to run ``mke2fs -n'' on any partition just to see if ``-n'' is accepted. YOU MAY
DAMAGE ALL YOUR DATA!! Read the manual, and if still unsure, do not use this script!
A good idea would be to make a backup copy of the partition you have damaged on the hard drive and then run
e2sbf on that file with something like: