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!
Recover files from hard disk formatted with dd command
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
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
- cgrenier
- Site Admin
- Posts: 5439
- Joined: 18 Feb 2012, 15:08
- Location: Le Perreux Sur Marne, France
- Contact:
Re: Recover files from hard disk formatted with dd command
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.