PDA

View Full Version : how to undo 'dd' command



mduduzi
02-20-2006, 08:33 PM
Hi,

Could u please help me. I just used the 'dd' command and it mounted my usb files onto my main harddrive partition.
Command used "dd if=/dev/sda1 of=/dev/hdc5" and this even changed my 80 gig harddrive into a 256Mb harddrive. I have been trying to undo the damage because I need the information on that harddrive. Could u please help as soon as possible.

Thank U
mduduzi

Dave_Bechtel
02-21-2006, 02:15 AM
Err, sorry to have to break the bad news here - but you're screwed. I did the same thing a couple of years ago, and depending on HOW BAD you NEED the data on that HD partition, you should:

a) **Immediately** shutdown and take the HD directly to a data-recovery specialist, do not pass Go, pay $$$ -- and there probably WILL BE some data loss regardless

b) Reformat partition, Restore from backup ( YOU DO HAVE GOOD BACKUPS, RIIGHT?? )

c) Give it up as a bad job, reformat partition, reinstall if necessary. Resolve to be more careful in future.


Hi,

Could u please help me. I just used the 'dd' command and it mounted my usb files onto my main harddrive partition.
Command used "dd if=/dev/sda1 of=/dev/hdc5" and this even changed my 80 gig harddrive into a 256Mb harddrive. I have been trying to undo the damage because I need the information on that harddrive. Could u please help as soon as possible.

Thank U
mduduzi

OErjan
02-21-2006, 05:54 PM
OOOWWWWHH, that was bad, you wrote that disk with a bitcopy of the USB pan. not good, not good at all.
sorry to say so but that partition is more or less gone if you do not like hexedit, and few weeks or so of work, or can pay $$$ for recovery, i am praying you have a great backup..