Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-22-2015, 06:05 AM   #1
LQ Newbie
Registered: Jul 2011
Posts: 3

Rep: Reputation: Disabled
How to install Windows 7 on a pc already running Ubuntu for dual boot purposes

Hello Everyone!!!I am really not so familiar with Linux and have a pc running on Ubuntu. I want to install Windows 7 but maintain dual booting as I would want to continue exploring on Ubuntu as well as keep some valuable documents.I would appreciate any help on how I could go about this

Kind regards
Old 06-22-2015, 01:01 PM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,050
Blog Entries: 14

Rep: Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214Reputation: 1214
In general the recommendations are to install Windows first then add Linux as the Windows boot loader overwrites things when installed second.

An alternative I just heard the other night is to setup virtualization on the Linux and install a Windows guest virtual as that would not override the boot loader as it would only know about the virtual disk you allocated to it. I haven't tried that myself but the person that said he was doing it said he'd been doing it for some time with no issues.
Old 06-22-2015, 01:05 PM   #3
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,150

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
^ like above i think if you install windows 2nd then you will need a live-usb to fix the windows boot loader (grub-install ?)
Old 06-22-2015, 01:11 PM   #4
Senior Member
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 284Reputation: 284Reputation: 284
You can chroot into your Ubuntu system from the live environment afterwards and re-install & reconfigure GRUB.

This applies to non-EFI systems:

This guide is for UEFI systems:

If your Ubuntu system has a folder at /sys/firmware/efi then it is a UEFI system.

EDIT: Make sure you have os-prober installed so that Ubuntu can detect Windows and provide a GRUB menu entry for it.

Last edited by Head_on_a_Stick; 06-22-2015 at 01:13 PM.
Old 06-22-2015, 02:44 PM   #5
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
As above, you have two options:

1) Install Windows as a VM inside Ubuntu, provided your system has enough resources. This is advantageous because it allows you to run both OSs at the same time and access all software on both systems without having to reboot. The downside is the computer needs to have enough resources to run both OSs at once, and Windows may have issues with direct hardware access if you need that (rare).

2) Repartition your hard drive to open up some space, install Windows in that empty space, then boot a live Linux system and reinstall GRUB to repair the boot sector.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ubuntu 13.10 Install Error On Windows 7 Dual Boot Ubuntu New User Linux - Newbie 2 01-09-2014 11:30 AM
No 'Alongside' option when trying to install Ubuntu 11.04 to dual boot with Windows 7 UnfairBear Linux - Newbie 16 09-16-2012 06:34 PM
install Ubuntu on dual boot system already running GRUB Ricky_writer Linux - Software 2 11-11-2010 11:08 PM
how do you install Ubuntu on a dual boot with windows XP? Mac_09 Linux - Newbie 16 05-11-2008 12:28 PM
Dual boot install starts only windows not ubuntu cyberoctopus Ubuntu 3 09-20-2005 03:13 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration