If the source drive was healthy, you could do this: Clone only space in use from hard disk. However there is no easy way to tell in advance if data can be compressed/sparsified enough. But even if the target disk is not bigger, a filesystem with compression and/or the -S/ -sparse option of ddrescue may be enough to squeeze the image into the filesystem. This will work well if the target disk is bigger than the source one, so even after the filesystem takes some space for its structures there will be enough room for the image (of the size of the source disk) and the mapfile. Let the mapfile be another regular file in the same filesystem (sane idea: in the same directory). Where do i write the log file (map file) Can I also write that to the new target disk?Ĭreate a filesystem on the target disk, mount it and tell ddrescue to write to a regular file in the filesystem, not to the device ( /dev/sdc in your commands). Do I have to check if the disk sector sizes are the same and pass any parameters to ddrescue if they're not?. Do I have to ensure the drives are not mounted before running ddrescue?.If I had to choose, is it better to have the new drive in the SATA port and the failing drive in the enclosure or vice versa?.I read it's not a good idea to connect the hard drive to a USB enclosure? What alternative do I have though if I only have one SATA connection?.Where do I write the log file (map file) if the Ubuntu live USB does not have persistent storage and the other disks are unmounted? Can I also write that to the new target disk? How big is the log file typically?.run ddrescue with a first pass to quickly recover the easy sectors and then run a second passĭdrescue -f -n /dev/sdb /dev/sdc rescue.logĭdrescue -d -f -r3 /dev/sdb /dev/sdc rescue.log.connect the old failing drive via USB enclosure.connect the new target drive via SATA on my computer.boot via Ubuntu live USB and use ddrescue. I'm about to start a recovery with ddrescue and was wondering if I'm on the right path with these steps.
0 Comments
Leave a Reply. |