Can I re-install 10.10 without losing data

Asked by David Burwell

I admit it - I am an idiot.
In a completely bonehead move, I added a "natty" repo to my sources.list file - now i have a brick instead of a laptop.

Can I re-install 10.10 from CD without losing the data? (reformatting the partitions).
If so; How?

I've scp'ed the files from my home dir and my Virtual Machines folder to another laptop - but I'm sure I've missed some.

I've been told there is no way to reverse the apt-get upgrade from 10.10 to 11.4 - so I have no way to go back to a working machine without reinstalling the OS. I would like to make it as painless (and as quick) as possible.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcus aurelius (adbiz) said :
#1

hmmm...are you reposting under a different name? i swear i answered this question twice already in the last 10 minutes.

Revision history for this message
marcus aurelius (adbiz) said :
#2

yes you ARE and yes i DID.

Revision history for this message
David Burwell (ticedoff8) said :
#3

I didn't post this question under a different name.

I did post a question about rolling back a screwed up system - maybe it was a snarky answer about that problem you are confused about.

I've given up the idea of rolling back - now I just want to re-install the OS without losing my personal settings and custom paths.

It seems the answer to this is also "no".
I guess Ubuntu doesn't have the concept of re-install. Everything is treated as an install - and an install includes re-partitioning and reformatting the HD.
That's a shame.
Up until now, this was my best candidate as my Mac OS replacement.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Please close as a duplicate of:
https://answers.launchpad.net/ubuntu/+question/144006

You have an active question regarding this issue. There is no need to post another as the issues here are in the same vein as your previous question

Thanks

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#5

Assuming your installation is badly messed up (as yours is), the only files you *want* to retain are the contents of your home folder, which you can copy out of your Ubuntu system, and then restore after a fresh installation.

I know this is not a perfect solution to your problem. But it's something.

Revision history for this message
marcus aurelius (adbiz) said :
#6

reinstalling ubuntu is pretty painless. the most it'll take is 1/2 hour, unlike windoze which can take 3 to 4 hours. after you install, you can let the update do it's job unattended. with windoze, you have to constantly be there to answer questions.

Revision history for this message
delance (olivier-delance) said :
#7

"install includes re-partitioning and reformatting the HD." NO. You could keep previous partition without reformatting. You need to choose manual partitioning and uncheck "format" box for partition.
I never tester, but I think you can reinstall with keeping old files. If you want to be sure, I can run this configuration on a virtual machine, but not immediately. And if you want to do dangerous things, do them in a virtual machine like me!
But I agree with Eliah. A reinstallation will be cleaner. The best should be to make a dedicated partition to /home folder, so you will have any reinstallation issue about /home in the future.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#8

@delance
> I never tester, but I think you can reinstall with keeping old files.
> If you want to be sure, I can run this configuration on a virtual
> machine, but not immediately. And if you want to do dangerous
> things, do them in a virtual machine like me!

In addition to knowing if this works, it would also be useful to know if it is supported. My understanding is that it is not, but that might not be correct. Does anybody know?

> The best should be to make a dedicated partition to /home folder,
> so you will have any reinstallation issue about /home in the future.

Or, for users who don't want to mess with advanced stuff like manual partitioning, the best thing would just be to get all the documents off, reinstall, put them back on, and then reconfigure applications to your liking! (Or you could back up the configuration files too, and restore them as well.)

Revision history for this message
Colin Watson (cjwatson) said :
#9

We explicitly support keeping old files on /home during installation,
using the procedure delance outlined. If you do this, system files will
be deleted and replaced with the new installation, but /home will be
preserved.

Here's the development blueprint for this feature:

  https://wiki.ubuntu.com/UbiquityPreserveHome

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#10

Cool! I'm very happy to know about this now.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#11

@Colin

If a separate partition contains the contents of /home but is *not* configured with /home as its mount point in an existing installed system, and you manually partition in Ubiquity, setting up /home as the mount point for that partition (and not formatting the partition), will it automatically and safely import user accounts from there, too?

This related but different situation is discussed in https://answers.launchpad.net/ubuntu/+source/ubiquity/+question/143997. If Ubiquity has this ability, then I can retract the warnings I posted there about the need to manually changer UID's and/or chown recursively.

Revision history for this message
delance (olivier-delance) said :
#12

@Eliah: I reinstalled two times Ubiquity with a separate /home folder. During first installation, I let Ubiquity choose UID, and at each reinstallation Ubiquity choose the same UID, so I had nothing to do about users. At work, I discovered RedHat has same policy of always using same default UID from one installation to the following one.

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#13

@delance
Right, I understand that it works for reinstalling on top of a system that already has a separate home folder. My question is, does it work with a *new* separate home folder, that is *not* set up to be mounted as /home in the pre-existiing system?

Can you help with this problem?

Provide an answer of your own, or ask David Burwell for more information if necessary.

To post a message you must log in.