I was upgrading Ubuntu from 14.04 LTS to 16.04.1 LTS inside Virtual Box and it killed my installation. Now I wish to reinstall Ubuntu with keeping my home
directory.
Unfortunately, installer asks me for some strange choice:
It suggests several options with deletion of everything and only one option to keep my files. But this option also suggests to have TWO versions of Ubuntu installed.
What does it means? Two copies of all program and system files? Or just two kernels? I don't want two copies, I want just overwrite failed installation.
BACKUP your data FIRST. If you can't boot your Ubuntu guest any more, you can boot with a Ubuntu Live DVD, select Try Ubuntu, and copying off files to an external disk or flash drive.
You can reinstall Ubuntu and keep your existing /home directory, by booting a Ubuntu 16.04.1 Live DVD, and choosing Something Else, choosing your existing Ubuntu partition to reinstall into, and unselecting format partition.
If you would have placed your home directory on a separate HDD or in a separate partition last time you installed, it would do exactly what you want. However, now that you didn't do that I would:
Take a back-up of your personal data (not the entire home directory: just the Desktop Pictures Videos Documents Public Downloads Music Templates)
Erase all, and create 3 partitions:
/
(8GB minimum, depending on what you want to do)swap
using the following formula/home
Then, when you want to do another re-install, keeping your personal files, you can do so if you just don't format the
/home
partition.Also have a look here.