Dual-booting Kubuntu and Windows

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


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.


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


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 listFigure 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: FormattingFigure 2: Formatting

Now, wait patiently as XP formats the hard drive. When it is done, it will reboot (or it will prompt you to reboot). As soon as it turns back on, remove the CD. Now guess what? The brains at Microsoft force you to put the CD back in! Put it in, let XP install (don’t go away though, in the middle you will be asked to set time zones and other “useful" things), reboot, take out the CD as soon as the computer turns on, and complete Windows XP setup (pretty straightforward, if you are unsure what to put as your account/user name, just put your name). When you are done, you should see a blank Windows XP desktop. However, don’t transfer your files or install any programs yet.

Installing Kubuntu

Insert your Kubuntu CD into the CD drive. Next, reboot the computer. When the Kubuntu menu comes up, choose the first option (Start or Install Kubuntu). The desktop should come up (as shown in figure 4).

Figure 3: Loading the Kubuntu desktopFigure 3: Loading the Kubuntu desktop

Double click on the Install icon on the desktop (if two Install windows come up, close one). The installer has six easy steps, which I will walk you through.

The first step is to select a language. When you are done, click the Continue button.

Second, select your city, and then click Continue.

Third, find out your keyboard layout (most likely U.S. English in the States). Select it, and then Continue.

At the fourth screen, tell Kubuntu to automatically resize the partitions (and pull the scroll bar to 50%).

Tell Kubuntu to automatically resize the partitions

If you can’t do this, then try selecting Use largest continuous space. Now, continue to the fifth screen.

Type in your name, your login (to simplify things, you could put this as the same as the Windows user name), your password, and the name of the computer. Then go to the sixth and final step.

Make sure all the information is correct, and then hit Install. When it is done, click the Restart Now button at the prompt. Wait for Kubuntu to shut down, then remove the CD when it tells you to (Kubuntu may freeze up on shutdown. If it does, hold down on the physical power button on your computer for a couple of seconds until it starts to power down again). Put the Kubuntu CD away. Then, hit the Enter key to restart your computer. Everything is now done. When you first restart, you’ll be greeted with a menu with four options in which to boot into. Choose the Ubuntu option (probably Ubuntu kernel 2.6.20-15-generic) to get you into Kubuntu (the last option, the Windows XP option, will get you into Windows). Log in with your username and password. Now, don’t do anything. Restart again (K Menu→Log Out) just to make sure Kubuntu configured itself correctly. Now, you’re done. You can transfer all your files and folders to either the Windows partition, the Kubuntu partition, or both (note that Kubuntu can read and write to the Windows partition, but Windows can't even see the Kubuntu partition. So, it may be a good idea to put your files on the Windows side so both Kubuntu and Windows can access them).

Getting used to Kubuntu

The default file manager (like Windows Explorer but better) in Kubuntu is called Konqueror. It can open PDFs, multimedia files, web pages, and much more. Most of your files are stored in the directory ~/ (which redirects to /home/[USERNAMEHERE]). The external media (flash drives, CDs, the Windows partition, etc.) are located in the /media/ folder. The desktop folder is located at ~/Desktop/.

For creating office documents, use OpenOffice.org (K Menu→Office→OpenOffice.org Word Processor). It has database, presentation, spreadsheet, and word processing applications bundled with it. And it is compatible with Microsoft Office. For music, use Amarok (K Menu→Multimedia→Amarok) or Noatun (K Menu→Multimedia→Noatun). And for web browsing, you can use Konqueror (not only is it a file manager, it is also a fully featured internet browser).

Where to get help for Kubuntu

A great spot for help is the Kubuntu Forums. I use it every time I have a problem. A useful thing to do is to take a screenshot of the problem (using KSnapshot under K Menu→Graphics), upload it to a photo hosting site, then link to it in the forum post. Another good forum is LinuxQuestions.org. It is bigger, so you’ll get more people helping you. There’s also some documentation from the official Kubuntu site. You can chat with others for help at via IRC at #kubuntu on irc.freenode.net using Konversation (K Menu→Internet→Konversation, see figure 4). Psychocats has some good beginner guides, though most of the screenshots are from Ubuntu not Kubuntu. Lastly, you can always Google the question.

Figure 4: Using Konversation to connect to the #kubuntu channel at irc.freenode.net.Figure 4: Using Konversation to connect to the #kubuntu channel at irc.freenode.net.

A great spot for help is the Kubuntu Forums

Want to install more programs? Clicking on Add and Remove in the K Menu will show all the software you have installed, and show some you can get. There’s a handy guide to installing stuff in Ubuntu over at the Monkey Blog, and it works for Kubuntu users too.


Congratulations! You now have a Kubuntu and Windows system up and running. Now, help others do the same thing. Print this article and show your friends. Install Kubuntu for them. Do a video tutorial of installing Kubuntu and put it on YouTube (or put it on Revver and make some dough while you’re at it). Blog (or write for Free Software Magazine) about your experience. Become a GNU/Linux evangelist. Help others in forums.

In most countries selling harmful things like drugs is punishable. Then how come people can sell Microsoft software and go unpunished?—Hasse Skrifvars



Shannon_VanWagner's picture

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

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 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

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


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.


skypjack's picture
Submitted by skypjack on

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

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
Submitted by skypjack on

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 ... :-)

Author information

Andrew Min's picture


/ˈændruː/ /mi:n/
(n): a Christian.
(n): a student.
(n): a technology enthusiast.
(n): a journalist for several online publications.

Andrew Min is a student, programmer, and journalist from New York City.

My main forte in the technology realm is journalism. I’ve written for a variety of magazines, both print and non-print, with a focus on open source software and the new web. I’ve also been interviewed on a long list of topics, ranging from politicians on Twitter to open source software and homeschooling.

I also have experience with a variety of programming languages (Bash, Batch, CSS, JavaScript, PHP, and (X)HTML) and content management systems (WordPress). I’ve been hired to design and administer several websites. In addition, I’ve been the lead programmer on several small coding projects.

privacy policy