DUAL BOOT KALI LINUX AND WINDOWS: INSTALLING KALI LINUX WITH WINDOWS 10


Dual boot Kali Linux and Windows

There are several ways to use Kali Linux. You can use it in small devices like Raspberry Pi, use it in virtual environment inside other operating systems and even in physical machine alongside other operating systems. Every use has its own advantages and disadvantages. If you want to hear about those, refer this ARTICLE It also explains how you can install Kali Linux in virtual box or virtual environment. So, surely check it out.

Dual booting Kali Linux with windows sounds fancy and it really is. Some devices might not be that powerful to use Kali in virtual environment(like mine). Your device often lags and hangs frequently if you used virtual environment for another operating system. It because of the limitations that your computer has like low RAM, low processing speed of your CPU, low Hard disk space and so on.
So, another alternative to use Kali without losing any power of your machine to use is to boot it in a physical device. You can use it solely or can use multiple operating systems in same device. Using multiple OSes in same device is possible through dual boot and you are going to learn about it in here now.

To dual boot Kali Linux alongside windows in the same machine you just need to follow these 3 steps:

  1. Create bootable disk
  2. Create raw volume or space in your hard-drive for Kali
  3.  Boot with that disk
Important Note: Before doing anything, if you are attempting these for the first time backup every important file. A small mistake in this process can cost you a lot of damage.

Let me explain now in detail how it’s done. 

1.Creating bootable disks


Why create bootable disks?


To install any operating system, you need its files and let the computer recognize them as the files of an operating system. Creating bootable disks means making disks that contain all the files that are needed to install an OS into a system and letting the waking system know that it can use that disk to start installing those files through it.
You can either use CD-RAW/DVD-RAW drives to put Kali's system files and make bootable drives or use other storage devices like flash drive, pen drives etc. Pen drives and flash drives are easily available, portable and can be used multiple times but CDs/DVDs has less storage capacity, vulnerable to small stresses, less portable, and most importantly, are not re-writable. It means you cannot use normal CDs/DVDs to write data multiple times. It’s for one time use only. There are CDs/DVDs which can be used multiple times but they are more expensive and vulnerable to small stress, less portable and can be easily corrupted. So, USB drives are popular nowadays as storage devices. Why spend money in things that is destroyed easily and has less capacity? But don’t worry I’ll teach you how to create boot-able disks in both devices.

How to create a bootable CD/DVD or pen drive?

1. Creating bootable CDs/DVDs

Follow these simple steps:
  • Download an ISO file of the version of Kali Linux you want to use from this official website of Kali Linux. Click Here . You can either use torrent to download or simply through your browser's download manager. Select suitable option.
    iso file
  • Now get a blank CD or DVD that can be written and insert it to your computer.
  • Now burn the ISO file to that CD or DVD.
-To burn the ISO file just right click on that ISO file and click "Burn Disc Image".
disc image burning
            -Choose the CD/DVD you just inserted and then click "Burn".
burning cd

            -Wait until your computer finishes.

There you go. You created a bootable Kali Linux CD/DVD drive.

2. Creating boot-able flash drive/pen drives:

To create boot-able Kali Linux pen drive follow this article.


2.Create raw space in your hard disk to install Kali Linux

To install Kali Linux you need space in your hard drive. Instead of creating and formatting the partition in your hard drive later during the installation process it’s efficient and easy to reserve the space now through current OS. Decide how much space you need for your Kali Linux OS. I recommend you to use 40 GB which is more than enough for almost all tasks you’ll do in that operating system. If you are using Windows (probably you are), follow these steps to create the space.

  1. Press Windows button+R at the same time and you’ll see a dialog box appear.

    run command
  2. Now type diskmgmt.msc and hit enter.    
  3. Now In the boxes with blue top, choose a partition that has at least 40 GB of free space. Right click the partition and click Shrink Volume.
    disk management
  4. Now, put 40000 value or any amount of space you want to give your Kali machine in the highlighted box or in the box titled “Enter the amount of space to shrink in MB”. Just remember to put that value in MB. FYI, 1GB = 1040 MB. Do the calculation for your space now.
    hard disk partition
  5. You’ll see a new box with blue top appear that has the space of 40 GB or maybe a little less. Now right click that partition you just created and click Delete Volume. Click Yes in the confirmation message box and then you’ll have a black top empty partition with the label “Unallocated”.     
    new volume
  6. Now its time to boot through your bootable drive. Remember to put the drive into your computer before you restart your computer.

