Introduction: How to Dual-boot Linux and Windows (on a PC With Windows 7 Already Installed)

Picture of How to Dual-boot Linux and Windows (on a PC With Windows 7 Already Installed)

The purpose of this Instructable is to set up your computer to dual-boot Windows 7 and Ubuntu Linux. Dual-booting is a technique which allows a single physical computer to run two or more operating systems (OSes). This is useful for experimenting with new OSes without putting all your eggs in one basket.

Step 1: Getting Prepared

Picture of Getting Prepared

Prerequisites:
1. A PC running Windows 7, with at least 30 GB of free hard-drive space.
2. A CD/DVD burner and blank CD/ DVD or a USB drive with a capacity of 1GB or more
3. An external Harddrive big enough to backup your Windows installation
4. Administrative access to the PC
5. Internet Connectivity

Most PCs sold in the last three years should meet the criteria for number 1. To confirm what version of Windows you are running, go to My Computer and click on “System properties.” The listed version should be Windows 7.

From that same screen, you should see how much free space you have left, which is underneath the blue bar for each disk. In the example image, there is "8.49 GB free of 55.7GB".

NOTE:The 8.49GB shown in the example is not enough space for most people. While you can install Ubuntu to a partition this size, you will typically want more space store documents and applications. 20GB is probably the minimum size you would want.

Step 2: Select a Linux Distro

Picture of Select a Linux Distro

Linux comes in many flavors. Some distributions are aimed at full configurability for advanced users (Arch Linux, Gentoo), others at fulfulling simple hardware requirements (Puppy Linux, DSL), while others aim at being as easy to use and accessible as posible (Mint, Ubuntu). These different flavors, or distributions, are commonly called “distros” by the Linux community. There are hundreds if not thousands of distros available, if you're curious go to http://distrowatch.com/ and compare. However, int this instructions set, we will use Ubuntu Linux. Ubuntu is one of the most widely used Linux distros and has a very helpful community and good user interface for new users.

 

Step 3: Prepare Installation Media

Picture of Prepare Installation Media

Go to the ubuntu website, http://www.ubuntu.com/ and select download. As of this writing, the current version of Ubuntu is 12.04. Depending on your internet connection, the ISO download may take a while. The 32-bit version should be sufficient unless you are running specific applications that require a 64-bit variant of the OS.

ISO files are disk images which have been stored for easy distribution and replication.

After the ISO has downloaded, navigate to the folder it was downloaded to. Right-click and choose “Burn disk image.” This will launch a tool to burn the image to a CD or DVD. Once the disk is burned, remove it from the disk drive and label it for your future reference.


Alternatively, if you want to use a USB drive, you'll need the program "UNetbootin" which is available here: http://unetbootin.sourceforge.net/

WARNING: Be sure to backup your USB data before running UNetbootin, as it will reformat the drive and destroy any data previously on the USB drive.

Step 4: Backup Windows

Picture of Backup Windows

This is perhaps the most important step. If anything goes wrong with the next few steps, this will allow you to restore your computer to its current state. You will need an external hard drive or enough disk media to hold your files. If you have already backed up your system, you can either update your backup or proceed to the next step.

If you have never backed up your computer, now is the perfect time to start.You can find a decent external hard drive for around $60. Try http://www.newegg.com or http://www.tigerdirect.com, or your local compouter store. Alternatively, you can use an online subscription-based backup service such as Mozy.com or Carbionite.com to aviod purchasing and setting up hardware.

To use the Windows backup, open the start menu, type “backup” and select “backup and restore.” This opens the backup and restore center. Choose “set up backup” and follow the wizard to create your first windows backup.

Step 5: Partition the Hard Drive

Picture of Partition the Hard Drive

 The safest and simplest way to partition your drive is to use the Windows 7 “Disk Management” program, to shrink your existing windows partition. To access this program, click the Windows icon in the bottom left and in the text box which says “Search programs and files”, type in “Disk Management” (without quotes) in this box, and press enter.

