Files removed after installin ubuntu 16.04

Asked by Iqbal

I was using ubuntu 12.04. I upgraded to ubuntu 16.04 through USB stick. It showed several options for installing. I chose the first option of upgrading from 12.04 to 16.04. Thereafter it told that the swap partition would be formatted. It agreed for swap partition formatting.
On completion of installation, I rebooted the system. I found that my home folder has been removed. My laptop has three separate partitions. /, /root, /home and /swap.
It was not asked for formating other partitions and it formatted /home partition also.

Any help?

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :

Did you wipe the old install off and install Xenial? Or did you use the USB to upgrade the Precise install to Xenial?

Revision history for this message
Iqbal (naqvi-iqbal2001) said :

I used usb to upgrade to 16.04 from 12.04.
There was first option in installation screen to upgrade from 12.04 to 16.04. I chose this option with the idea that my home partition would be intact.
But after rebooting in 16.04, I found that all files in /home partition are removed.

How to get back those files?

I ran testdisk. But testdisk does not show any of my files.

Revision history for this message
Manfred Hampl (m-hampl) said :

swap partitions do not need to be formatted.
I assume that you have inadvertently selected to format the /home partition during the upgrade process.
In that case the data are lost, and the only possibility is restoring them from a backup.

Revision history for this message
Šimon Šustek (sijisu) said :

I recommend to check if your files are removed from flash drive with live ubuntu.
If they're removed then they're complitly lost.
If they're just somewhere else then in your /home partition just move them back to your /home partition.

Can you help with this problem?

Provide an answer of your own, or ask Iqbal for more information if necessary.

To post a message you must log in.