Friday, January 16

Dual Boot Fedora and windows : A step by step guide

Hi friends, I'm trying out Fedora since last week and its been a very nice experience. I will share with you how I felt using it afterwords but for now I will be giving a step by step guide on installing Fedora alongside windows.

I'm focusing on Fedora 21 but this guide definitely works with some earlier versions and future ones also.

So lets get started.

1. Get a bootable USB created for Fedora. I recommend using unetbootin.
It's simple just give the path of Fedora ISO and it will format the USB and   extract the linux on it.

To install Fedora make some space , 40GB is enough but it can work nicely with 20GiB also (as I'm doing!!!) Make sure that you keep that space unallocated that is deleting the partition if present.Its not a must but it will simplify the installation.

For that use the drives option in Manage window in windows.

2.Now restart your computer and keep that pen-drive connected . You should see a unetbootin menu if not then you have to make changes in your BIOS. Simply enter BiOS with pressing either f2/f3/del according to your mode. and then make usb boot enable and keep it as first boot device in boot priority.

3.At UnetBootin menu select to try Fedora.

4.Now Fedora will boot nicely with all your devices working as normal If not especially your On-Chip graphics then you should consider searching for that issue on net.
Or you can simply ask me in the comments. I will surely help you with that.

4.If fedora gets started correctly (Which it normally does on most of the PCs) then its a good to go sign.

5.Now press windows key or simply click activities in the upper left corner and you will see a install to Hard disk icon there. Click it and will open a wizard.

6.Set the language etc. and move to drive or partition setting. You will see your disk checked it should remain as is.

7. ***Now the most important part.***

If you are willing to dual boot fedora with windows do not install bootloader of fedora, it will overwrite your windows MBR.
at the downmost left there is an option asking you to view "Full disk sumary and bootloader " or something like that. Select that and choose "Do not install Bootloader"

Hit OK and it will show an error at down saying that your linux wont be bootable. If you see that, it means we are on the right path.

8.Now hit Done and you will see a free space which you have freed earlier.
simply click on "+" over that free space and enter the mount point as "/".
Give it the space you want.

Many tutorials on net shows to create three partitions but that's not a must.
I got everything running nice with only a single "/" partition with all of 20GiB I was left with. For older and with less RAM PCs add a"/swap" partion with some double value of your RAM.

9.Note down the sdaX it is showing for your new / partition (maybe write it somewhere).

After that move to next screen by hitting Done and then accepting to make changes to drive.

10. Click begin installation and you can now set root password and user setting parallely.

11. After the installation gets complete do not restart but enter the terminal and type following commands:
Use sudo before commands if it says that you don't have permission over "your own" computer!!!
chroot /mnt/sysimage
grub2-innstall --force /dev/sdaX 
here x is the partition you have installed fedora like sda9.

grub2-mkconfig -o /boot/grub2/grub.cfg
if everything goes fine without any error then you are good to go.
enter exit to exit the chroot.

Now enter
sudo dd if=/dev/sdaX of=grub.bin bs=512 count=1

12. You will now get a grub.bin in your home directory copy and paste it to your C:/ partition.

13.Now reboot to windows and open cmd with administrator priviledges.

14. Enter there

bcdedit /create /d “MY LINUX GRUB” /application BOOTSECTOR 
Note: bcdedit will return an ID for this entry that we will call {LinuxID} below. You will need to replace {LinuxID} by the returned identifier in this step. An example of {LinuxID} is {81ed7925-47ee-11db-bd26-cbb4e160eb27} 
bcdedit /set {LinuxID} device boot ( Specify which device hosts a copy of the Linux boot sector)

bcdedit /set {LinuxID} PATH \grub.bin ( Specify the path to a copy of the Linux boot sector)

bcdedit /displayorder {LinuxID} /addlast (Add Linux entry to the displayed menu at boot time)

Now  reboot and you should see and entry named my linux grub working to forward you to grub.

So that was easy wasn't that. With correct procedure and following everything correctly you should get your Fedora running like a charm.

If you are stuck at something feel free to ask me in comments or simply mail me.

    

No comments:

Post a Comment