In the new window that pops up, you’ll be able to see all of your partitions. In windows, these are typically labeled with letters, such as “C:” or “D:”. Check your partitions - there are two common setups. Either you will have one very large drive (“C:”) or you will have a smaller drive for your operating system (“C:”) plus a larger one for data or programs (“C:”).

On your larger partition, ensure that at least 30GB of free space available. Next, right click on this drive and select “Shrink Volume.” It will take a little while for windows to analyze available free space, so be patient. Next, it asks how many MB you would like to shrink your volume. For a typical Linux OS install 30GB should be plenty if you’re not planning on using it to store large files such as movies. So, to shrink by 30GB, convert this to MB (multiply 30 x 1000) and enter this value (30000) into the appropriate field. Next, click “Shrink”.

You should now see a black bar which says "Unallocated" underneath (see picture 2). If you see this, you are ready to go, and can close the Disk Management window.

Step 6: Boot From Removable Media

Picture of Boot From Removable Media

Note, this step will vary slightly depending you your computer’s make and model.

If your computer’s documentation makes reference to an option to change the boot order, use that method to set the computer to boot from the disk drive or USB drive, depending on what media you used in step three. Reboot and boot into the Linux media, and proceed to step seven.

If you cannot find such a reference, you will need to alter the boot order via BIOS. BIOS stands for Basic Input Output System. It is a low-level environment the computer goes to before it loads the operating system. From here, many variables relating to the system’s hardware can be modified, so it is important not to make accidental changes as they may have dramatic effects on the computer as a whole.

Reboot the computer. As it powers up, watch for a screen which says “Settings” or something similar. You will need to press one of the function keys, usually F5 or F12. This will get you into the system’s BIOS and allow you to change the boot priorities.If you miss BIOS, the system will continue booting as usual. If you end up in Windows, shut down and try this step again.

Using the keyboard, navigate in BIOS to “boot options” and select the primary boot device to be the CD drive or USB media, depending on what you burned the ISO to in the previous step.

Save your changes, insert the media into the drive, and reboot.

Step 7: Install OS

Picture of Install OS

Next, select "Try Ubuntu without Installing".

From here you can explore and get used to Ubuntu, as well as confirm that your network connections are working. If for some reason they do not work (you cannot access the internet), please consult official Ubuntu documentation, as these settings may vary based on your system.

Official Documentation about troubleshooting networking:
https://help.ubuntu.com/12.04/ubuntu-help/net-problem.html

Otherwise, If you're ready to proceed, simply double-click the "Install Ubuntu" icon on the desktop to enter the install wizard. Choose your installation language, then on the next screen check the box that says "Install this third-party software". This software is necessary to use MP3s.

From that point, follow the defaults in the install wizard. Be sure that when it asks you where you want to install Ubuntu, you select the option to install side-by-side with your other OS, using the free space available. Continue installing until you receive a message that your installation is complete. It may take a while to get to this point so please be patient. When it's down, shutdown your computer and remove the installation media. When you boot back up, you should have a choice between Ubuntu Linux or Windows!

Step 8: Change Boot Device (again)

Picture of Change Boot Device (again)

If you changed the device boot order in the step six, you will need to repeat that process here. Set your BIOS boot order such that once again the hard drive is the primary boot device.

Note that if you skip this step, your system will try to load an operating system from removable media before looking for Windows. If there is not a disk in the drive, it should proceed to boot into Windows.

Step 9: Reboot and Configure

Picture of Reboot and Configure

Upon bootup, you will now see a choice between Windows and Ubuntu Linux. Go ahead and select Linux, and get yourself familiarized with this great OS. There is a ton of documentation available to help you get used to the difference between Windows and Linux.

One simple source you might want to look at right away is at: https://help.ubuntu.com/community/SwitchingToUbuntu/FromWindows

Between its graphical user interface (GUI), command-line interface (CLI), hundreds of free open source applications, and a hugely active and supportive community, Linux has a lot to offer a would-be Windows convert.

