Accidental format while trying to backup macOS

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
Usman
Posts: 4
Joined: 24 Aug 2018, 11:45

Accidental format while trying to backup macOS

#1 Post by Usman »

While trying to backup macOS, I accidentally clicked on Yes when asked if I want to format my external HDD :x .

I had important data in the HDD and I would like to recover it.

I have tried recovering the partition using TestDisk but I'm unable to actually understand how to use it.

I have also tried to read the documents on Wiki, but I'm still clueless.

Any help or advice is very much appreciated. Many thanks!

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

Re: Accidental format while trying to backup macOS

#2 Post by cgrenier »

You can also read https://www.cgsecurity.org/testdisk.pdf
If you are really unable to understand how to use testdisk or if it doesn't work, you can try photorec instead but you will need enough free space on another disk to store the recovered data.

Usman
Posts: 4
Joined: 24 Aug 2018, 11:45

Re: Accidental format while trying to backup macOS

#3 Post by Usman »

I have read the PDF and tried to recover partition using TestDisk, but in the end I end up with a single partition of 10MB.
Image
Image
Image

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

Re: Accidental format while trying to backup macOS

#4 Post by cgrenier »

How many partitions do you had on this disk, what filesystem (FAT32, exfat, NTFS, HFS+...) were each of them using ?

Usman
Posts: 4
Joined: 24 Aug 2018, 11:45

Re: Accidental format while trying to backup macOS

#5 Post by Usman »

From what I can remember I only had one exfat partition.

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

Re: Accidental format while trying to backup macOS

#6 Post by cgrenier »

Unfortunately there is no trace of an exFAT partition.
Run PhotoRec, enable the Expert mode in the Options menu, start a Search, use a blocksize of 512 bytes, use the default values otherwise.
It should recover your data without the original filenames.

Usman
Posts: 4
Joined: 24 Aug 2018, 11:45

Re: Accidental format while trying to backup macOS

#7 Post by Usman »

cgrenier wrote: 31 Aug 2018, 06:11 I am trying that now
I am trying that now.

But after starting a Search, I don't see the option to choose a blocksize.

However I do get asked Try to unformat a FAT filesystem as per the screenshots below.

Image
Image

What option should I choose?

Locked