Burned a image to hdd instead of usb

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
Elmo
Posts: 1
Joined: 18 Feb 2019, 18:15

Burned a image to hdd instead of usb

#1 Post by Elmo »

"dd bs=4M if=path/to/linux.iso of=/dev/sdx" is the command that I have now accidentally used on two hard drives. Images that I have used were about 250mb both. Running testdisk on hard drives show partitions even from way back 2013. How would I go on from here? Is there a way to safe any data from them?

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

Re: Burned a image to hdd instead of usb

#2 Post by cgrenier »

Use 'p' to list the files of the selected partition.
You have to switch from D(eleted) to *(bootable), P(rimary) or L(ogical) all partitions you want to keep/recover.

Locked