The sys admin's daily grind: ddrescue and DDRescue-GUI

Recovery Needed

Article from Issue 182/2016
Author(s):

Sometimes even sys admin Charly doesn't have a backup at hand; or, maybe it's ruined because the removed disk had corrupt data. Here, he offers some advice on how to handle the situation.

Krrr, krrr …! At least things are clear-cut when a hard disk gives up the ghost: You toss the offending disk, get a new one, and put the backup on it. However, those undead data media – that trick people into continuing working on them with no idea of the potential impact – are a real pain.

I recently determined that an SDHC card in my camera saves one out of 20 images (on average) as a colorful mess of pixels. I do know that memory cards give up the ghost sooner or later. However, I didn't realize that my camera could save to two cards simultaneously – a feature I stupidly didn't use. But, I'm all the wiser now.

What if really important data is stored on a haywire device that you just can't get rid of? This is where ddrescue [1] comes in. The tool is already quite ancient, but its developers look after it untiringly and adapt it to new types of data media. (It should not be confused with the even older dd_rescue.) Ddrescue is officially named GNU ddrescue; the packages on Debian and derivatives are therefore dubbed gddrescue.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • The sys admin's daily grind: katoolin 3

    Charly uses the katoolin 3 installation script for a targeted approach to installing his favorite Kali Linux tools on the Ubuntu desktop.

  • Charly's Column – Dnstop

    In last month's issue, Charly sent the lean pdnsd DNS cache down the catwalk. To see whether pdnsd really does the work expected of it, he now puts dnstop through infinite rounds in the name of names.

  • Data Rescue

    Armed with just standard Linux tools, users can recover files, resurrect partitions, and rescue damaged media.

  • Charly's Column – Searx

    It goes against the economic rationale to assume that commercial search engines have the best interests of users at heart when it comes to data protection and use. Sys admin Charly has found an alternative.

  • Charly's Column – Prettyping and Asciiflow

    Columnist Charly is delighted that people still program useful tools for the terminal. Here, he looks at one tool that transforms boring ping data into colorful statistics and another that publishes a construction set for ASCII graphics on the network.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News