3.Booting new OS and installing Kali Linux

  1. Put the boot-able disk into the computer and choose the disk you want to boot through in boot menu. It’s possible that you don’t receive the opportunity to choose the disk simply because you didn’t get the boot menu. Your PC may boot through the disk you inserted by default and you’ll see blue screen with “Kali Linux” written. If this is the case then you are okay to proceed but if it’s not, then you need to find the key combination for your device to press and to enter into the boot menu. Every manufacturing company has their own key combinations like Fn+F11, Fn+F2 and so on. Just google “Key combination for boot menu in (Your device name and model) ” and there you’ll find the combination. If you are still stuck, call the shop from where you purchased your computer and ask for the combination.You need to press that key combination immediately after you power on your computer to get into the boot menu. It will not work if you press later, your system will boot through the default disk drive.
  2. If you have entered into boot menu, choose the disk that you inserted into your computer to boot. It may be either DVD, CD or pen-drive.
  3. Now you’ll see a blue screen with “Kali Linux” logo. Select Graphical Install.
    kali linux dual boot
  4. After some booting process you’ll be prompted for language selection. Select your preferred language and click "Continue".
  5. Select your location and click "Continue".
  6. Now select the keyboard configuration: American English or any other type as you require.
  7. After some Hardware detection and loading of additional installation components you’ll be prompted for network configuration. Select WAN if you have WiFi or Ethernet if you have Ethernet connection.
  8. If you have none, click continue without typing anything. After you see network configure failed message click continue and choose "Do not configure the network at this time” option.
  9. Now type your host-name. It is the username of your machine. After host-name, create a password and click continue.
  10. This is the most important and risky part for beginners. If you did slight mistake then there is high chance that you’ll destroy all your data. So, it’s better to backup your data before doing anything from here.
    partition wizard
  11. In the partitioning menu, click in MANUAL option.
  12. You can see the FREE SPACE partition in here. We’ll install our Kali Linux in this partition. Select it and click Continue.
  13. Now we have to create a two new partition with that free space. One partition is for swap and another for the system. Select “Create new partition” and click “Continue”.
  14. In the given space, I recommend you to allocate 4GB of space for swap partition. So, type 36 GB in the field and click continue.
  15. Select partition type as PRIMARY.
  16. For location for the new partition select Beginning  and hit continue
  17. Now, in this dialog you can see at bottom the “Bootable flag” is OFF. Select that option and hit enter to change the value to ON. Then select Done setting of the partition. 
  18. Here you can see we created the space for our system and there is still some space titled FREE SPACE. We will now use that space to create our swap partition.
  19. Select the Free space and hit continue. Again continue and then again continue to use all space.
  20. In ‘USE AS' option, instead of “Ext4 journaling file system” select “swap area” and hit continue.Without turning the bootable flag on select “Done setting up the partition” and hit continue.
  21. Now we have completed all the steps. So, select “Finish Partitioning and write changes to disk” at the bottom of the dialog and hit continue.
  22. Select “Yes” to confirm you want to begin creating the partition and installing the system and hit continue.
  23. It will take some time to install the system so wait.
  24. After the installation is complete, choose ‘no’ for network mirror.
  25. Now GRUB boot loader will be installed into your system. It will help boot both Kali Linux and Windows side by side as you require.Click ‘yes’ to install the grub boot loader(GBR) to master boot record(MBR)
  26. Now choose your hard disk to begin installing the boot loader into.
  27. Hurray, you’re now all set. Click continue to finish the installation. Remove your bootable removable media. Now your system will Reboot and you'll see something like this.

    Congratulations! You have successfully installed two OSes in your single computer machine. Now hit Enter to boot into Kali Linux.

Post a Comment

2 Comments

  1. Very nice article, but am I supposed to write 36 gb or 4 gb in the field when creating the partition or swap area??

    ReplyDelete
    Replies
    1. You first select the type of partition to make and then select the respective partition size. For example, if you want to make a swap area of 4GB, select "Swap Area" and then type in the 4GB for its spacing. Sorry for that image to create confusion, it was supposed to be on the later steps.

      Delete