View Full Version : [Guide] Install Fedora 20+ aside of Windows 8+

27th March 2014, 08:31 PM
Welcome to the Guide to Install Fedora 20 aside of Windows 8

Table of Contents
NOTE: Step 8 (additional images) is optional --> thus step 7 (BIOS/UEFI) can also be done after step 9 (shrink partition).
Allthough i provide a script for this, if your system varies it might behave unforseenable if you dont make the proper changes to the script. Also the recovery might be a challenge for non advanced users.

Windows 8 : Get Fedora-LiveImage and make bootable USB stick (5-20min)
Windows 8 : Installations, Apps, Settings, Upgrade! (3-10h)
Windows 8 : Prepare Partition shrink (30min-5h)
Windows 8 : Recovery Snapshot (2-10min)
Windows 8 : Windows Emergency boot stick (5-30min)
Windows 8 : Recovery media (30-90min)
BIOS/UEFI : Make sure the USB Installation stick can boot (2-4min)
Fedora 20+ : (Optional) Additional partition images: 'mbr', efi-part, recovery part (all 3 = ~2gb) (3-5min)
Windows 8 : Shrink partition (1-5min)
Fedora 20+ : Installation (~30min)
Fedora 20+ : Post installation tasks (optional: ~30min)
Fedora 20+ : Troubleshoot - Added boot entry at each boot (2-20min)

Estamated time used on Windows: 4:15h to 11:15 hrs
Estamated time used on Linux: 35 min to 1 hr


Windows screenshots (http://forums.fedoraforum.org/album.php?albumid=374) are in german, but should indicate where to click. (mouse's hover effect)

You will require some storage devices for:

Linux installation media ( 1 CD/DVD / 1 USB stick 1-4 GB ) (Step 1)
Windows Boot Media ( 1 USB stick 1-16 GB ) (Step 5)
(one of) Windows Recovery Media (Microsoft) (3-8 DVD / 1 USB stick 16++ GB ) (Step 6, not bootable by itself - thus step 5 required (if checkbox disabled))
(one of) Windows Recovery Media (Vendor) (3-8 DVD / 1 USB stick 16++ GB ) (Similar as Step 6, bootable media, but vendor preferences)
(OPTIONAL) Additional Windows Images ( 1 DVD / 1 USB stick ~1-4 GB (Step 8)

I used:
2 USB sticks, each 1 GB (Boot/Install media)
6 DVDs (Recovery media, incl Additional images)

1) Get Fedora-LiveImage and make bootable USB stick
1.1) Get a Fedora live image

First we download a live image from http://fedoraproject.org/get-fedora#desktops
Since you're using Windows 8, chances are high your system is capable of 64 bit, choose a DE (Desktop Environment) of your preferences.

1.2) Get "LiveUSB-Creator"

A complete manual can be read here (http://docs.fedoraproject.org/en-US/Fedora/20/html/Installation_Guide/Making_USB_Media.html)
Basicly its to install: liveusb-creator-3.12.0-setup.exe (https://fedorahosted.org/releases/l/i/liveusb-creator/liveusb-creator-3.12.0-setup.exe)

1.3) Make the USB stick bootable (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1873)

Now insert an USB stick and then select (browse for) the downloaded iso image, update the combobox field if the USB stick is not shown
Click on 'Write iso to USB', twice if the stick contained data.

2) Windows 8 : Installations, Apps, Settings, Upgrade! (3-10h)
2.1) Windows Updates
How to get there:

First: Move mouse right screen side and click on 'Settings' (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1874)
Then: Choose 'PC-Settings' (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1875)
Now you see the 'Settings' screen (like: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1876)
Click now on: 'Updates / Recovery' and update your system as often as required (restart after each completed update (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1878)

2.2) Drivers, Apps, Tools
While the Windows updates are running, we may install some 'small' tools.
Note: Here are just some suggestions, this is not really required, but i'm eager in hope that those 8gb+ image files windows creates, also include these things.

GPU Driver
Sound Drivers
Scanner Driver
WebCam Driver
Printer Driver

Also some basic tools cant be wrong

AntiVirus (If your vendor has not shiped one with)
Firewall (If your vendor has not shiped one with)
Steam (but no Games yet) / XFire

To install apps:

Go to the Windows Store (hit Windows-Button)
Look for a green button with an icon that looks like a shopping bag
Install apps of your need (be sure to check the apps requirement to access your system! - also test it immediatly, and note down the names of those you want to remove!)

2.3) Upgrade

Once there are no more updates to do, be sure to update Windows 8 to Windows 8.1.
That can be done either in the Store (there should be an almost fullscreen image yelling at you to upgrade to Windows 8.1 -- missing screenshot started to late screenshoting)

From this point on, you MUST have Windows 8.1 or higher!
Otherwise your settings will be scrambled on update!

2.4) Settings (goto 2.1.3)
Settings to check (but not limited to):

Power Management (Screen, -Saver)
Sound Levels (eg: Systemsounds too loud)

3) Windows 8 : Prepare Partition shrink (30min-7h)
3.1) Clean unrequired stuff (Store & Windows Apps)

Goto : 2.1.3
Then : Search & Apps (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1896)

At this place, and ONLY this place, you can actualy DE-install the apps you installed from the store.
How to remove them from the store's list (uninstalled), i dont know :(

3.2) MS Disk clean up (10min - 90min)
How to get there:

Open Explorer - "Windows-Button+E"
Rightclick on 'C:\' open 'Properties'
Click clean up
Select all 'Tempfiles' & Old Windows Versions
Click 'Clean system files'
Click 'Ok' - Files are getting deleted

With the 'Disk Clean up' i was able to remove 9GB of previous Windows installation.

3.3) Scandisk (10min - 2h)
How to get there:

Beeing on 'Properties (C:)'
Click on register "Tools"
Click on 'Scan' or 'Check disk'

3.4) Defrag (10min - 2h)

Beeing on tab 'Tools'
Click on 'Optimize'

4) Windows 8 : Recovery Snapshot (2-10min)
4.1) How to get there:

First: goto (2.1.2)
Then select 'PC-Info' (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1879)
Choose 'Computer Security' (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1880)

4.2) Create the snapshot

Click on 'Create'
Enter a name for the snapshot (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1881)
Click on 'Create'

5) Windows 8 : Emergency boot stick (10-20min)
5.1) How to get there:

Go one back to: "Fileversionshadowing" (Dateiversionsverlauf: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1883)
Now click on 'Recovery' http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1889

5.2) Click on 'Create Recovery Disk/Media

With the checkbox 'Copy recovery partition to disk' enabled USB requires: 16+ gb
NOTE: This will copy the 'Recovery Partition' which has a size of ~12 GB on my disk.
Disabled, it will match on an USB of the size of 512mb - 1GB, but will require an availabe recovery partition on the disk!

6) Windows 8 : Recovery Media (Backup-Image) (30-90min)
6.1) How to get there:

First: Head to PC-Info
Then: to 'Maintainance-Center' (Wartungscenter: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1882)
Go further to: "Fileversionshadowing" (Dateiversionsverlauf: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1883)

6.2) Select Storage for Windows-Backup (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1884)

Other internal harddisk
Network storage

6.3) Provide required information or hardware

6.4) Start saving the Backup Image (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1886)

28th March 2014, 06:25 PM
7) BIOS/UEFI : Make sure the USB Installation stick can boot (2-4min)
Depending on your computer vendor's choice of 'bios' (read: UEFI) you may enter SETUP by pressing either one of: F1, F2, DEL.
To get a boot menu, it may be either one of: F8, F10, F12
Some 'bios'es offer to enter setup via boot menu. (http://forums.fedoraforum.org/pictur...pictureid=1897)

If you dont want to save the additional image files (about 2gb in total), you could do step 8 first!

But first lets see if we need to change BIOS/UEFI settings at all...

Insert Fedora Live Image
Hove Mouse right side
Settings - PC-Settings
Update/Recovery - Recovery
'Advanded Start' - Restart now
Select USB drive with Fedora Live Image as boot target

If you see the Fedora Grub Menu, all fine and you may skipt 7).
If you keep booting to Windows, continue with 7.1).

7.1) How to get there:

Shutdown Computer
Press (for me its) either: F2 or F12
Keep pressed while power on

7.2) Secure Boot
Eventhouth Fedora should support Secure boot feature to be enabled, on 'older' chipsets Fedora's shim might not be available.
Further, some USB sticks might not be compatible with UEFI and require the boot mode to be changed.
Some system require secure boot to be disable for that, others let you change boot mode (UEFI/CSM) while secure boot is enabled. (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1902)

7.3) Change boot mode (if required only!)
Go to the tab "Advanced" and select "System Configuration" (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1899)
So you can change boot mode from UEFI to CSM. (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1900)
After the installation you can re-enable UEFI, but not secureboot!
As grub will be the new boot manager, re-enable secureboot will cause the system to block grub, which results in a system with 'no OS' available.

7.4) Bootorder
Go to the tab "Boot" and make USB the first boot device (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1898)

7.4) Exit bios and save (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1901)

8) Fedora 20+ : (Optional) Additional partition images (2-5min)
8.1) How to get there:

