Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 47366  / 3 Years ago, thu, june 10, 2021, 12:27:46

I have migrated from Windows 7 to Ubuntu just yesterday. Windows 7 was in my C: drive. I did not realise that if I wipe Windows 7 and install Ubuntu, Ubuntu would be installed in the C: drive only. So I didn't make any backups, and I deleted Windows and installed Ubuntu. But, Ubuntu has formatted my hard drive and I have lost all my important data!



How can I recover my data now?


More From » hard-drive

 Answers
5

For recovering accidentally overwritten partitions with TestDisk Install banshee please follow these prcoedures:




  • Stop using the drive!

  • Boot Ubuntu live session ("Try Out Ubuntu") from a CD or USB-drive

  • Install Testdisk to the live session via the Software Center

  • follow this concise guide for recovery: TestDisk Step by Step



Optionally (but highly advisable) and if we had an external drive big enough to hold all of the faulty drive we can make a backup to recover data or partitions from an image. Make this image with the following command in a terminal:



sudo dd if=/dev/sdX of=/path/to/external_drive/backup.img


Replace sdX with the drive to recover. Since dd is an advanced and potentially harmful tool take extra care to not accidentally overwrite any drive you may still need.



In case you are unable to recover your partitions you may be able to recover single files by running PhotoRec wich comes with the TestDisk suite.



Just to have mentioned it: there are other "forensic" tools to help you recover lost partitions or files. See How to recover deleted files?.


[#33088] Thursday, June 10, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fertion

Total Points: 436
Total Questions: 121
Total Answers: 156

Location: England
Member since Sun, May 21, 2023
1 Year ago
;