this guide can be used on any Ubuntu based system and is intended for people who have a basic working knowledge of an Ubuntu installation and wish to keep the contents of their home folder after doing a re-install.
This guide is also intended for those that already have an existing swap, root and home partition setup!!.
If you have not done/never done any pre-partitioning, please see this guide about using Gparted partition editor:
People who have a PC/Notebook with UEFI, please see this link before commencing as it may be necessary to add a UEFI partition to your partition layout!:
DO NOT MIX AND MATCH VARIOUS OPERATING SYSTEMS ON YOUR HOME PARTITION AND BY THAT I MEAN THE FOLLOWING:
If you are updating lets say Ubuntu 12.10 to 13.04, you can keep your "/home" as is without the need to format the home partition, do not however keep your home folder if you are changing from say Ubuntu 12.10 to PeppermintOS because the system configuration files may well cause a system crash or at least make the system unstable or even unuseable!.
If you are changing to a different distro then my advice is to format your "home" partition but make sure that you backup all your files before you do so; otherwise you will lose everything stored within the home partition!.
Follow the steps below and you should have all your data intact in your home folder without losing all your data from the original home folder!.
Start the installer icon on the desktop and the Welcome Window will open.
Select your prefered language and click on "Continue".
Make sure you have an active internet connection and if you are using a notebook/netbook; that you have it plugged in to the mains and it is not running on battery power alone!.
Put a tick in both the boxes "Download updates while installing" and "Install this third-party software" and then click on "Continue":
At the screen "Installation type", select the "Something else" option and click on "Continue":
Assuming you already have a "swap" partition, there is no need to re-do it as it will be automatically detected by the system!!.
Make sure that the "Bootloader" is set to install to "/dev/sda" which is where the normal "Master Boot record" (Grub Bootloader) is contained!.
Now here you need to highlight the partition that you want to place your "root" ( / ) mountpoint, in my example; I highlighted partition "sda12" which already has Ubuntu 14.10 installed on it and for the purpose of this tutorial; is being erased:
Once the desired partition has been highlighted, click on the "Change" button and the "Edit partition" Window will open which is where you need to set your: File type- Mountpoint and Format option:
Now select "Use as" = Ext4
Format the partition = "Yes" (Put a tick in the box!)
Mountpoint = "/" (Forward slash)
Click on "OK" If you are certain that the changes you just made are correct. Remember that you cannot "UNDO" this operation once you commit and click on the "Continue" button in the next window:
After clicking "OK", this window will open an all you need to do is click on "Continue":
Now select (highlight) the partition you want to use as your home and click on "Change":
Now select "Use as" = Ext4
Format the partition = "NO" (DON'T PUT A TICK IN THE BOX!)
Mountpoint = "/home" (Forward slash and the word "home")
Click on "OK" if you are certain that the changes you just made are correct:
Click on "Install Now" when you are happy that everything is as you want it!. Check that the boot loader is set to the correct HDD, that is to say, your internal hard drive and not an external hard drive unless that is your intention!, the normal location for the boot loader is "/dev/sda". If you have a UEFI boot loader partition, direct it to that particular partition!.
UEFI USERS, IT IS VERY IMPORTANT THAT YOU SET THE UEFI BOOTLOADER TO THE RESERVED FAT32 UEFI PARTITION OTHERWISE YOUR SYSTEM WILL NOT BOOT!:
You will get a final warning, click on “Continue”:
Select your region and click on "Continue":
Select your keyboard layout, test it if you wish and click on "Continue":
Who are you?. Enter the required details and click on "Continue:
(I advise you not to encrypt your home folder as this has led to problems in the past with Ubuntu based systems!)
Wait for the installation to finish:
Installation Complete > click on "Restart Now":
A suggestion from me: Restart in "Recovery Mode":
Immediately after installing your system; I recommend booting into "Recovery Mode" (don't do a first boot but boot straight into "Recovery Mode") select "Network" and run "dpkg" using a cable connection, once you have run dpkg; and you re-boot, set your "Software Sources" (see update link below) list and update again due to the changes made to the software sources lists!!. DO NOT CLICK ON "RESUME" BUT RESTART USING "CTRL + ALT + DEL BECAUSE IF YOU HAVE HAD ANY UPDATES FOR YOUR GRAPHICS CARD; IT WILL LEAD TO SEVERE PROBLEMS WITH YOUR GRAPHICS IF YOU DON'T!.
(I know this may sound strange but its something I found that seems to work well for me!.)
Ubuntu Update Guide link:
To further speed up your re-installation process, after your first boot and you ran "dpkg" per my recommendation above, run a meta command in the terminal with a pre-written favourite package list like the example below (make a copy and save for future use!):
sudo apt-get update && sudo apt-get install synaptic shutter gparted gpart xsane hplip-gui deluge bleachbit libreoffice me-tv kaffeine linux-firmware-nonfree devede handbrake libxine2-all-plugins transcode ubuntu-restricted-extras vamps videotrans playonlinux mono-complete p7zip-rar winbind kshisen amarok kontact skype faac flac chameleon-cursor-theme clamtk mate-desktop-environment-extras alien k3b chromium-browser pepperflashplugin-nonfree poedit git
The above is just an EXAMPLE, make a list of your own favs!.
I hope this is of help to you.