dd overwrite partition

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
xyjfroale
Posts: 1
Joined: 12 May 2020, 19:11

dd overwrite partition

#1 Post by xyjfroale »

Hello,


1)
i have had an external hard drive 2TB, partition of Apple OSx

Hard drive was / is NOT encrypted


While using some software for installing data on the USB Stick,
i wrongly choosen hard drive and 'dd' process started.

I canceled it after couple seconds.


2)
Current status of the drive is like this

Code: Select all

Code: Select all

Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: M3 Portable     
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x814555ba

Device     Boot Start      End  Sectors  Size Id Type
/dev/sda1        8192    92159    83968   41M  c W95 FAT32 (LBA)
/dev/sda2       92160 15126527 15034368  7.2G 83 Linux


3)
I've got other 2TB drive,
and made 'dd' copy of the overwritten one, to work saftely.


4)
current software i have is
TestDisk 7.0
PhotoRec 7.0



5) What should i do,
what i can count on?


Thank you

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: dd overwrite partition

#2 Post by cgrenier »

Using TestDisk, you can try to search for an HFS+/HFSX/HFSJ partition.
If it failed, you can use PhotoRec on [Whole Disk] to try to recover your lost data.

Locked