I wanted to format Ubuntu partition by Ubuntu LiveUSB, but I accidentally format both Ubuntu and Windows partition. Now there is only a partition containing Ubuntu. I'm trying to use TestDisk from LiveUSB, but with Quick Search it finds only Ubuntu old files and with Deeper Search it finds several MS Data partitions that can't be opened because "filesystems are damaged". If possible, I would like to see the whole process to recover Windows files step-by-step, because I don't want to deep search again uselessly (it took me 32 hours).
Actually I discovered by myself that restoring previous partitions with TestDisk is impossible in my situation. Nevertheless, I still had the possibility to save all my data thanks to PhotoRec, which puts any possible disk file in a chosen directory (in my case, a 2 TB external hard disk), even if not sorted by folders, because this program checks linearly in the disk any possible file with a proper extension (.png, .jpg, .txt...). This link below is a great tutorial about how to use PhotoRec: http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step#Select_where_recovered_files_should_be_written