Finnegander
Data Recovery Noob
Posts: 2
Joined: Tue May 07, 2019 10:04 pm

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Wed May 08, 2019 12:58 pm

I have run into an issue using this tutorial.

I am attempting make an exact clone of an old 512GB HDD to a new 1TB HDD. Working thru this guide, I ran the following command: “ sudo ddrescue -f -r3 /dev/sda /dev/sdb ‘/home/ubuntu/Desktop/Disk Repair Logs/log1.log’ “. Everything seemed to be working; it rescued all 500GB over 6 days with only 8kB lost, and then the program finished. However, now when I open the new hard drive it is entirely empty save for two files, “Recovery” and “System Volume Information”, totaling no more than 140MB.

Have I missed something? Where is all the rescued data? What are these two files? I am not looking to create an image, nor am I trying to copy just a partition. I wish to make a byte-for-byte clone of the original drive.

Any help is much appreciated.

User avatar
Jared
Forum Admin
Posts: 3917
Joined: Mon Jan 12, 2015 12:32 pm
Location: Providence, RI
Contact: Website Facebook Twitter Skype YouTube Google+

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Wed May 08, 2019 2:41 pm

Are you sure you had the /sda and /sdb correct and didn't clone the wrong direction?

Finnegander
Data Recovery Noob
Posts: 2
Joined: Tue May 07, 2019 10:04 pm

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Wed May 08, 2019 7:26 pm

Jared wrote:Are you sure you had the /sda and /sdb correct and didn't clone the wrong direction?


Yep. I triple checked before I started the whole process. The original drive still has all its files, and the new drive, which was previously empty, now has just those two files I mentioned. Those files appear to be text docs, but I can't really tell since they won't open.

Is there a way to verify whether the ddrescue is indeed writing to a specified drive? For example, could a person run the program, let it "rescue" a certain amount of data, then interrupt the program and check if the specified drive has been filled with the same amount?

User avatar
Jared
Forum Admin
Posts: 3917
Joined: Mon Jan 12, 2015 12:32 pm
Location: Providence, RI
Contact: Website Facebook Twitter Skype YouTube Google+

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Thu May 09, 2019 8:00 am

Ddrescue will generally stop if it has an issue reading or writing the data. So if it ran for six days I'm sure it was doing something. Perhaps try scanning that destination drive with some data recovery software such as R-Studio or Recovery Explorer and see what it finds. Maybe the MFT is just corrupted.

njmiano
Data Recovery Noob
Posts: 1
Joined: Sun Aug 04, 2019 6:35 pm

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Sun Aug 04, 2019 6:38 pm

Just registered to say thanks for the write up. I have used a variety of data recovery tools, but never ddrescue, and your guide explained what it was doing and what the options mean in a very clear and concise way. Thanks for making the internet a better place.

stevenstepp
Data Recovery Noob
Posts: 1
Joined: Thu Aug 08, 2019 7:35 am

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Thu Aug 08, 2019 8:22 am

Thank you for your time, its very helpful for me.

Rajat16
Data Recovery Noob
Posts: 2
Joined: Wed Aug 12, 2020 2:08 am

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Mon Aug 24, 2020 12:17 am

Thank you Jared.

User avatar
sean.fitzpatrick
Data Recovery Noob
Posts: 1
Joined: Fri Sep 11, 2020 7:39 pm

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Fri Sep 11, 2020 7:44 pm

Thank you, Jared!!!

maschine_brennt
Data Recovery Noob
Posts: 1
Joined: Tue Jun 08, 2021 2:52 pm

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Tue Jun 08, 2021 3:23 pm

Hi to all.

I should retrieve all data from a bootable hard disk with two windows partitions (WinXP era), where the bootable one (c:\) is no longer recognized.

So I would like to recovery (to image) the entire hard disk's content (including the two partitions and partition table): what would it be better to do?

Is this command line ok (first pass)?

Code: Select all

sudo ddrescue /dev/sda /dev/sdb/hdimage /media/transcend_usb/mapfile


Second pass:

Code: Select all

sudo ddrescue -r 3 /dev/sda /dev/sdb/hdimage /media/transcend_usb/mapfile



In case everything goes well, will R-Studio be able to recover partitions and files (from mounted hdimage)?


Btw, some people told me that safecopy tool is slightly better than ddrescue in data recovery: is it true?


Many thanks

User avatar
Jared
Forum Admin
Posts: 3917
Joined: Mon Jan 12, 2015 12:32 pm
Location: Providence, RI
Contact: Website Facebook Twitter Skype YouTube Google+

How to Clone a Hard Drive With Bad Sectors Using ddrescue

Wed Jun 09, 2021 8:10 am

If you are trying to image to a file your command would be more like

Code: Select all

sudo ddrescue /dev/sda /mnt/mountpoint/folder/image.bin [log path]...


You can't use /dev/sdb if you are imaging to a file, that would be if you wanted to image a whole disk to another disk entirely.

/dev is only used for block access. If you are creating a file you have to use the mount point.

maschine_brennt wrote:Source of the post Btw, some people told me that safecopy tool is slightly better than ddrescue in data recovery: is it true?


Haven't played with safecopy in quite a while. Honestly, right now hddsuperclone is probably the best at handling unstable drives. But, ddrescue is just fine.

Return to “Data Recovery Tutorials”

Who is online

Users browsing this forum: No registered users and 0 guests