![]() ![]() For an interface, you can use either a shell-based console or the lightweight Xfce graphical desktop. This Linux distribution also comes with many other handy programs such as Midnight Commander, one of my favorite file managers, and a variety of editors and network tools. It's a really handy trick and I've often used it to save files to USB drives. It works by saving file-system to a compressed archive file and then safely restoring it to a new device. With FSArchiver, I'm able to clone file systems from one device to another, even if the partition I'm moving it to is smaller than the original or if it uses an entirely different file system. Data Carvers, besides not knowing where the file originally was, have an extra problem, fragmentation! If the file is not sequential, there is absolutely no way for TestDisk to know where the missing piece is.In particular, I've found FSArchiver (Filesystem Archiver for Linux) to be very handy for moving data from a nearly dead disk to a new drive. If it finds a known header it will download the file. PhotoRec is a carver, which means it will go over the whole disk trying to find headers of known files. PhotoRec, a companion to TestDisk, is downloaded in the same file. The steps I would generally take:Ī) make an image of the bad disk using ddrescueī) if that image is mountable and everything looks fine, problem solvedĬ) if the image has no partition, make a copy of the imageĭ) use testdisk to try and recover the lost partitions # this would make testdisk work on your image fileĬ:\>testdisk c:\my_image_backup.img I always suggest making a copy of the image so that if testdisk doesn't immediately work you can retry - photoRec It's a brilliant tool to try and restore partitions, if not using it on SystemRescueCD you may use it in both Linux and Windows. TestDisk from CGSecurity is one of the "must haves" of data recovery. # -c 4Ki read in blocks of 4K (massive improvement on some HDDs) These come on secondary passes when the recovery media is troublesome. # if reads are very very slow you can try and tune the cluster size # -retrim (-M) mark blocks as non trimmed ![]() # -synchronous (-D) useful when forcing the drive to remap its bad sectors # -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. 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |