You are not logged in.

#1 2010-05-30 20:10:27

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Recover partition after overwritten with dd

Hello guys,

accidentally I've overwritten my external hard drive with the latest archlinux image. *damn*

The partition sdb1 on it was decrypted and mounted when I used dd-command to write directly on /dev/sdb.

Is there any chance to recover the files? My disk is 250GB big, so perhaps dd wrotes the ~160MB only to a part of the drive and the rest can be recovered?

Best regards

Offline

#2 2010-05-30 20:12:15

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

Re: Recover partition after overwritten with dd

Sorry, but I think you're hosed.  Hope you have a recent backup.  From wikipedia: "It is jokingly said to stand for "disk destroyer", "data destroyer", or "delete data", since, being used for low-level operations on hard disks, a small mistake, such as reversing the if and of parameters, can possibly result in the loss of all or some data on a disk."

Last edited by graysky (2010-05-30 20:14:50)


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

Offline

#3 2010-05-31 02:00:24

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: Recover partition after overwritten with dd

Searching the forum for "recover" returns a few results, including http://bbs.archlinux.org/viewtopic.php?id=97356 which seems to be at least somewhat interesting...

Offline

#4 2010-05-31 14:32:30

akephalos
Member
From: Romania
Registered: 2009-04-22
Posts: 114

Re: Recover partition after overwritten with dd

I think testdisk would be the way to go, but considering that your external partition was encrypted (with cryptsetup, right?) I think the data is unrecoverable...

Offline

#5 2010-05-31 19:58:59

1LordAnubis
Member
Registered: 2008-10-10
Posts: 253
Website

Re: Recover partition after overwritten with dd

Well, you could always try something like foremost; http://foremost.sourceforge.net/


Any society that would give up a little liberty to gain a little security will deserve neither and lose both.
-Benjamin Franklin
The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man.
-George Bernard Shaw

Offline

Board footer

Powered by FluxBB