Step 10: Perfecting Your Ubuntu Install (Optional)

Picture of Perfecting Your Ubuntu Install (Optional)

Lastly, if you decide to make Linux your primary operating system for daily use, you can set your system to boot into Ubuntu rather than Windows by default. Alternatively, to stay with the familiar Windows OS, the community offers a how-to for that as well. For any error or topic not covered in this guide, an answer can most likely be found in the forums.

Congratulations, you now have a PC dualbooting Windows 7 and Ubuntu Linux.

To change default boot OS to Windows:
https://help.ubuntu.com/community/GrubHowto/ChangeDefaultOS

Help with hardware configurations:
https://help.ubuntu.com/community#Hardware

Ubuntu Community Forums (If you need additional help, this is the place to ask!)
http://www.ubuntuforums.org/

Comments

spariscoff (author)2017-10-29

I followed the instructions and it works, I am somewhat computer savvy, the system that I placed Linux os on I built from scratch and had win 7 pro installed now both os's are operating well

JelleS2 (author)2017-08-04

So it didnt work for me, i could only boot into windows 7.

Then i found out i had to update GRUB.

To do this, boot in ubuntu, open the terminal (ctrl-alt-T)

then type: sudo update-grub

type in your user password

and then you have windows in your bootloader :)

Spunky Pear (author)2017-03-13

does it have to be windows 7 because i did this on vista.

Spunky Pear (author)BrookeqwmB2017-03-13

after installing ubuntu i chose to boot up windows to make sure i didnt stuff anything up but when i chose windowd it showed the loading windows screen, the screen went black for a bit, then booted into ubuntu. i only tested this once but im worried my windows is gone.

pls reply someone.

thanks.

Spunky Pear (author)Spunky Pear2017-03-13

just checked again and everything is fine.

tinman20 (author)2017-01-25

could you boot mac os as well?

StevenM251 (author)tinman202017-02-15

Yes. Mac uses the same architecture as an Intel PC so you'll have to be using a system with an Intel processor. Just search Instructables... I'm sure they have a how to somewhere. =)

RohanM39 (author)2016-08-23

can i use ubuntu via USB directly? Or is it mandatory to install Ubuntu on my pc??

MattiasG1 (author)RohanM392017-01-23

Some linux dist allowes LIVE version of the OS, but i recommend installing it to the hard drive and dual boot

Ephraimthegreat (author)2015-02-01

Upon bootup, you will now see a choice between Windows and Ubuntu Linux.

I dont see this!

While booting go to the bios and choose, it can be accessed by pressing F10 in most pcs.

ValentinT11 (author)2016-07-02

Only 10 steps? I am sure, you can make 100 easily!

themhs65 (author)2016-06-24

Good job pal...I did it many times in the past and everything went well for simple use. The troubles are when you need something "more" from your PC. This solution is excellent when you want an OS to surf the internet more secure because of Virus absence or at least minor presence Congrats for your efforts to build a white paper for the masses!!!!! Best regards from Greece

SandeepK122 (author)2016-06-06

Hi,

I used the USB option and even after putting USB up in the order in BIOS I am getting Missing Operating System error. Can someone help?

DilawarN2 (author)2016-05-07

Really helpful. Thanks

Also visit www.freep360.com

AndrewF75 (author)2016-02-24

Really a helpful article I've found.

Oh, I've also an updated version here: http://www.howtouselinux.net/dual-boot-linux/

ЗоранЈ (author)2016-02-18

The first was installed UBUNTU 15.10, now I want to install windows afterwards as dualboot can help a friend?

UwgvpwigpB (author)2016-02-16

I just got a product key from www.vinhugo.com. it worked perfectly. I'm so excited to share my experience here.their customer service is 1st class and I will definitely be recommending the site and I will be using the site again.

Redwan Nayeem (author)2015-10-11

lol

Muhammad HassaanB (author)2015-08-31

Another method During Installation :

(tested my self) it worked for me

