I’ve installed Ubuntu several times on various machines in a dual-boot format, but I’ve never blogged about it. In all cases, it’s been with Windows on the first partition (mostly with XP, but also once with Vista on a new machine), so I’ll use that as my example here.
First things first. Get Windows ready. This usually includes defragmenting to get all your files at the beginning of the partition. That’s pretty much it.
Boot into the installation CD. Ubuntu comes with a partition editor (GParted) on the CD, which you’ll need soon.
Resize your Windows partition in order to leave enough space for (a) the linux system itself, (b) a swap partition if your RAM isn’t plentiful, and © any other shared partitions you may want to make:
- (a) In the case of Ubuntu, the minimum hard drive space required is 4 GB, although in my experience at least 10-15 GB is better. This partition will probably be of type ext4 (at least, it is in the latest version of Ubuntu)
- (b) Depending on how much RAM you have and how much hard disk space is available, you may want to add a swap partition. This is a sort of paging file used to swap out segments of the RAM that aren’t used very often, freeing up memory for more active applications. On my old machine, which has 512 MB RAM, I added a 1 GB swap partition. On my current machine with 4 GB RAM, I don’t have any swap space at all and everything runs fine. It’s up to you.
- © If you want to be able to share files between Windows and linux (and haven’t yet converted to a cooler solution like Dropbox), it might be wise to make a FAT32 partition that can be read by both operating systems. Make this one however large you need.
Be sure to tell the partition editor that you’re going to want to put the root file system (/) on your ext4 partition, and ensure that your swap partition (if you made one) is correctly identified as such.
If you’ve made it this far, you’re almost done. Now run the installer and let it work its magic.
Ubuntu’s always installed GRUB without a hitch. But if you do run into trouble, this documentation from Ubuntu is a good place to look.
Congratulations, and welcome to linux!