This question already has an answer here:
I had windows 8 installed on my computer and had four partitions. I installed Ubuntu. And checked the option instead of windows 8. Instead of installing Ubuntu in the partition it just formatted the while hard drive and made just one drive and all of the other data is gone. I want to recover those files how do I do it?