I installed ubuntu 14.04 using a bootable usb in my system running windows 7. But i forgot to backup my data from the drive in which i installed ubuntu. How can recovery the data stored in the ubuntu partition. The ubuntu partition is not shown in windows and cannot be reinitialized using disk manager.
2 Answers
At many times, I have accidentally deleted so so so so important files and testdisk is what saved my life.
sudo apt-get install -y testdisk
sudo reboot
And while you reboot, at your GRUB screen, pick to boot system in recovery mode. It'll take you to the menu, where you would have option to drop into root shell.
When you are at the cmd line, fire this testdisk /dev/sda and follow the instruction in that process.
Good luck
EDITED: Updated as per comment. { thanks! :) }
- 1,418
- 11
- 14
Important: Stop using the drive NOW
If I understand correctly, you've already overwritten a part of the drive.
If you depend on the data (financially or otherwise), take the drive to a recovery specialist, even if it'll cost you a small fortune.
Your other option is to try it yourself. Chances are high that your data is already - at least partially - lost, but perhaps you can get by using this solution.
It all depends on the importance of the data.