
# -retrim (-M) mark blocks as non trimmed # -synchronous (-D) useful when forcing the drive to remap its bad sectors
#Systemrescuecd make an image full
# -direct (-d) direct, only for use in full drives (direct access)

On complex cases the following arguments have proven to be effective and a life-saver: # -reverse (-R) recursive, try to capture from back to front

# -K (-skip-size), initial jump size for next good sector This is generally my first choice to try and get data without stressing the disk. # -a (-min-read-rate), if read rate is bellow limit go to next sector # -n (-no-scrape), jump sector on first faill ddrescue -n -a 30000 -K 100MiB /dev/devX /mnt/goodDrive/failing.img /mnt/goodDrive/failing.log There are some other options I generally use that may eventually help someone. # This would try to capture as much data as fast as possibleĭdrescue /dev/devX /mnt/goodDrive/failing.img /mnt/goodDrive/failing.log On the following examples devX is the drive that needs saving, and you've mounted /mnt/goodDrive/ on another physical device.
#Systemrescuecd make an image download
You may also use it if you are a Windows user, just download Cygwin and take into consideration that Disk1 = /dev/sda and Cygwin expects you to use /dev/sdX notation. When the hard-drive is failing you definitely don't want it searching and seeking all over the platters. They range from the PCB that fried – very common on external drives with soldered USB, to SATA disks that were broken due to a fist tantrum – 2021 pandemic was prolific on those! - ddrescue Iptables -A OUTPUT -p tcp -dport 22 -j ACCEPTīeing the "guy that knows computers" I get around 20 HDDs per year that need saving. Iptables -A INPUT -p tcp -dport 22 -j ACCEPT On recent editions of SystemRescueCD iptables is started by default, so you have to stop it (or configure it to accept connections on port 22), before connecting to the sshd server.

From there you can download/upload to the HDDs on that machine bypassing the Operative System. It’s very easy to spin up SystemRescueCD on any machine, and you’ll get a full sshd server to connect to. This is the one that brought me to this post. The usage I give it the most are:īy the very talented Jose Mizrahi Data Transfer SystemRescueCD is an amazing tool that packs a myriad of admin stuff.
