[TriLUG] HDD may be failing

Joseph Mack NA3T via TriLUG trilug at trilug.org
Mon Aug 31 16:01:11 EDT 2015


On Mon, 31 Aug 2015, Bill Farrow via TriLUG wrote:

> Stop !

:-)

> If you have bad sectors or a dying drive, use ddrescue to clone the
> drive. You can clone directly to the new drive or to a image file on
> the new drive for later access. Disk size differences can be fixed
> later, most file systems can be resized offline if needed.
>
> http://www.gnu.org/software/ddrescue/

#hop over failed blocks on the first run
ddrescue -n $ddrescue_source $ddrescue_target $ddrescue_logfile

#do failed blocks only 
ddrescue -d -r3 $ddrescue_source $ddrescue_target $ddrescue_logfile

make sure you have a logfile.

you do have a disk ready that you've run badblocks on? If not get two disks. 
ddrescue to one and run badblocks on the other. Then when badblocks is done copy 
your files to it and use that disk. Then run badblocks on the othe disk.

About 1:10 disks fails badblocks

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) austintek (dot) com - azimuthal equidistant
map generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


More information about the TriLUG mailing list