Table of Contents

Data rescue / recovery

Getting files and other data back which were deleted. The opposite of wiping files.

Tools

SMART

HDDs often show pending sectors before they fail:

smartctl -x /dev/sdc | grep Sector

NTFS

rsync -a --info=progress2 /path/to/mounted/ntfs/partition /path/to/target
ntfsclone --rescue --save-image --output - /dev/sdXX1 | xz -1 -cv > output-image.xz

further information


[1] http://lwn.net/Articles/430000/: "ddrescue wins (in my book) because it is an efficient self-contained program written in C++ (not a shell script kludge), produces much cleaner output on the console/terminal, and (most importantly) handles unreadable blocks gracefully and intelligently."