![]() (then copy backwards down to the troubled sector)Įxample 4: While transferring data from /dev/sda to /dev/sdb, /dev/sdb fails, and you must transfer data to a third drive, /dev/sdc.ĭdrescue -f -n /dev/sda /dev/sdb mapfile1 # /dev/sdb fails hereĭdrescue -f -m mapfile1 /dev/sdb /dev/sdc mapfile2ĭdrescue -f -n /dev/sda /dev/sdc mapfile2ĭdrescue -d -f -r3 /dev/sda /dev/sdc mapfile2Įxample 5: While rescuing a partition in /dev/sda1 to the file hdimage, /dev/sda1 ceases to respond and starts responding read errors, allowing ddrescue to record the rest of the partition as unscraped.ĭdrescue -n /dev/sda1 hdimage mapfile # /dev/sda1 fails hereĭdrescue -n -A -i -O /dev/sda1 hdimage mapfile (restart copy at a safe distance from the troubled sector)ĭdrescue -f -i 12350000 /dev/sda /dev/sdb mapfile Mount -t ext2 -o ro /dev/sdb2 /mnt(read rescued files from /mnt)Įxample 3: While attempting to rescue the entire drive /dev/sda to /dev/sdb, /dev/sda freezes at position 12345678.ĭdrescue -f /dev/sda /dev/sdb mapfile # /dev/sda freezes here You must first use fdisk to create the sdb2 partition with the proper type and size.ĭdrescue -f -n /dev/sda2 /dev/sdb2 mapfileĭdrescue -d -f -r3 /dev/sda2 /dev/sdb2 mapfile You are not required to partition /dev/sdb beforehand, but if the partition table on /dev/sda is damaged, you must recreate it on /dev/sdb.ĭdrescue -f -r3 /dev/sda /dev/sdb mapfileĮxample 2: Move an ext2 partition from /dev/sda2 to /dev/sdb2. Not with ddrescue, at any rate.Įxample 1: Completely automatic rescue of an entire disc with two ext2 partitions in /dev/sda to /dev/sdb. And if the damaged drive is not listed in /dev, it cannot be recovered. If the partition table is damaged, save the whole disc before repairing the partition table and the partitions on the copy. If you are attempting to recover a whole partition, repair the copy first with e2fsck or another tool appropriate for the type of partition you are attempting to recover, then mount the repaired copy somewhere and attempt to recover the files within it. If something goes wrong, you still have the master to fall back on. If your data is important, use the first copy as a master for a second copy and attempt to repair the second copy. It would be best if you used Ddrescue to make a copy of the failing drive and then attempt to repair the copy. Be cautious because every time a damaged drive powers up and can output data. Thus, you should save data from a drive immediately as you see the first error. If you are unfamiliar with dd, you should first search the internet for some introductory material on dd and GNU Ddrescue.Īs time passes, a failing drive develops more and more errors. This tutorial is intended for people already familiar with the dd command.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |