PDA

View Full Version : Problem with "dd"


edszr
2007-11-03, 01:40 PM CDT
Hi all,

First, yes.....I've beat myself completely senseless because of my stupidity this morning....I was attempting to use the "dd" command to clone my hard drive onto a new hard drive. I should have typed dd if=/dev/sda of=/dev/sdd, but I typed dd if=/dev/sda of=/dev/sdb by mistake. I realized immediately what I'd done, and broke the process. But i think it was too late. My sdb drive had been a single ntfs partition before my blunder, but here's what partitons are on there now:

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 12161 97578810 8e Linux LVM

My question is...is there anyway I can try to salvage stuff that was on this HD? Thanks in advance for your help...

Ed

northcornice
2007-11-03, 04:56 PM CDT
I'm not promising anything, but you can try TestDisk (http://www.cgsecurity.org/) . I have had good results with this in regards to deleted partitions from Thumb drives.

Try the photorec program, it tries to recover just about any filetype.