Previous Next Table of Contents

10. Twin Boot Upgrade

This is the easiest way to upgrade, but it needs loads of extra disks. If you buy an extra disk to install an upgrade, here is where you use it.

If you have a 2 GB disk, split it into 3 sections (bigger than 660 MB size of a CDROM), and a 10 MB boot partition. You put the swap onto a physically seperate disk, or use extended partitions if you choose (PROJECT: Convert).

Try to arrange it so that opposite ends of the disk won't be used at the same time, and put a SWAP partition just before the linux main partition.

If you create partitions, edit /etc/fstab. If you create swap files, edit /etc/rc.d/rc.swap_files and call it from rc.local (or earlier).

For the really curious, the ext2 fs splits the disk into compartments or zones. Files created under a directory in zone 3 will PROBABLY also be in zone 3. This makes it quite difficult to compare performence of different machine, unless you can set them up to be the same. It also makes it difficult to create swap files near the programs that will need them. In general, just forget about the problem, and put the swap space on an otherwise unused disk. As long as you have enough space, you will be OK.

You setup /hda4/boot and /etc/lilo.conf as before.

You (will) have two independent Linux systems, housed in one box. Only one is active. You can boot the 'old' system, much as you did yesterday, and do some work, or you can boot the 'new' system and get it working.

The only thing shared by the two systems are the swap partitions, the lilo boot configuration, /dos/c and your HOME directory (maybe). They run different kernels (eg 1.2.13 and 1.3.74) and use different binaries (eg a.out and elf). You build up the new system, service by service, until it can do everything that the old system could do.

Initially use only new test data, you don't run the new system on your old data files. You BACKUP your $HOME directory before running on the new system. Or better still you start a new user, without all those .x-res-rc files. Beware! the new version of an app might clobber the old versions file!

Even after switching to the new system for daily use, you keep the old version available, for when the new system can't do what the old one could.

Some of you will be doing this from the boot+root disk(s), installing Linux for the first time. Others will be doing an upgrade, using their 'old' system to install their 'new' system, so that it can boot OK.

To be sure that the new system isn't using the old system (eg /etc/ld.so.conf), edit /etc/fstab so that the partitions aren't loaded. If they're not loaded, your not using them, use df to see.


Previous Next Table of Contents