fat32 partition wiped out using sudo mkfs.vfat /dev/sda1
Submitted by linxmty on Sat, 12/12/2009 - 16:31.
Hello, I have just deleted by mistake a whole partition attempting to reformat a usb pen drive, which was sdc1, ( I used "sudo mkfs.vfat /dev/sda1" ! )
I need to recover the whole sda partition, how can I proceed?
What I see with Gparted is that:
/dev/sda1 is a fat32 partition with 8.95 Mb used and 17.82 Gb free
I know that that I had about 4 Gb used with docs, pictures, etc
Can someone provide a step by step guide to recover this partition?

Hi. I don't think you will
Hi.
I don't think you will be able to recover the partition as it once was, but you should recover a significant amount of data using file carving software.
Run Photorec on the partition.
Mount a drive to which you will save the recovered data (there will be a lot more than the files you were looking for) and from there, run
sudo photorec /dev/sda1
and follow the prompts.