Dual-booting Kubuntu and Windows

The step-by-step method to installing Kubuntu and Windows for people without any technical experience

Download the whole article as PDF

Short URL: http://fsmsh.com/2087

Write a full post in response to this!


We have come to a cross-roads in the computer world today. Stick with the familiar Microsoft Windows, or try the stable, secure, but unfamiliar GNU/Linux-based operating systems that have recently started taking off. There are two big factors that stop most people from loading GNU/Linux onto their computer. The first is that they think they need to be a geek to install it. I admit that it is often hard to install something you’ve never had experience with. But with the right coaching, you can do it. Also, people think that you can’t run Windows if you have GNU/Linux (so they lose all their games and other important programs). However, it is actually possible to run Windows and GNU/Linux on the same computer. So what are you waiting for?

Important note: this article will explain how to install Windows and Kubuntu on the same computer, starting from scratch. This is ideal if you don’t have any data on your Windows machine, or if your data is fully backed up. This article does not cover how to install Kubuntu on an existing Windows machine preserving your Windows installation.

Introduction

Recently, I was asked by a friend if I would install a GNU/Linux-based operating system onto his machine. I had told him about how good GNU/Linux was (virus-free, crash-free, and headache-free). Besides, his Windows install was completely messed up. But he also wanted to be able to use his Windows-only games and programs. So I gave him the best of both worlds by backing up his important documents, formatting his hard drive, and then creating a Windows XP and GNU/Linux dual-boot. This sped up his Windows drive for when he absolutely needed to use a Windows-only program, and still allowed him to use GNU/Linux. You may be asking, “How do I do it?”. Believe it or not, it is actually very simple.

Which GNU/Linux operating system you should use and why

The first step is to figure out which GNU/Linux-based operating system (also known as a distribution or distro for short) to use. After all, there are hundreds to choose from. But how do you choose?

You want a distribution that will install easily onto your computer, one that will install third-party programs easily, and one that looks good. There are quite a few that satisfy one or two of the items on our list, but the only one that I’ve found has all three is Kubuntu. Kubuntu is based off of the Ubuntu distribution, well known for installing easily to your computer’s hard drive. In fact, installing Kubuntu is easier than installing Windows. Since Kubuntu is also based off of the Debian distribution it installs 3rd party programs very easily (as it automatically takes care of dependencies). It also uses the K Desktop Environment, also known as KDE, which makes your computer look very elegant.

Preparing for Kubuntu

Requirements

The first thing you want to do is make sure your computer can run Kubuntu. Generally, if you can run Windows XP, you should be able to run Kubuntu. If you want numbers, you’ll need 256MB of RAM or more and a hard drive with a capacity of 20GB or more. To find out if you have enough RAM, right-click on My Computer, click Properties, and in the bottom right it should tell how much RAM you have (1024MB = 1GB). To find out how much space is on your hard drive, open My Computer, right click on the C: drive, and click Properties. It should show you the amount of free space. If you don’t have enough RAM or if your hard drive isn’t big enough, any local computer store should be able to help you upgrade.

You’ll need 256MB of RAM and a hard drive with a capacity of 20GB or more

You will also need a Kubuntu CD or DVD. There are several options: you can have a copy shipped to you for free (not recommended, as it takes six to ten weeks to ship), you can order one to be shipped (between $4 to $10), or you can just download it for free. For the last option, go to the download page, click the continent closest to you, then the country, and then click a location near you. Then, right-click on “CD Image for desktop and laptop PCs”, and click Save Link As or Save Target As. You may want to consider getting a download manager to speed things up (DownThemAll is my favorite). After downloading the ISO CD image, burn it to a CD. If you don’t know how to, use the free (as in speech) InfraRecorder. When you download it, open it and hit Actions→Burn Image. Select the ISO image you downloaded, and start the burn. You can also refer to the InfraRecorder manual, which comes with the program.

Backing up

Please keep in mind that this article is about installing Windows and Ubuntu on an empty, newly formatted machine. This means that you will lose all of your Windows data. If you don’t want to lose your data, you will need to back up your Windows drive.

There are other ways to install Kubuntu on an existing Windows machine in which you don’t have to format your drive, but starting from scratch is the easiest option (and will clean up Windows too).

If you do have valuable data on your Windows machine, you will need to backup what you want to keep. You have a few options for where to backup to: a bunch of CDs, a bunch of DVDs, an external hard drive, or an online host. Backup all the data that you want to keep (documents, pictures, movies etc). Also, backup your drivers. For this use the free (as in beer) DriverMax. Most importantly, write down your product key for Windows XP. If you can’t find it, use the Magical Jelly Bean Key Finder - again, Magical Jelly Bean is free as in cost, rather than freedom (unlike GNU/Linux and most of the software that comes with it). You may want to write down product keys (also known as registration keys) for other software you have bought. Remember to backup your data and the installation packages of your programs!

