My opinion... If you get more than 10 errors then buy a new HDD. It'll eventually get worse and worse, specially after defragging or during major file operations!
1- Get a copy of Knoppix and burn on a CD using your fav. software or use the free "ImgBurn", which is great.
2- Get a new (empty) hard disk with the same capacity or bigger and connect it to the motherboard along with the damaged one (if its IDE then jumper it to slave).
Start the computer with knoppix CD.
Notice the device names of both the new HDD and the damaged one, you'll need them. To understand the device names in linux read this:
https://help.ubuntu.com/8.04/install...ice-names.html
If you really need to save tons of important data and it keeps failing when you're trying to back up stuff into a USB Flash or External HDD, then type these commands in the console:
#Get IP by DHCP:
sudo pump -i eth0
# download ddrescue
wget http://download.savannah.gnu.org/releases/ddrescue/ddrescue-1.8.tar.bz2
# extract the source code
tar xjf ddrescue-1.8.tar.bz2
# compile ddrescue
cd ddrescue-1.8
./configure && make
# first, grab most of the error-free areas in a hurry. (old_disk and new_disk must be the correct device names of the hard disks)
./ddrescue -n /dev/old_disk /dev/new_disk rescued.log
# Optionally, try to recover deeply, as much of the dicy areas as possible:
./ddrescue -r 1 /dev/old_disk /dev/new_disk rescued.log
This way you can recover all the readable stuff... This might take several hours or even days on a heavily damaged hard disk! But its one of the best ways to get stuff out of it. So let it do the work during the night.
Last edited by GenkiSudo; Nov 12, 2009 at 09:18 PM.