Page 1 of 1

Recover files from hard disk formatted with dd command

Posted: 29 Aug 2013, 17:45
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!

Re: Recover files from hard disk formatted with dd command

Posted: 06 Sep 2013, 07:24
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.