02 January
2021

[09 November 2009] HDD investigation II: badblock

transferred

[preparation]
cd /tmp/
df
dumpe2fs -b /dev/hda2
dumpe2fs -b /dev/hda2 >bad.txt

[check]
dumpe2fs /dev/hda2 |grep "Block size"
badblocks -i bad.txt -o badblock.txt -b 4096 -vs /dev/hda2

[register]
fsck -B 4096 -l badblock.txt /dev/hda2

[list / review]
dumpe2fs -b /dev/hda2


Posted by unchor at 11:10
<< [31 August 2009] Unknown Device Identifier | Main |