I deleted a partition. When i restarted my computer i had an interface showing this message: "error no such partition. Grub rescue>" I don't know if the partition i've deleted was the one where ubuntu were installed (if so im dead. All my important projects are inside) or it was only storing the grub files. Note that i have a dual boot. Who can please help me save both my linux and windows please!


Hum, not really a question, so this is not really an answer. Don't despair. Get an external USB harddrive with a lot of free space. Use an Ubuntu live CD or USB key to boot your computer, then make a full image of your hard drive on the external harddrive. for example, use the instructions in the answer to this question (use dd, not tar). Then, and only then, use tools like Testdisk to recover the deleted partitions.

If you are so unlucky that testdisk can't recover the lost partitions, PhotoRec can still be used to recover some of the files. This is however a last resort, as photorec cannot restore file names and directory structure, nor can it make difference between a file that had been deleted and a file that was present at the time you deleted the partition.

| improve this answer | |
  • @sudodus you edited my answer and added photorec. Photorec has nothing to do with testdisk. So don't let them side by side, in the same sentence. Your edit was misleading in the sense that it let people think testdisk and photorec are the same kind of software. I let the photorec suggestion, but with some more explanations. OP did not format his/her drive. The partition was deleted. testdisk is the solution, not photorec. – zaq Jan 6 '17 at 6:37
  • You are right. I should have not only added it, but also written an explanation. (For me testdisk and photorec are a couple. First try with testdisk, and if it fails, resort to photorec. They are available from the same website, cgsecurity.org). – sudodus Jan 6 '17 at 6:44

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.