Fedora Linux Support Community & Resources Center
  #1  
Old 19th October 2011, 07:40 PM
dmachop Offline
Registered User
 
Join Date: Dec 2010
Posts: 12
linuxfirefox
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
  #2  
Old 21st October 2011, 07:34 AM
kkshethin Offline
Registered User
 
Join Date: Dec 2009
Location: India
Posts: 340
linuxfirefox
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.

steps

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
  #3  
Old 23rd October 2011, 03:35 PM
zimon Offline
Registered User
 
Join Date: Sep 2004
Posts: 62
linuxfirefox
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
  #4  
Old 23rd October 2011, 06:54 PM
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 6,209
linuxfirefox
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
  #5  
Old 24th October 2011, 03:46 PM
sea Online
"Shells" (of a sub world)
 
Join Date: May 2011
Location: Confoederatio Helvetica (Swissh)
Age: 34
Posts: 3,696
linuxfirefox
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:
Code:
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
Code:
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
Code:
dd if=/dev/sda of=/boot/winmbr.bin bs=512 count=1
6) over write current mbr with linux mbr:
Code:
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:
Code:
title Windows
    rootnoverify (hd0,0)
    chainloader +1
8) reboot and havea look if it works, if not, write back the windows mbr
Code:
dd if=/boot/winmbr.bin of=/dev/sda bs=512 count=1
and try option a.
__________________
Laptop: Toshiba satellite p50-a-11 CPU: Intel i7 8*2400 MHz GPU: GeForce GT 745M RAM: 8192 MB Distro: Fedora (Rawhide) DE: Awesome
Guide: Windows 8+ & Fedora 20+ Dualboot
Repo (sea-devel) :: Text User Interface (TUI), Video Handler Script (VHS), efi-helper, grub2-circled-nasa-themes, Essentials (blame, p, rmtf, rnd, siggen, screenshot...), (BETA) Dev-Scripts, (BETA) Fedora Account Scripts (FAS)

Last edited by sea; 24th October 2011 at 03:50 PM.
Reply With Quote
  #6  
Old 27th October 2011, 05:54 PM
zimon Offline
Registered User
 
Join Date: Sep 2004
Posts: 62
linuxfirefox
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
  #7  
Old 28th October 2011, 11:33 PM
zimon Offline
Registered User
 
Join Date: Sep 2004
Posts: 62
linuxfirefox
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.
http://www.flickr.com/photos/2128104...th/6287532156/
Reply With Quote
  #8  
Old 3rd November 2011, 07:35 PM
zimon Offline
Registered User
 
Join Date: Sep 2004
Posts: 62
linuxfirefox
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.

(edit)
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
Reply

Tags
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: 01:57 (Sunday, 21-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
...Islas Galapagos Photos on Instagram - El Chiringuito Beach Club - Las Salinas Ibiza Travel Photos - Froyo - Frozen Yogurt - Greece - IHEC - CARTHAGE Photos