Checking and Fixing Disk Errors and Badblocks
Written by Pavs on January 23rd,
2008
Linuxpoison wrote a howto on fixing diskerror and badblocks. The process includes identifying the badblocks and saving them on a file and then feeding the file to fsck to check and fix any issues.
To identify bad block: badblocks /dev/hda1 > test
Thans use fsck to fix issues: fsck -t ext3 -l test /dev/hda1


Thanks much for posting my article on your site, I am BIG fan of your site.
Thanks,
Nikesh
Thanks for making me aware of this - I’ve been avoiding the issue until now!
Excellent blog :D