Fedora Linux Support Community & Resources Center
Old 19th October 2011, 07:40 PM
dmachop Offline
Registered User
Join Date: Dec 2010
Posts: 12
Red face Install Windows 7 after Fedora 15

This may have been answered many times but can anyone suggest a step by step guide on how to install Windows 7 after installing Fedora?
Windows seems to be wiping out the Grub bootloader.
Reply With Quote
Old 21st October 2011, 07:34 AM
kkshethin Offline
Registered User
Join Date: Dec 2009
Location: India
Posts: 439
Re: Install Windows 7 after Fedora 15

This is difficult (to install windows after fedora). Generally you should install fedora after windows.

It is true that windows wipes grub.

solution is to reinstall grub.


1. install windows. boot.
2. put fedora installtion cd/dvd in.
3. use option upgrade fedora. This will resore grub. Windows will show up as other entry while booting.
Reply With Quote
Old 23rd October 2011, 03:35 PM
zimon Offline
Registered User
Join Date: Sep 2004
Posts: 303
Re: Install Windows 7 after Fedora 15

My Windows7 refused to install on MBR-partitioned disk where I had left 400 GB space as the 1st partition to Win7. Win7 installation claimed it has to have GPT-disk because we are installing in EFI-BIOS-machine (P8P67).
Reply With Quote
Old 23rd October 2011, 06:54 PM
PabloTwo Offline
"Registered User" T-Shirt Winner
Join Date: Mar 2007
Location: Seville, FL
Posts: 7,561
Re: Install Windows 7 after Fedora 15

On an ASRock P67 Pro3 EFI mb, setting SATA Mode to AHCI and the individual SATA controllers to Enhanced Mode, allowed installing of 64bit W7 without any issues whatsoever. I did, however, install W7 into the first primary partition on the drive first. I'm assuming your hdd is SATA and new enough to support features like NCQ, etc. The partition I installed W7 to was partitioned and formatted NTFS using gparted Live CD.
Reply With Quote
Old 24th October 2011, 03:46 PM
sea Offline
"Shells" (of a sub world)
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 37
Posts: 4,277
Re: Install Windows 7 after Fedora 15

Another option would be to save current mbr, and replace it afterwards, and/or making it available to the windows boot loader.
Use this option at your own risk, as its untested, and written from memory: (on misuse, or fault usage, you 'risk' to loose all data of your hdd's.)

OPTION A, windows bootloader:
1) save the current mbr with:
dd if=/dev/sda of=/home/$USER/mbr.bin bs=512 count=1
2) copy ~/mbr.bin to an usb stick, flashcard, or where ever you have access to without booting linux.
3) install windows
4) copy mbr.bin to c:/ (or where your boot.ini (hidden) is located).
5) get write access of c:\boot.ini
6) add the line (remember untested, from memory) to c:/boot.ini
c:\mbr.bin="Fedora Linux"
OPTION B, linux boot loader:
Steps 1-3 from above
4) boot from linux live cd/usb
5) save windows mbr with
dd if=/dev/sda of=/boot/winmbr.bin bs=512 count=1
6) over write current mbr with linux mbr:
dd if=/path/to/USBstick/mbr.bin of=/dev/sda bs=512 count=1
7) edit /boot/grub/grub.conf or /boot/grub/menu.lst and add the lins:
title Windows
    rootnoverify (hd0,0)
    chainloader +1
8) reboot and havea look if it works, if not, write back the windows mbr
dd if=/boot/winmbr.bin of=/dev/sda bs=512 count=1
and try option a.
EFI Cheatsheet :: http://forums.fedoraforum.org/showthread.php?t=298546
Video Handler Script (VHS) (mass re-encode videos, screenrecorder, console music/webradio player, ...) :: http://forums.fedoraforum.org/showthread.php?t=299182
Windows 8+ & Fedora 20+ Dualboot :: http://forums.fedoraforum.org/showthread.php?t=298161

Last edited by sea; 24th October 2011 at 03:50 PM.
Reply With Quote
Old 27th October 2011, 05:54 PM
zimon Offline
Registered User
Join Date: Sep 2004
Posts: 303
Re: Install Windows 7 after Fedora 15

Wow, this is difficult.

Now I partitioned the disk with GParted in the Fedora 15 installation, leaving 500 GB empty partition for Windows7 in the start of the disk. Then marked it as a NTFS-partition and formatted it as such.

Windows 7 installation now complains:
"Windows cannot be installed to this disk. The selected disk is of the GPT partition style. Windows cannot be installed to this hard disk space. The partition was reserved by the computer's Original Equipment Manufacturer (OEM)."

Before Windows7 was complaining it cannot be installed because the disk was MBR-partitioned and because we are in EFI-BIOS machine we must use GPT.

I start to wonder if they purposely have made it this difficult to install Windows7 along with Linux.

Any ideas how to proceed? I only need Windows7 for games, but still.

Last edited by zimon; 27th October 2011 at 05:59 PM.
Reply With Quote
Old 28th October 2011, 11:33 PM
zimon Offline
Registered User
Join Date: Sep 2004
Posts: 303
Re: Install Windows 7 after Fedora 15

Not even Microsoft can't help.
They instructed to make at least 250 MB EFI-partition to the first, then 128 MB MSR-partition, and then the first primary partition as formatted to NTFS. I did these with diskpart with Windows 7 installation media.

Still Windows 7 install cannot install to this disk and does not really give any meaningful reason.
Reply With Quote
Old 3rd November 2011, 07:35 PM
zimon Offline
Registered User
Join Date: Sep 2004
Posts: 303
Re: Install Windows 7 after Fedora 15

The problem I had is solved.

The problem was, P8P67 allows to boot media both without EFI-support and with EFI-support if media has EFI-support.
Booting Windows 7 installation without EFI-support leads to very un-explanatory error message "Windows cannot be installed to this disk. The selected disk is of the GPT partition style. "
So in EFI-BIOS setup one must re-order the boot medias so it first tries to boot with EFI-support and later without.

Also to install Windows 7 to pre-partitioned GPT-disk, it needs >= 100 MB of EFI-partition and 128 MB MSR-partition. I have these as the 1st and as the 2nd partition.

I do not know, if with Gparted it is possible to make satisfactory EFI- and MSR-partitions, but I used MS's diskpart to make these. One can get "DOS" shell in Windows 7 installation by pressing Shift+F10. The Fedora 15's LVM and /boot partitions were located and installed in the latter part of the disk before this.

I made EFI-partition to 500 MB and hopefully I can install grub-boot-files to there also and won't need separate boot-partition for Fedora. Then also I need to make boot menu, but I am not yet sure how it should be made so Windows 7 is happy also and EFI-BIOS is used.

Last edited by zimon; 3rd November 2011 at 07:49 PM.
Reply With Quote

dual boot, fedora 15, gpt, grub, uefi, windows 7

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows install on fedora matiasGrioni Using Fedora 1 18th October 2011 11:40 PM
Install and run Fedora in Windows MikkelB Installation, Upgrades and Live Media 3 20th August 2009 08:15 PM
How to install Windows beside Fedora? Sonix768 Installation, Upgrades and Live Media 9 12th January 2008 07:29 PM
Re-install Windows over Fedora MADmike253 Installation, Upgrades and Live Media 16 5th January 2008 06:40 PM
Install windows when I already have fedora? phantomcow2 Using Fedora 3 18th April 2006 01:24 AM

Current GMT-time: 13:36 (Thursday, 17-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat