PDA

View Full Version : [ubuntu] Keeping two parallel ubuntu installs



AndersAA
January 20th, 2010, 11:26 AM
I have the need currently to keep both 32bit and 64bit ubuntu versions installed (can't use chroot, it's testing display adapter drivers and that means booting with a 32bit kernel).

Is there any easy way to deal with this? The boot images are generally named the same so a 64bit kernel upgrade could overwrite a 32bit one, and os-detect goes a bit crazy as well.

darkod
January 20th, 2010, 12:19 PM
I don't think the kernel upgrade can mess anything up since you are doing an update when you are boted into the particular version and it will apply the update only to it.

But not sur how the automatic discovery of both OSs will go, haven't tried that so far. And you might need something to tell them apart in grub boot menu.

Kevbert
January 20th, 2010, 12:27 PM
The biggest complaint is generally knowing which installation on boot is the 64 bit version and which is the 32 bit one as grub/grub2 just shows the kernel revision (which will be the same). The two installations are totally independent of each other. When upgrading kernels the first one listed is always the one that was last upgraded.
Upgrades may need to be done separately as some versions on certain packages will only be for 32 bit and others 64 bit so you can't easily download one set of upgrades while running 32 bit and then transfer them to the 64 bit version.

AndersAA
January 20th, 2010, 03:26 PM
I don't think the kernel upgrade can mess anything up since you are doing an update when you are boted into the particular version and it will apply the update only to it.

Forgot to mention I had a shared /boot, I've split those up now though.

AndersAA
January 20th, 2010, 03:33 PM
Seeing as there was no quick fix for this I looked into it, and modifying /etc/lsb-release seems fairly safe, atleast as long as you edit the description. I doubt anything relies on parsing that.

Modified mine to this now:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10 32-bit"

os-prober picks up the change