Professional Documents
Culture Documents
The Web
Search
Here: Home > Dual-Boot > Dual-Boot Windows 7 with other Operating Systems >
Install Windows-controlled Dual-Boot of Fedora 16 on a Windows 7 computer with one hard disk
(Win7 installed first and Win7 still controlling startup after Linux installation)
Last reviewed: October 2011
Updated for EasyBCD version 2.1. Do not use these instructions with earlier versions of EasyBCD. On this page:
http://www.thpc.info/dual/win7/dualboot_win7+fedora16_bcd_on_win7.html
Introduction Important Installation Notes Make Partition Active SUMMARY of Procedure STEP-BY-STEP: Install Linux Fedora 16 when Windows 7 was installed first Place Linux Fedora boot option in Windows boot loader Uninstall/Remove Linux and reclaim space Repair Windows 7 Startup Help! I get only the GRUB boot menu! Related Reading
Introduction
If you have one hard disk, this guide shows how to leave Windows 7 unaltered when you create a natural dual-boot of Windows 7 and Fedora 16 when Windows 7 is installed first. The Windows 7 boot loader will stay in control (not Linux's GRUB). You can then run either by selecting one from a Windows 7 menu during bootup. No data loss will occur and a thirdparty boot utility is not used. In this procedure you need to shrink the Windows 7 drive to make room for Linux. If you have two or more hard disks (even if installing Fedora on the first disk), you must go to the page at: http://www.thpc.info/dual/win7/dualboot_win7+fedora16_bcd_on_win7_2hd.html If you prefer Linux Fedora's GRUB to control the dual-boot, go to the page at: http://www.thpc.info/dual/win7/dualboot_win7+fedora16_grub_mbr_on_win7.html 32 and 64-bit versions of Windows 7 Home Basic, Enterprise and Ultimate were used in testing so this will also work with Windows 7 Premium and Professional. The computers used were (1) a 32-bit Dell Optiplex with Pentium 4 (2.26GHz), 2.0 GB RAM, 160 GB ATA hard disk, and (2) AMD Athlon 64-bit (2.4GHz), 2.0 GB RAM, 1 TB SATA hard disk. Following these instructions correctly should always succeed. However, any change to your computer should not even be considered unless you have a rescue plan. This guide also contains that rescue plan - just in case! The procedure used is suitable for experienced computer users.
[top of page]
STEP-BY-STEP: Install Linux Fedora 16 when Windows 7 was installed first - 1 hard disk
It's the nature of a step-by-step that it appears long and difficult. Not so! Installing other operating systems on your Windows 7 computer may invalidate your warrantee.
It's important to follow the instructions exactly as stated and you should have a properly working Windows.
You must create disk space and leave it as Unallocated or Free (not formatted). Decide first on how much disk space you wish to allocate to Linux and if you will create an extra partition (/home) for your Linux data. This data partition can be left intact should you wish to reinstall Linux at a later time. The Swap area size should be about twice your RAM size but you should allow less than twice if you have a lot of RAM. Make a note of the size of the Free/Unallocated space. 1. Restart computer correctly (close all programs/software before Restart). 2. Open Disk Management in Windows 7 (right-click Computer, select Manage, click Disk Management). o Right-click the Win7 volume, and click Shrink Volume. In Enter the amount of space to shrink in MB: enter enough for Linux and its Swap file. Click the Shrink button (it may take some time!). Note that we are leaving the newly acquired free space as Unallocated.
If Shrink does not give you sufficient Unallocated space, read Shrink the Windows 7 or Windows Vista Partition for instructions on how to complete this task successfully. Then return here.
3. Restart to Windows 7 two times. o Open Disk Management and check that the change made is correct. Use the free GParted Live CD to gain adequate disk space only if you absolutely must - read the page Use GParted to Resize the Windows 7 or Vista Partition to learn how, and read Repair Windows 7 Startup (below) before you use GParted.
C. Install Fedora 16
Raid/LVM was not an issue when testing so partitions were created manually during installation. Fedora was installed with Grub placed on the Linux EXT4 partition. The originally Active partition always remained Active after Fedora 16 installation so Windows then booted automatically. Finally EasyBCD created the Linux Fedora 16 entry in Win7's boot manager thereby creating the Windows dual-boot. 1. Bootup from the Linux Fedora 16 Live CD. Double-click Install to Hard Drive icon (in Applications > System Tools).
o o o o o
Select the appropriate keyboard and then click Next. Select Basic Storage Devices (unless you have a non-standard setup). Enter a name for identification. Select the correct city for your time-zone. Create a Root Password of your choice (and remember it!).
2. Select Create Custom Layout in the next screen (that's VERY important) (the Use LVM option should now be greyed out - it's not available).
o o
In Please Select A Device, highlight the Free space you created for Fedora, and click the Create button. In Create Storage, select Standard Partition, and click Create. A new window will open. First create the Linux EXT4 partition. In Mount Point:, select / (a forward slash). In File System Type:, select ext4 In Allowable Drives, all drives can be enabled In Size (MB):, enter all available space (for Fedora) except 2000 MB (for the Swap File) Leave Fixed size checked. Click the OK button.
Back in Please Select A Device, note the name allocated to the new Device (like sda2, sda3, sda5).
o o
Now highlight the remaining Free space, and click the Create button. In the next window, select Standard Partition, and click Create. A new window will open. Now create the Swap partition. In Mount Point:, leave it blank. In File System Type: drop-down, select swap. In Allowable Drives, you should have no choice (you have only one hard disk). Tick to enable Fill to maximum allowable size Click the OK button
Take a moment to look at the partitions to be created and Formatted. They're marked with a tick and no other partition should be ticked. Click NEXT when ready, or click Back to recreate partitions. Click Write changes to disk when ready and now the new partitions will be created & formatted.
The next screen is vital to ensure the correct location for GRUB.
Tick Install boot loader on ..., and click the Change device button. Select First sector of boot partition - /dev/sda* and click OK (/dev/sda* is the Device name you noted above). Using a boot loader password is optional. The following option may not be available. Under Boot loader operating system list, Fedora should be ticked (set as the Default). The "Other" boot option is for Win7 - highlight it and use Delete to remove it (strongly
recommended). Click Next. The install process will start now. Click Close when it's completed.
3. Reboot your computer when installation is completed (remove the Fedora Live CD). Windows 7 will boot automatically (if not, make the originally active NTFS partition Active again - read above). We can now use EasyBCD 2.1 to add Linux Fedora 16 to the Windows 7 boot loader menu.
Congratulations! You have created a natural dual-boot of Windows 7 and Linux Fedora 16 on a single hard disk with Windows in control when Windows 7 was installed first. Finished! Footnote: EasyBCD 2.1 creates an NST folder on the root of the Windows partition when it adds an operating system to the Windows 7 boot loader. This NST folder contains one or two files vital to booting the added OS. Be sure you do not accidentally delete it.
[top of page]
Alternatively, create a new partition in the Unallocated space and Format it. In just a few second you will have all the Linux space back in Vista. Restart computer. Note: EasyBCD has an Uninstall shortcut in Start > All Programs > NeoSmart Technologies.
[top of page]
o o
o o
In System Recovery Options, highlight Windows 7, and click Next. Click Command Prompt in System Recovery Options. Type in (and press ENTER) Bootrec.exe /fixmbr exit (GRUB will be overwritten and the Windows boot loader reinstalled). Now click Startup Repair in System Recovery Options. Restart computer. Windows 7 should boot as originally.