LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 06-22-2015, 05:05 AM   #1
derickdrib
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, 12:01 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,837
Blog Entries: 14

Rep: Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092Reputation: 1092
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, 12:05 PM   #3
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,111

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
^ 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, 12:11 PM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

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

This applies to non-EFI systems:
http://www.linuxquestions.org/questi...9/#post5374769

This guide is for UEFI systems:
https://wiki.debian.org/GrubEFIReinstall

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 12:13 PM.
 
Old 06-22-2015, 01:44 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,463

Rep: Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065Reputation: 2065
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.
 
  


Reply


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 10: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 05:34 PM
install Ubuntu on dual boot system already running GRUB Ricky_writer Linux - Software 2 11-11-2010 10:08 PM
how do you install Ubuntu on a dual boot with windows XP? Mac_09 Linux - Newbie 16 05-11-2008 11:28 AM
Dual boot install starts only windows not ubuntu cyberoctopus Ubuntu 3 09-20-2005 02:13 AM


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

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