View Full Version : [ubuntu] Reinstall Ubuntu without losing data

June 4th, 2008, 10:53 PM
I have been having some MAJOR problems with Ubuntu lately and I want to reinstall the OS. How can I do this without losing my data?

June 4th, 2008, 10:58 PM
The obvious way is to burn it to a DVD and copy it back afterwards (which also prevents some old config-file to "spoil" the new system). Another possibility is selecting your old home-partition upon installation as new home without formatting it (which may "spoil" your new system with some broken config files).
Are you sure the problems are so big you have to reinstall?

June 4th, 2008, 11:01 PM
I have over 100 gigabytes of data, so I really don't want to burn all that to DVDs.

Check my other threads for more info on my problems. I'm having some serious issues with my video and sound. I've been trying to fix my problems for two days straight with very little luck.

All I need is for my video and sound card drivers to go back to normal, but Ubuntu makes it way too difficult.

June 4th, 2008, 11:06 PM
In this case, the second method should be okay, since your user-specific files are working. You only have to take care to name the first user exactly the same again and not to format the home partition (provided your data is there).

June 5th, 2008, 01:24 AM
I reinstalled Ubuntu without formatting my /home partition. I logged in and all my settings were intact. I installed Thunderbird and all my emails were there. Everything worked perfectly for me.

My parents also use the computer. I re-created their accounts and when they logged in their desktop icons were there, but that was about it. My mom uses Thunderbird and she is going CRAZY because none of her emails or address book are there. Also, all of their bookmarks and such in Firefox are gone.

How do I get all this data back?

June 5th, 2008, 01:40 AM
Did you also create them in the same order and with the same usernames as before? Look under /home/ wether there are additional users now. That they have there desktop icons but not their emails sounds very odd.

EDIT: I checked the "user-add" settings dialog and it refuses to add a new user if a home directory of the same name is already there. If you used that to create the users and didn't get an error you named the users differently.

EDIT2: did the reinstallation at least solve your sound/graphics problems?

June 5th, 2008, 06:00 AM
Yes, the reinstall solved my sound/graphics problems. Here's what I did to create the new users.

My parents names are bob and sue. To create sue, I renamed /home/sue to /home/sue2. Then I created sue's username and copied all the data over from sue2. I did the same with bob.

When I logged in to their names, their desktop icons were all there. The wallpaper was the Hardy default and all their settings for programs were all default. My settings are the only ones that remained intact.

June 5th, 2008, 12:16 PM
The problem with copying is, that often permission and owners are changed. You hopefully kept sue2/ and bob2/ for now as backup. First I would check if you really copied everything, including hidden files. Next I would try

sudo chown -R sue /home/sue/
sudo chown -R bob /home/bob/
to make sure all their files belong to them. You should also check the hidden files /home/sue/.xsession-errors and /home/bob/.xsession-errors for any hints of programs complaining about permissions.

June 7th, 2008, 09:07 PM
So, how's the status? Did any of the last ideas solve the problem?

June 7th, 2008, 11:27 PM
I think MoM took the puter away .. .. :lolflag: