PDA

View Full Version : [ubuntu] Advice needed on 10.04 LTS to 12.04 LTS upgrade.



gencon
May 6th, 2013, 12:22 PM
I need some advice on upgrading from 10.04 LTS Lucid Lynx to 12.04 LTS Precise Pangolin. Lucid support ends in 3 days on 2013-05-09, so I've kind of left it to the last minute.

Many people seem to have had problems upgrading directly from 10.04 to 12.04 using a "dist-upgrade", so I was thinking of burning a Precise install DVD and doing a clean install. However I do not want to overwrite my '/home/' directory tree and lose all my application settings. Can I keep '/home/' and just install the 12.04 LTS Precise Pangolin OS? Can I have advise on how best to do this please?

I will, of course, backup the whole of '/home/user/' but within my home directory tree I have >750 GB of data - restoring this via my USB external HDD would take days! - so I don't want to overwrite '/home/user/' when doing the 12.04 OS install.

Many thanks.

darkod
May 6th, 2013, 12:30 PM
If /home is not a separate partition, you can't save it. Because best is to format the / partition when installing the new version, and if home is only a folder in / it will get formatted too.
If /home is a separate partition, you can format / but not format /home and reuse it as /home again.

Also, I don't think you upgrade to a new release with dist-upgrade, that it only to upgrade all packages to the most recent version. To upgrade the ubuntu release you use do-release-upgrade.

In any case it's best to have a full backup, which ever choice you make.

grahammechanical
May 6th, 2013, 04:28 PM
Just for the record and because you are not the first person to get this wrong, "dist-upgrade" does not upgrade to the next release of Ubuntu. It is a way of upgrading the existing install of Ubuntu. It is similar to "upgrade."

In my opinion a sensible way of upgrading from 10.04 to 12.04 is to use Update Manager. Run


update-manager -d -c

That should prompt the Update Manager to give a button inviting you to upgrade to 12.04. At least it did as far as I can remember from a year ago when I was testing upgrades from 10.04 to 12.04. Revert your 10.04 to as basic an install as possible. Remove PPAs.

Official advice

https://help.ubuntu.com/community/PreciseUpgrades

gencon
May 16th, 2013, 01:38 PM
Thanks for the advice. Sorry to take a week to get back to you I had to unexpectedly go abroad for this last week.

"/home" is in fact in a separate partition, so I'll do a 12.04 LTS Precise Pangolin clean install of "/" but not of "/home".

Cheers.

C.S.Cameron
May 16th, 2013, 08:53 PM
You may need change permissions to get access to the home partition.

gencon
May 16th, 2013, 09:48 PM
You may need change permissions to get access to the home partition.

Can you say when this would need to be done, what would need to be changed, and why this would be necessary?

Thanks.

darkod
May 16th, 2013, 10:50 PM
If you want to keep using your /home partition, which you do, you need to "use it" during the install, just not to format it.

So, you reuse the root partition as ext4 with mount point / and tick the format box. You reuse /home as ext4 (or different filesystem if you had a different one, it has to match the existing filesystem, that's very important), with mount point /home and NOT ticking the format box.
When the partitions list shows, make sure /home does NOT have the format column selected.

If you use the same first user as in the previous installation, all should be well and you don't need to change any ownership or permissions. You should always create the same first user when using existing /home.

You can create other users later.

gencon
May 17th, 2013, 11:44 AM
Okay got it. Thanks very much.

All clear and ready to go for the big move from Lucid to Precise this weekend. Kinda exciting. :)

lisati
May 17th, 2013, 11:55 AM
To upgrade the ubuntu release you use do-release-upgrade.

In any case it's best to have a full backup, which ever choice you make.

^^^ This.

+1 to Backup: there is always a risk of breakage when going down this path, so having a backup of important stuff.

gencon
May 17th, 2013, 02:05 PM
Okay got it. Thanks very much.

All clear and ready to go for the big move from Lucid to Precise this weekend. Kinda exciting. :)

gencon
May 17th, 2013, 02:08 PM
Backups all done, ran it using rsync overnight. Took 9 hours over USB to an external HDD, hope I don't need to restore it. :)