You are not logged in.

#1 2014-11-15 14:40:51

knoker
Member
Registered: 2014-11-15
Posts: 2

dd to the wrong disk

Hello,
first of all thank you for any help you might give me...
So this is the situation.
I was DDing a 1.2Gig image to a pen, but I ended up selecting a 1TB disk containing about 800Gb of media and some work.
Is it possible to recover the data that was not in the 1.2Gig blast zone? If so how?

[EDIT]
The disk was EXT4
the command was a dd bs=4M

Thanks in advance...

Best Regards,
KnoKer

Last edited by jasonwryan (2014-11-15 18:03:08)

Offline

#2 2014-11-15 17:05:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: dd to the wrong disk

Offline

#3 2014-11-15 18:02:51

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dd to the wrong disk

Please read the Forum Etiquette, notably How to Post: https://wiki.archlinux.org/index.php/Fo … ow_to_Post


Not a GNU/Linux discussion, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-11-15 18:35:35

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,612
Website

Re: dd to the wrong disk

Not too much you can do... dd = destroy disk as they say.  Always triple check the of target.  Hope you have a good backup.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2014-11-15 19:31:27

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: dd to the wrong disk

I would particularly check out testdisk and photorec from the link Karol gave you.  Testdisk would be easiest but almost surely would you be able to get the data not overwritten with photorec.  It's just not a fun process.  So that is the good news - you ought to be able to get anything which is very important still as long as it wasn't in the 1.2G area which was overwritten.

Last edited by davidm (2014-11-15 19:33:21)

Offline

#6 2014-11-15 20:45:00

ids1024
Member
From: California
Registered: 2013-08-16
Posts: 243
Website

Re: dd to the wrong disk

The aforementioned testdisk should help to recover what has not been erased.

To prevent this kind of thing from happening, you probably should make regular backups, if you don't already. Rsync should help with that.


"Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it."—Linus Torvalds
s/ftp/git/

https://iandouglasscott.com | https://github.org/ids1024 | https://keybase.io/ids1024

Offline

#7 2014-11-16 16:52:59

knoker
Member
Registered: 2014-11-15
Posts: 2

Re: dd to the wrong disk

Hello,
Thank you all for the advise, but Yesterday wen I got home the disk was already formatted and with 342Gigs in use.
So besides being pissed there is nothing worth doing now...
Tho I'll take in consideration your advice in future fuckups, and try to be more careful.

Offline

Board footer

Powered by FluxBB