Ubuntu – Recover Lost data/partition

data lossdata-recoverypartitioningsystem-installation

This is what happened:

I was running 12.04.1 and wanted to install 12.10. upgrade, but a fresh install.

When setting up my computer I anticipated for this by dividing my 640GB HD in following partitions:
1. 60 GB for Ubuntu, boot
2. 576 GB for data, mountpoint /home
3. swap, 4GB

The idea was to manually select the correct partition in the installer but I got distracted for a moment and selected the wrong option.

Result: The installer started repartitioning the entire HD.

When I noticed this I interrupted the installer, but upon reboot it was clear that I was too late, no OS to boot to.

I booted from a Gparted Live CD to see if I could recover the data on my previous /home-partition, but it's gone.

Is there any way to recover the lost data? I searched around and read alot about Testdisk, but in all the tutorials I've seen, the set-up has been much easier than what I'm facing.

I've not only lost my partition table, it's been replaced.

Thanks in advance for any ideas that might help!

If extra info is needed, please specify and I will do my best to provide.

Best Answer

If the disk has been only repartitioned you'll be able to recover the original partition layout using a tool called Testdisk If the disk format has already begun when you interrupted the installer, then probably you lost some data.