First: Insert Fedora Live Media and boot to
Then: Boot to Fedora (either your computer boots automaticly to it, or select from boot menu)
Now: Connect to the internet and visit http://forums.fedoraforum.org/showthread.php?p=1693671

8.2) Download the script make_window_images.sh (http://forums.fedoraforum.org/attachment.php?attachmentid=25923&d=1396050795) and save to /home/liveuser/make_window_images.sh

8.3) Prepare the script
Open a terminal and copy paste:

clear;lsblk|grep sda;blkid|grep sda[0-9]|grep -i label;sudo fdisk -l /dev/sda|grep -e ^D -e ^/|grep -v Disk[a-z]
So it should then look like: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1894
Modify the script accordingly!

8.4) Run the script:
NOTE: The script should be ran BEFORE you shrink the partition!

sh /home/liveuser/make_window_images.sh
Running that script will save partitions 1,2,3 and 5 to C:\
When done, looks similar to the left side of: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1912

If the script cant mount sda4 to /mnt/win, please use this line (modify!):

sudo mount -B /run/media/liveuser/NAMEofDRIVE_C /mnt/win

9) Windows 8 : Shrink partition (1-2min)
If you did the 'Additional Images', be sure to burn them now onto DVD or save them on some other external storage.

9.1) How to get there:

Start 'mmc' (Microsoft Management Console: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1890)
Choose 'File - Add Snap-in' (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1891)
Select 'Diskmanagement' (Datenträgerverwaltunng) add it, and confirm its for local computer (http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1891)
Have a glance at your partitions:

9.2) Think of how much space your linux installation will take...
To me, my 'ideal' personal linux experience, if 'limited' to 1 linux, looks like:

32768 MB /
16384 MB SWAP
131072 MB /home
180224 MB =~ 176 GB

9.3) Shrink the drive

Right click drive C, and select "Shrink drive"
Enter the number of your MB into the field
Press 'OK'

Should look similar to: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1913

10) Fedora 20+ : Installation (~30min)
10.1) Partitions
Add the partitions we've discussed in 9.2)

However, be sure to select to review setup AND use standard partitions! (NEITHER of them is the default option!!)

ROOT :: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1908
HOME :: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1907
SWAP :: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1909
+[I]BOOT+ :: http://forums.fedoraforum.org/picture.php?albumid=374&pictureid=1906
Click 'Done' (Upper left corner) to confirm the changes, and use this disk setup :: http://forums.fedoraforum.org/album.php?albumid=374&pictureid=1910

By all means, be very carefull to select the proper UEFI partition as boot partition,
and set the boot partition to /boot/efi, rather than just /boot.

10.2) Make sure you''re in the proper Time zone, and that your keyboard layout is properly set.

10.3) Hit the 'Beginn' button

Set password for root
Create your account

10.4) Reboot

Press 'Quit' when installation is done
Restart system
Remove USB before its restarting
Verify you can boot into both OS

11) Fedora 20+ : Post installation tasks (optional) (~30min)
11.1) Add alias' to ease shell use a little

Open terminal
Add aliases to the shell:

echo "alias yiy='sudo yum install -y' # Cmon, i want to install, dont let me wait till all repos are 'loaded'
alias yr='sudo yum remove' # Dont want accidently remove anything important.. Chance to review!
alias pm='sudo pm-suspend' # I always have a terminal open, or by pressing 'Window-Button+R' you get a prompt to type: 'pm' for suspend mode
# Update kernel & yum alone, so in case of errors, its saver to use 'sudo yum history undo ###'
alias upd='sudo yum upgrade -y kernel* yum* --exclude=*devel ; sudo yum upgrade -y --exclude=kernel* --exclude=yum*'
alias gupd='grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg'
" >> ~/.bashrc
On any new terminal opening you have now these 'short commands' available: yiy yr pm upd
The only alias tht doesnt 'work' with additional arguments is 'upd'.
As examples:

yiy firefox
yr midori -y
pm --help
gupd ## For Grub.cfg updates in /boot/efi/EFI/fedora/grub.cfg

11.2) Save changed UEFI partition, original to Fedora installation

Type su in the terminal and provide password
Copy paste:

dd bs=1M if=$(mount|grep ^/dev|grep efi|awk '{print $1}') of=/home/$USER/${PART##*/}-uefi-$(uname -r).img
Save the the new file in /home/$USER (thats your $HOME in the filebrowser to some external storage

11.3) Install Repos

yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

echo "[adobe-linux-$(uname -m)]
name=Adobe Systems Incorporated
baseurl=http://linuxdownload.adobe.com/linux/$(uname -m)/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux" > /etc/yum.repos.d/adobe-linux-$(uname -m)

rpm -ivh http://rpm.livna.org/livna-release.rpm

11.4) Remove unrequired packages
NOTE: These may vary on your choice of the DE

