Help recovering deleted files!
Hi all. I am hoping you can help me recover these deleted files.
I am an intermediate Linux user and was using dd to copy an .iso to a USB drive but somehow copied it to sdb instead of sdc and blew away my data storage drive - both partitions.
The more detailed story:
I have a HP notebook with two hard drives - one (sda) is multi-booted with a bunch of distros on it in separate partitions, and the other hard drive (sdb) has two partitions and all of my data. Now Gparted recognizes most of my sdb as unallocated space and the .iso file shows in /media/Ubuntu 13.04 amd64 which is actually on my second hard drive (sdb1) but mounted at /media. Fortunately I am anal about backing up my data and can get most of it back, but I would really prefer to recover this info rather than rebuild it from scratch.
I wrote the following command "sudo dd if=/media/Data_Storage/Tod\ and\ Karen/Downloads/ubuntu-13.04-desktop-amd64.iso of=/dev/sdc bs=8M" but somehow it recognized sdb (with two partitions) as sdc and placed the image on my second drive and deleted the partitions and all the contents. df -h currently shows the USB drive mounted as sdc2, so maybe that is where I went wrong...
Can anyone help point me in the right direction to recover my drive and/or let me know how I messed up the command so I don't do this again?