http://mineconsensus.blogspot.com/p/blog-page.html

ReyK2 (author)2015-07-05

Thank you for your sharing, it is great, i would like to share my experience with you too, i got a key in a web, it is genuine and good-working, especially it only cost me a little money, recommended you, wish you good luck. www.aakeys.com

aman.batra.35 (author)2014-10-07

i followed the instructions but now i am left only with ubuntu, step 9 is not taking place(i.e. i am not having any option, automatically ubuntu starts) please help...

JayminJ (author)aman.batra.352015-02-06

Same happened with me, then i tried this tutorial http://www.searchithow.com/2015/02/how-to-install-...

Worked like a charm :)

technogeekjam (author)JayminJ2015-04-28

Sorry for the link.. Here is the updated link : http://www.syjj.in/2015/02/how-to-install-ubuntu-dual-boot.html

black.bird.1884 (author)2015-03-11

Greetings you intelligent lot !

Although I am somewhat advanced Win OS user I am and utter and complete rookie in LINUX-UNIX domain so I apologize in front for my pretty basic question(s) . I'm attempting to set up Win7 and LINUX dual consoles and while the size on HDD isn't an issue - the speed of future perfomance is. I need it ( LINUX console ) to be fast and friendly in terms of allowing the antiviral/firewall and IP - cloak's to function - in full extent. So my first question is ; '' Which LINUX console version would be the best ( since I can see there are literally hundred's of different Lite and 'Heavy' console versions ) installation for this concept. Thank you for sharing your knowledge with me and the rest of the world - in forward. Ok, that's it for (my) beggining - thinking - I have to start somewhere and this seem' s to be a good place for this, new learning phase.

@black.bird.1884

I'm almost the exact opposite of you.

First: linux is a kernel, OS is built around it. I have no idea what one you should use but I think CentOS minimal install might be what you're looking for.

Also: Anti-viruses do exists for linux, I think more exist for the RedHat family of OS's has the most options but all should have at least one. firewalls, if by firewalls you mean simply blocking traffic. You may actually find them unnecessary. are pre-installed but usually disabled in all linux distros. Look for tutorials for "iptables". Most of all have patience. Its difficult but fun.

JayminJ (author)2015-02-06

Please make your tutorial a little clear as i lost all partitions following this tutorial, so i tried

http://www.searchithow.com/2015/02/how-to-install-... and it worked liked a charm (:

Ephraimthegreat (author)2015-02-01

Upon bootup, you will now see a choice between Windows and Ubuntu Linux.

I dont see this!
TadasJA (author)2015-01-12

I think it is important to mention that you must install older OS first and then install a more recent one, which nowadays is mostly installing Windows 7 first and THEN Linux, I'm not sure with Windows 8.1, I don't own it thus I can't speak for it. If you install Linux last you get the option of which OS you want to run, otherwise you will default your machine to Linux or even worse - won't be able to boot at all.

xebm (author)2014-12-28

Change Default Operating system startup in Multiboot Windows

http://itrepairguide.com/change-default-operating-system/

rayliving (author)2014-12-07

awesome tutorial.

KemalÇ (author)2014-11-04

is this a joke

aman.batra.35 (author)2014-10-07

i followed the instructions but now i am left only with ubuntu, step 9 is not taking place(i.e. i am not having any option, automatically ubuntu starts) please help...

Dannyftm (author)2014-09-14

VMWare Player is free for non-commercial use and works for Virtual Machines (it cannot do .iso files)

russ_hensel (author)2014-01-09

This is fine as far as it goes, but if you have a reasonably large machine you should look into running ubuntu under windows in a virtual machine. This lets you run both at the same time. One way is to search instructables for "virtual box". This is an easy process.

Computothought (author)2012-06-16

Wait till uefi becomes standard. We will really be cut off. The public needs to boycott such machines.

About This Instructable

1,952,261views

83favorites

License:

More by stephftw:How to Dual-boot Linux and Windows (on a PC with Windows 7 already installed)
Add instructable to: