I am using Ubuntu 12.04. I have 4 partitions of hard disk. 1st of 43 GB contains Windows 7, 2nd (43 GB) and 3rd (32 GB) contained valuable data and 4th of 42GB contains Ubuntu.

Now, while installing Ubuntu 12.04, by mistake I made whole 32GB hard disk SWAP. Now I am unable to access that data neither from Windows nor from Ubuntu. So I installed Gparted and formatted that disk to FAT32 (which was a horrible mistake from my side).

Now I used a recovery software from Windows to recover the lost data but to no avail. I thought may be the disk is in FAT that is why I am unable to recover. So I formatted it again into NTFS. But all the same I am unable to get my precious data back.

2 Answers 2


What was the original format of the 32 GB partition?

You need to download and use testdisk from Ubuntu; you can do it with sudo apt-get install testdisk. DO NOT use data recovery tools from or even start Windows -- it is more likely to write to a FAT32 or NTFS drive, erasing any traces of your previous data.

  • The original format of 32 GB disk was NTFS
    – n.arrow001
    May 26, 2012 at 14:36
  • how is testdisk used?
    – n.arrow001
    May 26, 2012 at 17:20

I have used Stellar Phoenix Linux Data Recovery, and it did wonders for me. I hope that it can help you. You can Download it Here

Its a Linux Data Recovery software that helps you recover lost or inaccessible data from any file system based LINUX volumes.

Along with powerful recovery techniques, this reliable Linux partition recovery software incorporates interactive graphical user interfaces, which help non-technical users to perform recovery operations, without any assistance.Stellar Phoenix

Also you can take a look at Ubuntu DataRecovery.

  • Why was this down-voted?
    – Mitch
    May 26, 2012 at 8:35
  • Maybe because it's paid software and Windows-only?
    – ish
    May 26, 2012 at 12:42
  • it is not for Windows only. It says in my answer its for Linux. Check their website.. :) Plus if the data is important enough, I don`t think it a bad idea to buy the software..
    – Mitch
    May 26, 2012 at 12:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.