Install Ubuntu In Windows 7

Posted on by admin
Active7 months ago

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this?

How To Install Ubuntu On Windows 7 mwm-aal-display Hello everyone, on this page you will learn how to install Ubuntu on Windows with Wubi. Before we begin, let’s first learn a little bit on what is Wubi and how it works with your Windows 7 operating system. Ubuntu should load into the little window and you will have the option to try Ubuntu or install Ubuntu. Click on the Install Ubuntu option. Check Your Virtual Machine Meets the Pre-Requisites. Install Windows 7 from Ubuntu. Ask Question Asked 7 years, 5 months ago. Active 7 years, 4 months ago. Viewed 693 times 1. I need to install Windows 7 on an Ubuntu PC (and remove Ubuntu), but this PC doesn't have any CD reader. Then from the Windows install menu, you can easily format the whole drive and install Windows as a single.

I can't lose my Ubuntu files, and I'm afraid that I might break GRUB.

Go here for UEFI only!

Fabby
29.4k18 gold badges71 silver badges174 bronze badges
Sk8erSk8er
1,6494 gold badges18 silver badges26 bronze badges

16 Answers

Here's the general outline:

  1. Make space for Windows
  2. Install Windows
  3. Mount the /boot directory or partition
  4. Install the bootloader (GRUB)

Open up GParted, and make sure that you have at least 20 GB available for Windows 7, either as a partition you can remove, or as unpartitioned space. If it's a partition, remove it from GRUB to make sure it doesn't break your Ubuntu install — GParted will complain if anything bad is about to happen.

Make note of current /boot device. If that doesn't show up there, make note of the / device. The device name is something like sda5.

Install Windows 7 into the space you just made

Note: Instead of mounting the boot directory or partition from the installation in the live media environment you can specify the path with the --boot-directory parameter for grub-install, more information on the manpage.

Load up from your Ubuntu live CD, and then run these commands.

  • If you DO NOT have a separate /boot partition:

  • If you have a SEPARATE /boot partition:

Note: These instructions were initially written for Windows 7 and BIOS booting computers. If you have UEFI and Windows 8 and above you probably need to replace grub-pc with grub-efi-amd64 in sudo apt-get install grub-pc.

Then continue with those commands:

And restart. It should work fine and boot both systems.

Scott Stensland
6,1895 gold badges30 silver badges47 bronze badges
evgenyUltimateevgeny
7,3922 gold badges20 silver badges27 bronze badges

Installing Windows after Ubuntu is not the recommended process for a dual boot Windows and Ubuntu system, but it is possible.

  • First, you have to make sure that the 50GB free space is available, resizing your Ubuntu by using gParted if necessary.
  • Also use gParted or Disk Utility to format the the free space as NTFS, this prevents Windows 7 from creating an additional boot partition in addition to the 'C' drive.
  • Next, boot to the Windows DVD installer and install Windows on the NTFS partition. Upon reboot, Windows will automatically boot and you won't see the grub menu allowing you to choose Ubuntu, because the Windows bootloader has replaced grub.

  • Now, what you need to do is run Ubuntu from LiveCD or LiveUSB and installboot-repair.

  • To install boot-repair, open up a terminal by pressing Ctrl+Alt+T and type the following commands:

  • After installation, boot-repair will automatically launch, if is doesn't, launch it via Dash.

  • Make sure to select recommended repair to repair grub. Reboot and that's it.

  • You should now have a Grub menu on boot, allowing you to choose from Ubuntu, memtest, and Windows 7
ish
120k35 gold badges278 silver badges297 bronze badges
PeachyPeachy
5,3927 gold badges30 silver badges44 bronze badges

boot-repair did a really good job launched from a live-usb, by just applying the recommended option.

QuesstQuesst

When you boot have you checked the boot order on your BIOS? If you're booting straight to the hard drive it will always miss the USB. You need to move the USB device boot option higher in the priority list.

Also check that your computer allows you to boot from USB in the USB port you are using.