There is one other thing you must do before you install Windows and Kubuntu, and that is to change the boot priority so that the CD is above the hard drive in boot order. What this does is simply make it so that the computer will run off of the CD (so you can install Windows and Kubuntu) instead of off of the hard drive. Consult your manual on changing the boot priority. If you can’t find out how, call your computer’s manufacturer or do a search online for “booting from a cd with INSERT COMPUTER NAME HERE”. Replace the INSERT COMPUTER NAME HERE with your machine’s name, like “Dell Dimension 4700”.

Installing Windows

First, you need to get the Windows installer ready. Find the Windows XP CD you got when you first got your PC (or when you upgraded it from Windows 2000 or 98). Insert it in your PC. You should see a Windows XP prompt. Hit the Enter key.

OK, you are now ready to install Windows. The first thing you will see is an End User License Agreement (EULA). Hit the F8 key. Next, you’ll see a screen listing all your partitions (as shown in figure 1).

Figure 1: Partitions list
Figure 1: Partitions list

Now, delete the C: partition. Highlight it (if necessary) using the up and down arrow keys on your keyboard, then hit the D key. You will be prompted to delete partition C:. If you can’t handle pressure, scream at the top of your lungs and hit Esc key. But if you are brave, and want to install Windows and Kubuntu, hit the L key. Now you’ll see the screen that was in figure 1, with a major difference: it shows Unpartitioned Space instead of C:. Highlight the Unpartitioned Space, and then hit the Enter key (figure 2).

Figure 2: Formatting
Figure 2: Formatting
Don't miss out on the other pages!
12next ›last »

Write a full post in response to this!

0

Do you like this post?
Vote for it!

Copyright information

This article is made available under the "Attribution" Creative Commons License 3.0 available from http://creativecommons.org/licenses/by/3.0/.

Biography

Andrew Min: Definition: Andrew Min (n): a non-denominational, Bible-believing, evangelical Christian. (n): a Kubuntu Linux lover (n): a hard core geek (n): a journalist for several online publications (see them all at http://www.andrewmin.com/ )

Shannon_VanWagner's picture

Suggestion: "Shrink" Windows partition to make room for Linux

Submitted by Shannon_VanWagner on Thu, 2007-06-07 18:55.

Vote!
0

Have a lot of free space on your hard drive? If so, instead of formatting and losing your Windows installation, why not "Shrink" the Windows Partition to make room for the Linux installation. See how to do this below.

Disclaimer: As a safeguard you should always perform a backup of your system to an external source prior to performing any changes such as outlined below. I am not responsible for any data-loss or other issues you may experience when using the information below to install Linux.

About GParted: The GParted utility is an easy-to-use yet very powerful graphical Open-Source partition editor that is available in "LiveCD" format(meaning that it boots from CDROM).

To use a "LiveCD, download the *.iso file and then use your favorite cd-burning software to burn the .iso image to a cdrom disk (My favorite cd-burning app for Windows is DeepBurner Free 1.8 from http://deepburner.com/?r=download for Linux use K3B).

Here are the steps that I used to "Shrink" my Windows partition with a nifty utility called "Gparted". I was then able to install KUbuntu 7.04 in the free space that was left over.

1.) Download and burn to cdrom the free Gparted Partition Editor Utility in LiveCD format http://gparted.sourceforge.net/download.php (direct link to the gparted-livecd-0.3.4-7.iso file: http://tinyurl.com/24ph7r)

2.) Boot into Windows, perform a full disk cleanup (checkout www.ccleaner.com for a good cleanup utility for this), then run a full defragmentation of your Windows drive(s) to move all the physical data on your hard drive and provide room to "Shrink" the Windows partition.

3.) Boot up your computer to the GParted LiveCD (from Step #1 above). Upon booting into Gparted, try pushing Enter to accept the defaults at each of the configuration screens - this will get you into the GParted graphical utility, which is very simple to use.

4.) To "Shrink" your Windows partition, simply right-click it from within the GParted graphical utility, then select "resize". From the resize dialog simply use the slidebar to adjust the size of your Windows partition to a smaller size (slide to the left or enter a number). Be sure to leave some free space for Windows (4GB or more would be great)to avoid Windows performance problems. For Kubuntu you can set aside 4GB of free space for the install. I suggest that you free up 20GB or more to have plenty of space for using Kubuntu.

5.) Click "Apply Changes" and watch the magic of the GParted as it performs a "Shrink" of your Windows partition. Note: GParted may not work properly if you have any type of RAID array, so you're on your own for testing that.

6.) After all changes are applied, reboot the machine without the GParted disk in the drive. Windows will then perform a "chkdsk" - this is normal, let it complete. Note: Be sure to let the chkdsk fully complete and then login to Windows to test to see that everything changed properly. If you look in "My Computer" it should show that your Windows partition is now smaller. If you were to run Start>Run>diskmgmt.msc , you would see that your drive now has the free space you created in steps 4 & 5 from above.