yum remove midori pidgin leafpad

11.5) Install additional packages & update

yum install gedit mkpaint ImageMagick firefox git lm_sensors xchat grub2*theme* plymou*theme* --exclude=*hot-dog*
yum install vlc vobcopy libdvdcss flash-plugin
source /home/$USER/.bashrc

[root@localhost sea]# yum search libdvdcss
Loaded plugins: langpacks
============================ Matched: libdvdcss ==============================
vobcopy.x86_64 : Utility to copy DVD .vob files to disk

29th March 2014, 08:40 PM
11.6) Make Firefox show a neat Fedora icon when posting: make_ff_with_fedoraicon.sh (http://forums.fedoraforum.org/attachment.php?attachmentid=25929&d=1396128342))

11.7) Follow Leigh's guide to install nVidia drivers: http://forums.fedoraforum.org/showthread.php?t=280750

12) Fedora 20+ : Troubleshoot - Added boot entry at each boot (2-20min)
This part is optional and experimental.
I deny any responsibility for anything that may happen, such as, but not limited to, an unbootable system.
What i wrote here is ment to help, if it doesnt, i'm honestly sorry but i cant help you.
Do this on your own risk!
12.1) Check your efi boot parameters: (run as you)

sudo efibootmgr -v > efi-$(date +'%d%H%M')-$$.log
There should be 1 "Window Boot Manager" and 1 "Fedora" entry, as well as DVD and Network Cards
Either way, do a reboot and compare the values, if you got a new entry continue here, otherwise all is good
If you copy pasted above code, you can compare the values by:

diff efi-*log
On my system it showed, that a new entry Boot0006 was added.
Given the fact i had already play with this before, but only have 2 OS available
We're able to say, in theory the first two entries should be working.

[root@localhost sea]# efibootmgr -v
BootNext: 0001
BootCurrent: 0001
Timeout: 2 seconds
BootOrder: 2001,2002,0001,0000
Boot0000* Windows Boot Manager HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\Microsoft\Boot\bootmgfw.efi )WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a .8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.}....................
Boot0001* Fedora HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\fedora\shim.efi)
Boot0002* Windows Boot Manager HD(2,200800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\Microsoft\Boot\bootmgfw.efi )WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a .8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.}....................
Boot0003* Fedora ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,2 00800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0004* Fedora ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,2 00800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0005* Fedora ACPI(a0341d0,0)PCI(1f,2)03120a000400ffff0000HD(2,2 00800,82000,949dc043-b4e9-11e3-86cd-9ee73db0c5f4)File(\EFI\FEDORA\shim.efi)..
Boot0007* UEFI: Network Card ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(54bef753f0f8,0 )030d3c0000000000000000000000000000000000000000000 00000000000000000000000000000000000004000000000000 000000000000000000000..BO
Boot0008* UEFI: Network Card ACPI(a0341d0,0)PCI(1c,3)PCI(0,0)MAC(54bef753f0f8,0 )IPv4(<->,0, 0..BO
Boot0009* UEFI: SWISSBITTwist 2.00 ACPI(a0341d0,0)PCI(1d,0)USB(1,0)USB(4,0)HD(1,3f,1f 3ac1,51fde1f9)..BO
Boot2001* EFI USB Device RC
Boot2003* EFI Network RC
However, i highly recomend to use efi-bootnext.sh (http://forums.fedoraforum.org/attachment.php?attachmentid=25928&d=1396128267) to check each boot entry manualy, and verify if it is botoable or not. Be sure to note down your current bootorder first, as a backup reference! (on paper, unless you got a good number memory).
Requires some restarts, but might help to reduce the list in the first place.
NOTE: If you end up booting to Windows, see: http://forums.fedoraforum.org/showthread.php?p=1693827#post1693827 for a workaround.

Note down each number that is not bootable, exclude/ignore USB,DVD and Network entries.
In my case, those numbers were: 6 (when it was there) and 4, 2,3and 5 worked, but are double entries, so i remove them (HOLD ON, need to very first)

Once solved, you could run the make_windows_images.sh again, so your new 'uefi-mbr' and uefi-partition get saved again.
Be sure to NOT OVERWRITE the existing uefi-partition files!

If all went well:

Gratulations, you now have a fine setup dual boot system :)


31st March 2014, 05:26 PM
As per our conversation over PM, I am closing this thread to avoid questions on this sub-forum.

Thanks sea for the very nice guide. :)