Options from the live CD
When reinstalling on a system having only Ubuntu installed we have four options from the installer:
- Reinstall Ubuntu:
this will keep your settings and your home as much as possible. This means you will still have your personal files from HOME, and the settings from your applications there but you may have to reinstall applications you had installed before. It may also be that some setting from your root directory will be kept which in case of a broken installation may not be what we want (but it may be worth to try before we have to start from scratch).
- Install alongside:
this will create a dual-boot with your previous installation (which may be quite confusing from the resulting boot menu).
- Erase Ubuntu and reinstall:
all of your data will be deleted. The hard drive(s) and all partitions on it will be deleted, reformatted and used for a new installation. In this case we need backups to be able to restore our personal data.
- Something else:
this option lets you fine tune your partition, and will also let you define partitions to use for special purposes in your new installation.
Something else but keep HOME
As soon as the partitioner gparted opens it's window we are able to inspect the exiting partitions on our drive to select which ones to use for the new installation.
By default all used partitions are marked as "do not use the partition". After having selected a partition we may press "Change..." to edit this. The following window lets us define how to use the selected partition:
- Use as: choose the filesystem your existing HOME was on
- Mount point: choose the mount point
/home
for your HOME partition
do not tick "format" to prevent from formatting (and deleting) your existing data
- repeat the above for mount points
\
, \swap
or any other partitions you want to reuse.
only tick format on those partitions you really want to delete
Reuse an existing HOME partition
In case we had installed without choosing the mount point of our existing HOME we will create a new /home/
directory filled with default values for the newly created user.
If we then need to reuse the old HOME partition we have to make sure to mount it on boot. The steps are similar to how I outlined in my answer to the following question but without the copying bits:
Basically, you need to edit your /etc/fstab
to mount the existing partition as /home
. You also should delete (or better rename to be able to undo) the newly created empty /home
of your new installation before you can use the previous HOME partition on the next reboot.
To avoid doing this when a user is logged in it is better to perform the above from a live session.
The advantage of keeping your old HOME partition is that all your data and all your application setting will be preserved.
But this also may be disadvantageous in case your broken installation came from bad user settings. These of course will then also be restored.
Best Answer
Install the pre-requisites:
And install the dependencies:
Branch the fork from Launchpad:
Jump to the directory:
Install:
Now you have two options:
Compile from source
Run:
Install from compiled .deb
If you would rather install from a .deb run:
Then:
and