Creating a Dual Boot System with Linux and Windows
In this article we will see how to install a Linux based OS alongside a Windows OS already installed on a System. Before we begin here are some of the Advantages of a Linux OS over a Windows OS and why you should consider using a Linux System. (Purely based of my experience)
- Linux Systems are generally light on system resources and hence run faster even on old hardware setups.
- Linux has native support for the gcc compiler and python interpreter.
- Linux also has native support for Git which makes it easier for people to synchronize their work with remote repositories on GitHub.
- Linux is Open Source and hence tinkering around with its source code can give us a better understanding of the Structure of an OS.
Prerequisites, before we begin the process:
- It is recommended that you have 100 – 150 Gb of free Hard Disk space, although anything above 40 Gb would do the job. (This step is important as it is the amount of space you will be dedicating to your Linux OS, and once linux is installed you will not be able to access this space through Windows)
- A USB flash drive have a minimum space of 8Gb.
- (Optional, Only for newer machines) Making sure whether Windows is installed in UEFI mode or Legacy BIOS Mode.
- STEP 1: Unallocating the Required amount of Hard Disk Space. This step is required to free up some space from your NTFS formatted Hard Disk. This unallocated space will contain the Linux System Partition and hence it is necessary for you to decide carefully how much space you will be devoting to linux. To do this go to the Windows Disk Management Service. You can go to ‘Run’ enter ‘diskmgmt.msc’ and and run.
- On the Disk Management Window right click on the Partition from which you want to extract the required (recommended 100 – 150 Gb) amount of free space, and click of ‘Shrink Volume’. In the Dialog Box that pops up enter the ‘amount of space to shrink’ as 102400 Mb (100 Gb) and continue. This would reduce the space of the present volume by 100 Gb and the remaining 100 Gb would be shown as Unallocated Space. This Completes the 1st Step.
- STEP 2: Creating a Bootable Linux USB Drive. For the Purpose of this article i will be installing ‘Ubuntu’ as the Linux OS of choice as it is the most popular Linux OS and has a large supportbase. We first need to Download the Disc Image File (.iso file) of the Ubuntu OS from the Official Ubuntu website (www.ubuntu.com). The Latest LTS (Long Term Support) Version is preferred over the non – LTS version, as they provide update support for 5 year rather than 9 months for the non – LTS versions. We also need another software called Rufus for the creation of a Bootable USB Drive. A Bootable Drive is one from which the machine can load the OS without installing it. Then we need to backup all the Contents of the USB flash Drive and Start Rufus. In Rufus we make the following settings a shown below.
- After the completion of the above Process we are ready with our Bootable USB Drive.
- STEP 3: Disabling Secureboot and Fastboot (Only for Newer Machines) This step is not required for older machines say, older than 2012. In this step we need to enter the BIOS/UEFI menu of our Computer. In case you are running Windows 8.1/10, before entering the BIOS/UEFI Menu you need to disable ‘Fast Startup’. For this go to the ‘Power Options’. On the left side options go to ‘Choose what the power buttons do’ then click of ‘Change Settings that are currently unavailable’ and Untick ‘Fast Startup’ Below and save these changes.
- Now this step of the Process is manufacturer specific. I suggest you to Google a bit to get the exact key combination you need to press during the machine startup that will get you into the BIOS/UEFI Menu. In most Cases you need to press either one of the f1, f2 or f12 keys after turning on the machine but before windows starts booting up.
- STEP 4: Booting Ubuntu Linux From USB Drive. In the next step we boot Linux from the USB Flash Drive we just created. To do this we enter into the ‘Boot Options’ during the machine starts up but before windows starts loading. The ‘Boot Options Menu’ is shown below:
- First Bootup of Ubuntu Linux:
- STEP 5: Installing Ubuntu Linux Once Ubuntu has booted off the USB Flash Drive you can try out the different applications that the linux distribution has to offer and once you verify all the basic functionality of the OS that you will be using work on your machine, we can proceed with the installation. Run the ‘Install Ubuntu’ icon shown on the Ubuntu Desktop by Double Clicking it and Follow the steps as shown below.
- Once You reach the Step asking you ‘How do you want to install Ubuntu’. Select ‘Something Else’ and continue. In the next screen you will see a window showing all the hard disk partitions on your machine. You need to find from among all the partitions, the one you unallocated in the 1st step, it will be labelled as free space in this window and it’s space should roughly match 102400 Mb. Highlight this ‘free space’ by left clicking it and then select the small ‘+’ sign below, this will pop a dialog box for the creation of a new Partition.
- Now since i already have Linux installed on my system you see that there are 2 partitions of types ‘swap’ and ‘ext4’ these two are the Linux Partitions.But if you didn’t have Linux installed previously you would only find a portion labelled as free space as mentioned above. 1st we will be creating a ‘swap area’ we highlight the ‘free space’ open the new partition creation window and enter the amount of space for swap as equal to the amount of RAM you have. then select the ‘New Partition type’ as ‘Primary’ and finally select ‘Use as’ ‘swap area’. Now as i already mentioned since i already have linux installed, from now on i am going to continue the installation process in a virtual machine and hence the exact partition table and partition sizes may not match.
- Also make sure your ‘Device for Bootloader Installation’ is set to your internal Hard Disk Drive. (Where Windows is installed and Linux is going to be installed) in most cases this is ‘/dev/sda’
- After this is created you press ‘Install Now’ and confirm you changes to the Partition Table as shown below:
- After all this is done you simply need to proceed as follows till the installation starts:
- After this you simply need to continue and give your login credentials (Username, Password) and then the installation begins. After the installation completes you can shut down your computer, remove the bootable USB drive and the next time turn on your machine you should be presented by a grub window as shown below, letting you choose between Linux (Ubuntu, 1st Option) and Windows (Windows Boot Manager). And there you have your own dual booted system.