Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently I installed Ubuntu 12.10 x64 Server Edition on my PC. Unfortunately, I attempted to install a lightweight desktop but due to the fact that I have an old graphics card, the PC does not perform so well. I am thinking of re-installing an Ubuntu version but I do not want to lose the contents in my home folder. Is there any way to do that with a Live CD?

share|improve this question
Do you have an extra partition for /home ? You should make a backup bevor you reinstall, this is the best way to save your data. – prophecy201 Mar 19 '13 at 10:50
up vote 11 down vote accepted

Ever since Hardy (Ubuntu 8.04) you can reinstall Ubuntu without losing data in /home even without a separate /home partition.


Preserving home when reinstalling Ubuntu

Since Hardy, Ubuntu can be reinstalled while preserving home even without separate /home: see UbuntuReinstallation.

Few people know it, but since Hardy it's possible to reinstall Ubuntu without losing the content of the /home folder (which contains program settings, internet bookmarks, emails... and all the documents, music, videos that you have put in it). Even if /home is not on a separate partition

Of course, you should always have a backup of your data.

share|improve this answer
why is it that in the 8 (yes 8) times I have reinstalled in the last two years it has never preserved the existing home content even when I specifically want to keep it and I've had to restore from another backup and deal with all the trouble with the permissions and stuff – sbergeron Jul 29 '14 at 21:53
When you install, do not format / – bodhi.zazen Jul 29 '14 at 22:01
I haven't, but every single time it has erased my home folder. Is there a way I can rename it beforehand, install, then delete then new one and replace it with the old one I renamed? – sbergeron Jul 29 '14 at 23:51

If you have a dedicated partition for /home:

  • launch the installer
  • when it comes to the choice of disk and partitions, choose "other" and then, manually select the partition for / and /home; check that the installer will format only the / partition, and not the /home

If you have only one partition:

  • launch the live cd, select "try Ubuntu"; if you have an old pc, you may try xubuntu instead of ubuntu
  • once on the desktop, use the file manager to browse your home directory, display hidden files, select all and copy all on a usb key
  • when the installation is finished, you can copy again the files in your /home before restarting
share|improve this answer
I had separate home partition. I chosen reinstall keep data if possible, and all data on home were deleted. Writing just to tell other people to payattention. – umpirsky Jun 22 '13 at 12:15
Before upgrading, one must always back up the /home content. – ttoine Jul 11 '13 at 16:04

Why reinstall? Just add the (meta)-package that installs the DTE you want to use. If you want to reinstall, at least create a separate /home partition. And if you really want flexibility use LVM so you can easily add, remove and resize partitions (aka "logical volumes" in LVM language). You can also add or remove disks to your logical disk (volume group).

But please consider to just install the right DTE first as you don't need to reinstall.

share|improve this answer
What is that DTE that you speak of? – Jose Gómez Jul 16 at 19:57

protected by Community Jul 21 at 10:21

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.