SlipstreamSlipstream
9291 gold badge9 silver badges26 bronze badges

To install Windows you need an empty partition that will be dedicated to Windows. If you do, then go ahead and install on this using the normal installation procedure. After installation, reboot into Windows and reboot a few times more to experience Windows ;-) (sorry, couldn't resist)

Like you said, this will break GRUB and your computer can only boot Windows after this. Do not despair, as there is a help section dedicated to restoring GRUB and being able to dual boot. Look here. After performing this, your computer will be able to boot Ubuntu as well as Windows.

Before you start, very very carefully note down the location (hard drive number, make & partition number within that) of the current Ubuntu install (which you don't obviously want to overwrite) and the empty partition in which you want to install windows. Also, during Windows installation, if it offers to format any partition other than the one you are installing Windows into, please do not accept.

Peter Mortensen
1,0252 gold badges11 silver badges17 bronze badges
koushikkoushik
3,6913 gold badges21 silver badges32 bronze badges

In case your computer came with a pre-installed copy of Windows 8 and you removed it because to many people told you to hate it and you found that after you installed Ubuntu, that it isn't what you want, note this:

Your computer boots with UEFI and has a GPT partition table.

For installing Windows 7, either create and boot the Windows 7 installation media in UEFI-mode or set boot-mode and partition table to legacy.

LiveWireBTLiveWireBT
22.6k20 gold badges73 silver badges163 bronze badges

First, you have to boot with a live CD/USB stick and shrink your partition in order to create a second one. Windows 7 requires and creates a second partition which is called 'system reserved'. I don't know why, but it does. (So you will end up with three partitions or four if you have a swap partition.)

When your partition is ready, just boot with your Windows 7 DVD/USB stick and install Windows 7 on the new partition.

Download limbo pc. Just info, Limbo Game PC was released in 2010 for the Xbox 360 platform, but also eventually released for the PC, PlayStation 3, Mac OS X, OnLive, PS Vita, and iOS.

When Windows 7 has been installed, GRUB will break and you will only be able to boot Windows (automatically). Just boot with a live Ubuntu CD/USB stick and fix it (how it is mentioned in other comments).

Now another issue that some users may face:

I own an HP Mini 210 netbook which came with Windows 7. I erased everything and installed Ubuntu. Later on I decided to also reinstall Windows 7 and have a dual boot (needed Windows for a specific application from my university which wouldn't run through wine). At that time I had three partitions:

Now when I tried to install Windows 7 I faced a problem because Windows 7 needs to create a second primary partition (system reserved). I already had three partitions and therefore was unable to create two more. The workaround here is to create an extended partition in which you will include both swap and backup storage. Now I have:

Peter Mortensen
1,0252 gold badges11 silver badges17 bronze badges
AntonisAntonis

This answer covers UEFI-only, and is meant to be a bit of a more modern answer as UEFI has succeeded the ancient BIOS. Also, there are some edits here to fit the fact it's answering a 'how I do this' rather than a 'can I do this' type of question.

To install Windows alongside Ubuntu, you just do the following:

  1. Insert Windows 10 USB
  2. Create a partition/volume on the drive to install Windows 10 on alongside Ubuntu (it'll create more than one partition, that's normal; also make sure you have space for Windows 10 on your drive, you might need to shrink Ubuntu)
  3. Install the Windows 10.

That's it!

Note: when making sure things are ready for your dual boot, check if Ubuntu is installed in the GPT partition table! While 99% of the time you will be using GPT if you're planning to do this, it is possible to install Ubuntu's UEFI on MBR but Windows 10 does not support that strange use-case. In that situation, convert to GPT if possible. If not, backup and reinstall, and I'd recommend that as it'll be easier.

Fabby
29.4k18 gold badges71 silver badges174 bronze badges
RoundDuckManRoundDuckMan

The most save way is to install Windows 7 first and to reinstall Ubuntu after that. This will ensure that grub works.

You can also edit your partitions with a live cd, and then install Windows 7. When you have done this you boot into Ubuntu with a live cd and restore grub. This procedure however, is a bit more delicate than just installing them in the right order.

Peter SmitPeter Smit
4,6027 gold badges35 silver badges47 bronze badges

One good advice: When you make the separate partition for Windows 7, using gparted for example, format it to the NTFS right away. Do not use Windows installer to format the partition, because several times I had a situation, when the Windows installer corrupted the partition table after that and I had to restore the lost partition.So, as the people recommended here: using gparted, create separate partition, format it to the ntfs, install windows there, then restore grub using livecd or liveflash. You can use the SystemResqueCD for liveflash.

Yuriy TkachYuriy Tkach

Basically the same answer as @evgeny, but using chroot instead of a symbolic link.

  1. Boot into a Ubuntu LiveCD
  2. Open GParted and make sure you have an unused partition with at least 20GB free space. This will be your Windows 7 partition.
  3. Install Windows 7 onto this partition.
  4. Boot into a Ubuntu LiveCD
  5. Make a note of the partition Ubuntu is installed on and any separate /boot partitions if applicable.
  6. Mount your Ubuntu installation

  7. Give this partition internet access

  8. Only if you have a seperate /boot partition, otherwise skip this step

  9. Set up then enter chroot

  10. Make sure grub-pc is the latest version

  11. Install GRUB

  12. Exit chroot

  13. Reboot and check if it works
kirikiri
20.6k15 gold badges61 silver badges106 bronze badges

I suggest you virtualize Windows 7 with something like VirtualBox (http://www.virtualbox.org)

This way you can run Windows and Linux at the same time, without the chance of destroying you Bootloader Grub.

I don't know why you want to run Windows 7, but if you don't need the full hardware capacity (Running the Latest 3D Games for example) of your computer for windows then virtualization can be a good solution.

Niels van ReijmersdalNiels van Reijmersdal
  1. Turn on or restart the computer.
  2. While the display is blank, press the F10 key to enter the BIOS settings menu.
    NOTE: The BIOS settings menu is accessible by pressing the F2 or the F6 key on some computers.
  3. Select the Advanced tab using the right and left arrow keys.
  4. Press Enter.
  5. Use the up and down arrow keys to select Boot Order.
  6. Follow the on-screen instructions to change the boot order so that USB is at the top
  7. Press Esc.
  8. Select the Exit tab using the right and left arrow keys.
  9. Press Enter.
  10. Press Enter.


Reboot..

user92200

Installing windows after ubuntu is a pain but after you do this you'll need to put in your ubuntu live cd and install boot-repair and run that. Becouse installing win7 after ubuntu will break grub. But, boot-repair will remedy that!

jamiejamie

Its a easy process to install dual OS. 1st create a NTFS partition from Ubuntu using Disk Utility. Then restart your system and continue with your windows installing. After finishing installing you can see that your GRUB is not working... NOT A PROBLEM. I have two method to fix this GRUB problem.

[Method 2] It may be bit difficult. Don't worry i have also a easy one. For that you have to login into windows. Download EasyBCD and run it. Go to Edit Boot Menu and set your desired boot option as default. Then save it and reboot your system. [Tested under windows].

Please let me know if you stack in something.

Community
ScareCrowScareCrow

I had Ubuntu on my computer with only half of the drive used. Then I used Acronis to restore my Windows partition (C and W partitions).

Now I want to make a dual boot. All of the instructions above assume you have a Windows 10 CD to install Windows (I don't because I upgraded from Windows 7).

Would just using boot-repair make this a dual boot system?

eddyqeddyq

protected by CommunitySep 1 '14 at 21:21

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged dual-bootwindowssystem-installation or ask your own question.

This guide will show you how to dual-boot Windows 7 and Ubuntu Linux by incorporating screenshots alongside clear and concise steps.

The steps for booting Ubuntu alongside Windows 7 are as follows:

  1. Take a backup of your system.
  2. Create space on your hard drive by Shrinking Windows.
  3. Create a bootable Linux USB drive / Create a bootable Linux DVD.
  4. Boot into a live version of Ubuntu.
  5. Run the installer.
  6. Choose your language.
  7. Make sure you are plugged in, connected to the internet and have enough disk space.
  8. Choose your installation type.
  9. Partition your hard drive.
  10. Choose your timezone.
  11. Choose your keyboard layout.
  12. Create a default user.

Take a Backup

This is probably the least interesting but most important step in the whole process.

The piece of software I recommend using for backing up your system is Macrium Reflect. There is a free version available for making a system image.

Bookmark this page and then follow this link for a tutorial showing how to create a system image using Macrium Reflect.

Create Space on Your Hard Drive

You need to make some space on your hard drive for the Linux partitions. To do this you have to shrink your Windows partition via the disk management tool.

To start the disk management tool click Start and type diskmgmt.msc into the Search box and then press Return.

Here's how to open the disk management tool if you need more help.

Shrink the Windows Partition

Windows is likely to be on the C: drive and can be identified by its size and the fact it has an NTFS partition. It will also be the active and boot partition.

Right-click on the C: drive (or the drive that contains Windows) and choose Shrink Partition.

The wizard will automatically set the amount that you can shrink the disk by without harming Windows.

Before accepting the defaults consider how much space Windows might need in the future. If you plan to install further games or applications it might be worth shrinking the drive by less than the default value.

You should allow at least 20 gigabytes for Ubuntu.

Choose how much space you want to set aside for Ubuntu including creating space for documents, music, videos, applications and games and then click Shrink.

How the Disk Looks After Shrinking Windows

The above screenshot shows how your disk will look after you have shrunk Windows.

There will be unallocated space set to the size that you shrunk Windows by.

Create a Bootable USB or DVD

A decision you have to make is whether to download the 32-bit or 64-bit version. Quite simply if you have a 64-bit computer choose the 64-bit version otherwise download the 32-bit version.

  1. Right-click on the downloaded ISO file and choose Burn Disc Image.
  2. Insert a blank DVD into the drive and click Burn.

If your computer doesn't have a DVD drive you will need to create a bootable USB drive.

The easiest way to create a bootable USB drive for non UEFI drives is to download the Universal USB Installer.

  1. Run the Universal USB Installer by double-clicking on the icon. Ignore any security message and accept the license agreement.
  2. From the dropdown list at the top choose Ubuntu.
  3. Now click Browse and find the downloaded Ubuntu ISO.
  4. Click the dropdown menu at the bottom to select your flash drive. If the list is blank place a check in the Now Showing All Drives checkbox.
  5. Choose your USB drive from the dropdown list and check the format drive box.
  6. If you have any data on the USB drive that you want to keep copy it somewhere safe first.
  7. Click Create to create the bootable Ubuntu USB drive.

Boot Into Live Ubuntu Session

Read this step fully before rebooting your computer so that you can get back to the guide after booting into the live version of Ubuntu.

  1. Reboot your computer and leave either the DVD in the drive or the USB connected.
  2. A menu should appear giving you the option to Try Ubuntu.
  3. After Ubuntu has booted into the live session click the network icon in the top right corner.
  4. Choose your wireless network. Enter a security key if one is required.
  5. Open FireFox by clicking the icon in the launcher on the left side and navigate back to this guide to follow the remaining steps.
  6. To start the installation, click the Install Ubuntu icon on the desktop.

You can now move onto Choose Your Language (below).

If the menu doesn't appear, follow Troubleshooting steps (below).

Troubleshooting

If the menu doesn't appear and the computer boots straight into Windows you need to change the boot order on your computer so that the DVD drive or USB drive is booted before the hard drive.

Tochange the boot order restart the computer and look for the key that you need to press to load the BIOS setup screen. Generally, the key will be a function key such as F2, F8, F10 or F12 and sometimes it is the escape key. If in doubt either search on Google for your make and model.

After you have entered the BIOS setup screen look for the tab that shows the boot order and switch the order so that the method you are using to boot Ubuntu appears above the hard drive. (Again if in doubt look for instructions for amending the BIOS for your particular machine on Google.)

Save the settings and reboot. The Try Ubuntu option should now appear. Go back to Boot Into Live Ubuntu Session and repeat that step.

If you ever need to start from scratch, by the way, you can use this guide to uninstall Ubuntu software packages.

Choose Your Language

Choose your language and then click Continue.

Connect to the Internet

You will be asked whether you want to connect to the internet. If you followed Shrink the Windows Partition correctly then you should already be connected.

At this point, you might want to choose to disconnect from the internet and select the option I don't want to connect to a wi-fi network right now.

This all depends on your internet connection speed.

If you have a great internet connection stay connected and click Continue.

If you have a poor internet connection then you might choose to disconnect otherwise the installer will attempt to download updates as you go along and this will lengthen the installation process.

If you decide not to be connected to the internet then you will need another way to read this guide — a tablet, or another computer perhaps.

Preparing to Install Ubuntu

Before you continue with the installation you will receive a checklist to show how well prepared you are for installing Ubuntu as follows:

  • Do you have at least 7.1 gigabytes of hard drive space?
  • Are you connected to a power supply?
  • Are you connected to the internet?

You can get away without being connected to the internet as discussed earlier.

There is a checkbox at the bottom of the screen which lets you install third party software for playing MP3s and watching Flash videos. It is entirely optional as to whether you choose to check this box. You can install the necessary plugins after the installation is complete by installing the Ubuntu Restricted Extras package and this is my preferred option.

Choose Your Installation Type

The Installation Type screen is where you get to choose whether to install Ubuntu on its own or whether to dual boot with Windows.

  • Install Ubuntu Alongside Windows 7.
  • Erase Disk And Install Ubuntu.
  • Something Else.

It is perfectly acceptable to choose the Install Ubuntu Alongside Windows 7 option and click Continue.

If you choose to do this move on to Write Changes to Disks.

On the next screen, I will show you how to create multiple partitions to separate your Ubuntu partition from your home partition.

There are two checkboxes on the installation type screen. The first one allows you to encrypt your home folder.

There is a common myth that a username and password is all you need to secure your data. Anybody who has access to your physical machine can get at all the data on the hard drive (whether you use Windows or Linux).

The only real protection is to encrypt your hard drive.

Create Partitions Manually

This step has been added for completeness and isn't entirely necessary. I find it nice to have separate root, home, and swap partitions as it makes it easier for replacing the version of Linux and when upgrading your system

  1. Choose the free space and click on the plus symbol.
  2. Choose the logical partition type andset the amount of space that you wish to give to Ubuntu. The size you give to the partition will depend on how much space you have to start with. I chose 50 gigabytes which is a bit of overkill but leaves enough room for growth.
  3. TheUse As dropdown lets you set the file system used. There are lots of different file systems available for Linux but in this instance stick with ext4. Future guides will highlight the available Linux file systems and the benefits of using each one.
  4. Choose / as the mount point and click OK.
  5. When you are back at the partitioning screen, find the remaining free space and click on the plus symbol again to create a new partition. The home partition is used to store documents, music, videos, photos and other files. It is also used to store user specific settings. Generally, you should give the rest of the space to the home partition minus a small amount for a swap partition.

Swap partitions are a contentious subject and everybody has their own opinion as to how much space they should take up.

Install Ubuntu On Windows 7 N

Make your home partition use the rest of the space minus the amount of memory that your computer has.

For example, if you have 300000 megabytes (i.e 300 gigabytes) and you have 8 gigabytes of memory enter 292000 into the box. (300 - 8 is 292. 292 gigabytes is 292000 megabytes)

  1. Choose a logical partition as the type.
  2. Choose the beginning of this space as the location. As before EXT4 can be selected as the file system.
  3. Now select /home as the mount point.
  4. Click OK.

The final partition to create is the swap partition.

How To Install Ubuntu In Windows 7 Using Cd

Some people say you don't need a swap partition at all, others say that it should be the same size as memory and some people say it should be 1.5 times the amount of memory.

The swap partition is used to store idle processes when memory is running low. Generally speaking, if there is a lot of swap activity going on then you are thrashing your machine and if this is happening regularly you should maybe think about increasing the amount of memory in your computer.

The swap partition was important in the past when computers used to frequently run out of memory but nowadays unless you are doing some serious number crunching or video editing it is unlikely that you will run out of memory.

Personally, I always create a swap partition because hard drive space isn't that costly and should I ever decide to make a huge video that uses up all my available memory then I will be glad that I created that swap space rather than letting the computer crash unceremoniously.

  1. Leave the size as the rest of the disk and change the use as box to Swap Area.
  2. Click OK to continue.
  3. The final step is to choose where to install the bootloader. There is a dropdown list on the installation type screen which lets you choose where to install the bootloader. It is important that you set this to the hard drive where you are installing Ubuntu. Generally speaking, leave the default option of /dev/sda.
    Note: Do not choose /dev/sda1 or any other number (i.e. /dev/sda5). It has to be /dev/sda or /dev/sdb etc depending where Ubuntu is being installed.
  4. Click Install Now.

Write the Changes to Disks

A warning message will appear stating that partitions are about to be created.

This is the point of no return. If you haven't made a backup as stated in step 1 consider choosing the Go Back option and canceling the installation. Clicking Continue should only install Ubuntu to the space created in step 2but ifany mistakes have been made there is no way to change it after this point.

Click Continue when you are ready to install Ubuntu.

Choose Your Timezone

Choose your timezone by clicking where you live on the map provided and click Continue.

Choose Keyboard Layout

Choose your keyboard layout by selecting the language in the left pane and then the physical layout in the right pane.

You can test the keyboard layout by entering text into the box provided.

The detect keyboard layout button attempts to match your keyboard automatically.

Tomtom app windows. If you have recently updated to Windows 10, or your new Windows 10 computer, laptop or notebook fails to recognize your old devices, you also need to update all TomTom drivers in order to fix these problems on Windows 10 which relate to your TomTom hardware. Fix TomTom Windows 10 Driver ProblemsOn Windows 10, not all TomTom drivers and updates are available through the built-in Windows Update feature. That's why it is important to check the TomTom website for drivers or to use DriverGuide to keep up with the latest drivers for your devices.Below is a list of the latest and most popular Windows 10 TomTom driver downloads. Others have seen generic messages such as Windows 10 cannot load the drivers or they are experiencing problems connecting to WiFi or the internet.The problem is that all connected devices, including TomTom devices, need updated drivers to work properly under Windows 10. DriverGuide maintains an archive of TomTom Windows 10 drivers available for free download.

After you have chosen your keyboard layout click Continue.

Add A User

A default user needs to be set up.

Ubuntu doesn't have a root password. Instead, users have to be added to a group to enable them to use 'sudo' to run administrative commands.

Steps To Install Ubuntu In Windows 7

The user created on this screen will automatically be added to the 'sudoers' group and will be able to perform any task on the computer.

  1. Enter the name of the user and a name for the computer so that it can be recognized on a home network.
  2. Now create a username and enter it.
  3. Repeat a password to be associated with the user.
  4. The computer can be set up to log in automatically to Ubuntu or to require the user to login with the username and password combination.
  5. Finally, you get a chance to encrypt the home folder of the user to protect the files that are stored there.
  6. Click Continue.

Complete The Installation

The files will now be copied to your computer and Ubuntu will be installed.

You will be asked whether you want to restart your computer or continue testing.

Restart your computer and remove either the DVD or USB drive (depending on which one you used).

When your computer reboots a menu should appear with options for Windows and Ubuntu.

Try Windows first and make sure that everything still works.

Reboot again but this time choose Ubuntu from the menu. Make sure that Ubuntu boots up. You should now have a fully working dual booting system with Windows 7 and Ubuntu Linux.

The journey does not stop here, though. For example, you can read how to install the Java Runtime and Development Kit on Ubuntu.