Memo of ddrescue commands (Ubuntu)
# install the tool
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install gddrescue
# get the *physical* sector size
sudo fdisk -l
# first pass without deep analysis to not stress the storage medium
sudo ddrescue -b{{size}} [-f] -n /source /destination logfile.log
# second pass with deeper search and retries
sudo ddrescue -b{{size}} -d -r3 /source /destination logfile.log
# file system check on the recovered data
sudo fsck -f /destination