You are not logged in.

#1 2010-11-10 16:28:35

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

DD'ed the wrong device - External hdd partition table obliterated

The title says it all. This is actually my first, so I popped my own cherry.

I managed to dd the first 87 MB of my hdd before realizing what i did and stopping it.
I'm running testdisk on it right now, but in case that fails, anything else I can try?


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#2 2010-11-10 18:08:20

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

Re: DD'ed the wrong device - External hdd partition table obliterated

gpart was mentioned in a similar case, but OP opted for a clean install: https://bbs.archlinux.org/viewtopic.php?id=108101

Last edited by karol (2010-11-10 18:10:13)

Offline

#3 2010-11-10 20:33:35

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: DD'ed the wrong device - External hdd partition table obliterated

well, the first 87MB are likely gone.  you could use dd_rescue to move everything that's left to an image, reformat, then put it back.

sorry man...

Offline

#4 2010-11-10 21:07:11

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: DD'ed the wrong device - External hdd partition table obliterated

If it's only the first 87MB that's not a problem, but so far testdisk isn't giving results...

dd_rescue sounds interesting...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#5 2010-11-10 21:09:51

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: DD'ed the wrong device - External hdd partition table obliterated

moljac024 wrote:

If it's only the first 87MB that's not a problem, but so far testdisk isn't giving results...

dd_rescue sounds interesting...

I remember deleting my partition table, it wasn't the first 87 MB or anything, but I got my /proc/partitions and used that with parted's rescue command.

Offline

#6 2010-11-11 01:20:09

dunz0r
Member
From: Sweden
Registered: 2009-03-30
Posts: 258
Website

Re: DD'ed the wrong device - External hdd partition table obliterated

I once tried to install Windows 2000 Professional on a partition on one of my SATA-drives, the installation completely nuked the partition table for some reason.

The solution: I just created an identical partition setup on the drive and there was much rejoicing.


RTFM or GTFO
hax0r.se

Offline

#7 2010-11-11 01:33:22

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

Re: DD'ed the wrong device - External hdd partition table obliterated

dunz0r wrote:

I once tried to install Windows 2000 Professional on a partition on one of my SATA-drives, the installation completely nuked the partition table for some reason.

The solution: I just created an identical partition setup on the drive and there was much rejoicing.

If the underlying partitions are OK, testdisk should be able recreate a partition table for them just fine.

Offline

Board footer

Powered by FluxBB