lost data with sudo dd if=pcbsd...img of=/dev/sdb

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

lost data with sudo dd if=pcbsd...img of=/dev/sdb

Postby LuxPro on Thu Apr 25, 2013 1:28 am

Hi,

I did a

Code: Select all
$sudo dd if=pcbsd...img of=/dev/sdb


(instead of /dev/sdc)
Now the external hdd has become zfs but I terminated the command with ^C as soon as I realised the error.

The HDD won´t be recognised in Linux.
I ran testdisk on it but it won´t get anything.

Here is the output of sudo dd ...

Code: Select all
sudo dd if=PCBSD9.1-RELEASE-04-12-2013-x64-USB-live.img of=/dev/sdb
[sudo] password for kavish:
^C202825+0 records in
202825+0 records out
103846400 bytes (104 MB) copied, 18.1321 s, 5.7 MB/s


Is it possible to recover the data?
Thanks.
LuxPro
Level 1
Level 1
 
Posts: 2
Joined: Thu Apr 25, 2013 12:20 am

Linux Mint is funded by ads and donations.
 

Re: lost data with sudo dd if=pcbsd...img of=/dev/sdb

Postby grimdestripador on Thu Apr 25, 2013 1:34 am

Although I don't know the specific instructions to help you with. I can say that although you harddrive lost data, not all data is lost. There is a chance the old harddrive partition structure can still be 'recovered'. What this means is that you harddrive will act as if the files at the 'beginning of the harddrive' were neverwritten over, but really was; which can be used to recover 'some' data. Since in your case, I don't think much is lost, since only 5Megs were transfered before being cancled. On a cautionary note, tell us is /dev/sdb a linux boot disk? You might need a live cd.

Can some linux expert tell how to.
1) restore a linux partition table from 'hidden' backup nodes
User avatar
grimdestripador
Level 6
Level 6
 
Posts: 1069
Joined: Fri Feb 16, 2007 2:26 am

Re: lost data with sudo dd if=pcbsd...img of=/dev/sdb

Postby LuxPro on Thu Apr 25, 2013 3:43 am

/dev/sdb had three partitions; certainly two of them were primary ext4; the other one might have been primary (or extended) but it was ext4.

Also please note it was not 5M that was overwritten but 104MB.

Thanks.
LuxPro
Level 1
Level 1
 
Posts: 2
Joined: Thu Apr 25, 2013 12:20 am

Re: lost data with sudo dd if=pcbsd...img of=/dev/sdb

Postby catweazel on Thu Apr 25, 2013 5:01 am

Mint Testing Team & Mint Donor #3606
KDE 4.12.0, custom preemptive kernel 3.12.5,
Intel i7 4770K @ 4.7GHz, 16GB 2666MHz XMP,
4 Samsung 840 PRO 512GB SSDs in RAID0,
6TB HW RAID10, dual 24" Acer X243H,
Gigabyte nVidia GTX 680 Super Overclock
User avatar
catweazel
Level 7
Level 7
 
Posts: 1656
Joined: Fri Oct 12, 2012 9:44 pm


Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 22 guests