Recover files from hard disk formatted with dd command

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
vigosan
Posts: 1
Joined: 29 Aug 2013, 17:37

Recover files from hard disk formatted with dd command

#1 Post by vigosan »

Hello,
I ran the next command:

gunzip -c someimage.img.gz | sudo dd of=/dev/rdisk1 bs=1m

deleting all the content/partition of disk1 (the good destination should have been rdisk2). Could be possible to recover the lost partition/files of disk1? I have a lots of photos in it.

Thanks!

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Recover files from hard disk formatted with dd command

#2 Post by cgrenier »

If you had several partitions on this disk, you can try TestDisk to recover them (recovering the first will probably be impossible). You can also try PhotoRec to recover your data.

Locked