7.) Reboot with the Kubuntu LiveCD in your drive, once you get to the point where you can install Kubuntu you can install the linux partitions (swap, and / (e.g. ext3 root)) in the free space you created. Kubuntu will automatically detect your Windows partition and will add it as a selection for the GRUB Boot loader.

Have fun using Kubuntu - I use it on all my computers and I think it's great!!

Shannon VanWagner

Andrew Min's picture

Very nice

Submitted by Andrew Min on Tue, 2007-06-05 20:28.

Vote!
0

Thanks for the comment. I'll remember that next time someone asks me how to install Kubuntu while keeping Windows.

The one advantage of formatting is that it cleans up Windows (for when you need to use it). I would recommend periodic reformatting to all Windows users (even those not interested in Kubuntu).

--
Andrew Min

Michael Fötsch's picture

I have no idea why the

Submitted by Michael Fötsch on Thu, 2007-06-14 18:01.

Vote!
0

I have no idea why the article says that it "does not cover how to install Kubuntu on an existing Windows machine preserving your Windows installation." Isn't this exactly what you're doing? You install Windows, then Kubuntu, then Windows still works. What am I missing?

About GParted: I've seen the GParted Live CD mentioned several times in various places. I just don't know why it's useful. Can it do anything better than the partitioner that's built into the Ubuntu installer ("manually edit partition table")? I used the built-in partitioner several times and have successfully installed a quadruple-boot system with it -- no need for a GParted Live CD for me, so far.

I wrote an article describing the installation of gNewSense (same as Ubuntu's) the way I think it's easiest and most succinct: http://wiki.binaryfreedom.info/index.php/Installing_gNewSense

Lopo Lencastre de Almeida's picture

What?!?!?!?

Submitted by Lopo Lencastre ... on Tue, 2007-06-26 15:07.

Vote!
0

Sorry but this is a completely silly article and with a completely misleading title "Dual-booting Kubuntu and Windows
The step-by-step method to installing Kubuntu and Windows for people without any technical experience"

What the heck was the editor thinking when let this became published?

The two following replies do a much better job than the article it self.

I have Windows XP and Ubuntu Feisty in this same laptop and installed it without a blink or any external application. Is it different from Kubuntu? I doubt.

And if it is just install Ubuntu and afterwards install KDE if you want it.

What a wayste of my time.

Tony Mobily's picture

The reason...

Submitted by Tony Mobily on Wed, 2007-06-27 01:52.

Vote!
0

Hi,

This article went through quite a bit of editing/thinking. The problem is that just so many things can go wrong... if you're a newbie, then you need very careful instructions. And, there is always the chance that 1) Windows won't start anymore (I had that one recently) 2) Linux won't boot 3) You format your windows partition accidentally

It's easy for most of us. But for the newbie... hummmmm... no.

Merc.

skypjack's picture

Of course

Submitted by skypjack on Tue, 2007-07-17 20:31.

Vote!
0

I think newbies need article that explain them how to create Windows-Linux dual boot system, not Kubuntu-Windows dual boot system. Of course, article is ok, but maybe newbies want to know how retrieve lost Linux partitions after Windows re-installation (as instance, using grub shell), how to configure boot loaders like grub or lilo and so on ... Don't you think so?

ancientofdays's picture

Before you wipe out an existing windows install

Submitted by ancientofdays on Mon, 2007-07-02 13:35.

Vote!
0

One of the things I can never understand in these articles about "how to reformat your hard-drive" is that they suggest people get help by going online...but if you've completely destroyed your OS, how are you to get online to get help?

Besides "use someone else's computer", there's an option that is frequently not covered very well. Before you try installing new stuff, I suggest getting yourself a "Live CD" of your OS of choice, and making sure that you can REACH said help-systems (forums, IRC, mailing lists, etc.) using it. A "Live CD" is where the entire operating system runs off the CD. Again, BEFORE you start, make sure you can get to the suggested "Support Fora".

http://www.nu2.nu/pebuilder/ can help you build a Windows Live CD.
http://www.frozentech.com/content/livecd.php contains a list of different linux-based Live CD images.
http://livecd.sourceforge.net/ is a project to create FreeBSD live CD's

I have not been able to find an OS X live CD that works, as of yet. Perhaps someone who has will post a pointer here.

skypjack's picture

Only one?

Submitted by skypjack on Mon, 2007-07-23 15:32.

Vote!
0

I agree with you, but my question is: do you have only one pc at hand?
In my house there are four computer, so if one of them is KO I can use another one to ask help on-line!
However, for newbies get a LiveCD before reformat the hard-drive and test it is a good idea!
I give you a present for your comment ... :-)



CariNet: Cloud computing is a reality.