So I was trying to install Ubuntu on a Windows machine (I switch OS every 1 year or so) – and mistakenly erased my Windows partitions! I did have my daily backup but it is a hassle having to set up everything again, so I looked for ways to reverse the effect.
Turns out that there is such a thing, called testDisk [http://www.cgsecurity.org/wiki/TestDisk]
Which turns out to be very good! Here are the steps I went through:
- I boot into a live Ubuntu via USB (always handy to have those around)
- On boot, I selected persistent mode, so the whole OS runs from my USB in memory
- downloaded testDisk
- run terminal, sudo bash (into root)
- from there, I ran the ./testDisk_static executable
- selected the disk whose partition I want to recover
- selected that it is intel/pc partition then went for a [quick search]
- It found my missing partitions, and I recovered it.
I am surprised by how easy it is. And glad that my partitions and data are back.