Accidentally initialized 16g SD card

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
RLee
Posts: 3
Joined: 08 May 2017, 07:59

Accidentally initialized 16g SD card

#1 Post by RLee »

I had a 16G SD card in the card reader slot and an external USB HD connected to the USB port. The USB HD triggered a drive initialization (i.e. the drive had to be initialized by Windows before it can be partitioned). Somehow, when I told it to go ahead, it not only initialized the USB HD but also initialized the SD card, which was loaded with data. Now the SD's partition and file system are not recognized, not even by testdisk.exe. But I suspect the data is still there(?) I have another SD card that's identical to the bad one. When I ran testdisk on the good SD, I could pull out the partition information and saved it in the backup.log. Is it possible to load this info from the backup.log then write to the bad SD to restore its partition and file system, thus, regain access to all my data files? Please help!

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

Re: Accidentally initialized 16g SD card

#2 Post by cgrenier »

Try PhotoRec, enable the expert mode in Options, start a recovery and choose a blocksize of 512 bytes.
Does it recover your data ?

RLee
Posts: 3
Joined: 08 May 2017, 07:59

Re: Accidentally initialized 16g SD card

#3 Post by RLee »

I tried PhotoRec on the bad SD. It came up with the following info:

P UNKNOWN 0 0 1 1887 62 31 30318592

When I enabled Expert Mode and performed a Search, I chose the FAT/NTFS... (not ext2/ext3). It searched way beyond the size of the drive (30318592) to something over 50000000 and still going; I had to manually stop it. It found no data.

For comparison, I used PhotoRec on the GOOD SD. And the info is like this:

P FAT32 LBA 0 130 3 1887 62 31 30310400

I keep thinking if we can write the info on the GOOD SD to the bad SD, maybe we can fix it that way. I don't know I am on the right track or not... What was wiped out by the initialization anyway? Is it the partition info or more? Can any of the utilities you provided change this partition info?

You suggested changing the blocksize to 512, can you please tell me how?

RLee
Posts: 3
Joined: 08 May 2017, 07:59

Re: Accidentally initialized 16g SD card

#4 Post by RLee »

If I duplicate my bad SD drive using something like HDDRawcopy, can your utilities work on this drive image? If so then I can experiment with the image until I solve the problem before applying the solution to the SD card itself.

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

Re: Accidentally initialized 16g SD card

#5 Post by cgrenier »

When expert mode is enabled, PhotoRec will search for the first10 files and ask you to confirm the blocksize.
If you never had this question, it means the card has been wiped/zeroed and no data can be recovered.

Locked