Score:0

recover files from sd card partitioned by error

US flag

I have a sd card in exfat format, I could not read it in ubuntu so I have searched for a solution and found this page:

SanDisk Extreme PRO SDXC 128GB Won't Mount

I followed the beginning of the instruction of the first answer:

sudo fdisk /dev/mmcblk0 and make a new partition table in MBR format with >o,n,p,1,Return,Return,t,7,w to make a new MBR drive with a partition of type 7 >(NTFS/exFAT) which spans the full medium.

after that I realized that was a bad idea because I had already a useful data on this sd card. So I did not continue and had NOT executed the next command:

mkexfatfs -n YourVolumeNameHere /dev/mmcblk0p1

I am not sure exactly what fdisk did to my sd card and how to recover my data now? Any help will be welcome.

Thank you!

Oblomov avatar
md
We tried to use testdisk, but after quicksearch it says it can see no partition on the disk.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.