Exact matches only
Search in title
Search in content
Search in posts
Search in pages

Dual-boot Windows 7 and Kali Linux

I am reading page: 1 2

This article is a step-by-step guide on how to dual-boot Windows 7 and Kali Linux on a single hard disk drive (HDD). Kali Linux is what used to be BackTrack Linux, a distribution designed for penetration testing and security professionals. It ships with about 300 penetration testing and hacking applications installed.

While BackTrack is based on Ubuntu, Kali Linux is based on Debian, and uses the complete Debian Installer. As a result, the installation process is different from that of BackTrack, which uses Ubuntu’s graphical installation program.

The objective here is to show how to install it on an HDD alongside an existing installation of Windows 7, with the Windows 7 boot manager as the “master” boot loader, so that at the end, when the computer is (re)booted, you will be presented with a boot menu that looks just like the one shown below. Selecting Windows 7 boots the system into Windows 7 and choosing Kali Linux will, by default, take you to the Kali Linux boot menu, which is the same thing as the GRUB 2 menu, the version of GRUB used by Kali Linux.
Windows 7 Dual-boot Menu

To bypass Kali Linux’s boot menu, simply edit the file named /etc/default/grub and change GRUB_TIMEOUT=5 to GRUB_TIMEOUT=0. Then run the update-grub command.
Kali Linux Windows 7 GRUB 2

Now that we know what to do, and what the result will be, let’s get it done. If you have not done so already, download an installation image of Kali Linux from here.

1. Shrink the Windows 7 C Drive: My test system has an existing installation of Windows 7 on a 500 GB HDD, with just two primary partitions. This is how they appear in Windows 7’s partition manager. The task here is to shrink the C drive to create room for installing Kali Linux. To do that, right-click on the C drive and select Shrink Volume.

Note: If you intend to install Windows 7 afresh, this process will be a lot easier if you set aside the free space that will be used for Kali Linux during the installation of Windows 7.
Windows 7 Partitions

If you have enough free space on the C drive, the system will suggest a 50-50 split of the free space. Which is just good enough for this test installation. Shrink.
Windows 7 Shrink Partitions

After the operation has completed, you should see the newly reclaimed space next to the C drive. You may exit the partition manager and reboot the computer. Be sure to have the installation disc of Kali Linux in the optical drive before rebooting.
Windows 7 Partitions

2. Install Kali Linux: The best option to select on Kali Linux’s boot menu is Graphical Install. It gives you a point-and-click installation process. Install works just as well, but the interface is ncurses-based.
Kali Linux Boot Menu

For installing Kali Linux, the following partitions will be created: /boot, /, /home, and Swap. In that order. The /home partition is optional. At the disk partitioning methods step of the installation process, you get a bunch of options. Because none of the guided options will create a separate /boot partition, creating the partitions will have to be done manually. So select “Manual” and click Continue.
Kali Linux Debian Installer

Here you can see the existing Windows 7 partitions, both of which are primary partitions. The free space, reclaimed from Windows 7 in the previous step is what will be used for creating the partitions for Kali Linux. To start creating the partitions, select the free space and click Continue.
Kali Linux Create Partition

Create a new partition. Continue.
Dual-boot Windows 7 and Kali Linux

This shows the total amount of disk space available for Kali Linux. The /boot partition will be created first, so you need to specify the amount of disk space for it.
Kali Linux Create Partition size

For this test system, I assigned 300 MB to it. Continue.
Dual-boot Windows 7 and Kali Linux

Because you still have two primary partitions to use, you can create the boot partition as a primary or logical partition. Either option will work, but the installer prefers creating it as a primary partition, if the boot loader is going to be installed in it. For this test installation, I chose to create it as a logical partition. Continue.
Dual-boot Windows 7 and Kali Linux

Beginning. Continue.
Kali Linux Create Partition size

This step shows the details of the boot partition you just created. The only thing you need to change here is the mount point. Double-clicking on it will open another window where you can specify the correct mount point.
Dual-boot Windows 7 and Kali Linux

Here’s what it should look like after the mount point has been specified. The other option you might want to change here is the Bootable flag.
Kali Linux

There is a good reason it should be enabled, but the system will boot even if it is disabled. It just depends on your BIOS version. For this test installation, it was disabled and the system still worked perfectly.
Dual-boot Windows 7 and Kali Linux

Here’s the final details of the boot partition. Scroll to “Done setting up the partition,” then click Continue. Note that the steps you used to create the boot partition will be repeated for the other partitions.
Kali Linux

Back to the main disk partitioning window, you can see the boot partition you just created, plus the remaining free space. Select, the free space, then click Continue.
Kali Linux

I am reading page: 1 2

Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Digital Ocean SSD VPS Cloud Server droplets

Digital Ocean is a VPS/Cloud hosting provider. For just $5 per month, you can get yourself a Cloud server with 512 MB of RAM, 20 GB super-fast SSD, free snapshots, plus backups for a minimal fee. All via a simple graphical interface.

And by signing up with this referral link, you can help support this website.

If you are reading this, your ad could also be occupying this space. Contact us to make it happen.

If commenting on this article is closed, please post your comments at forum.linuxbsdos.com.

89 Comments

  1. MARVELOUS says:

    Please how do i install RT3070 drivers on kali linux for my wirrsless adapter?

  2. MARVELOUS says:

    AM having problem dual booting kali linux and window 7 on my pc it do say software RAID not available when it gets to partitioning disks. Pls i need your help

    • finid says:

      Well, what is your HDD configuration. How many do you have, and are they in a RAID set up?

      • MARVELOUS says:

        pls i don’t understand that HDD configuration, how do i know my HDD configuration.
        my HDD is 500gb. but it is the kali linux mini downloaded. hope you get that?

        • finid says:

          What type of PC do you have? How many hard drive does it have? How is the disk partitioned? etc. If the disk(s) is not part of a RAID setup, the installer should not be saying anything about RAID software.

          • MARVELOUS says:

            am using hp probook 4540s, i think there are four partitioned disks there, one is Local disk(c:) another one is HP_RECOVERY(D:), another one is SYSTEM(G:), another one is HP_RECOVERY(E:). (D:),(G:) and (E:) are primary partition.

          • finid says:

            Ok, those are not disks. They are partitions of a single disk. If D, G and E are all primary partitions, then C is also, which means, if the partitioning scheme is not GPT, then you can’t install anything else unless you first delete one of the partitions and create a logical partition from it.

            If you don’t mind doing without a recovery partition, the only partitions you can delete are D and E. What are their sizes?

          • MARVELOUS says:

            how do i create a partition in GPT scheme. (D:) contains 19.3GB while (E:) contains 1.98GB

          • finid says:

            You can’t change the partition scheme with another OS still running. You’ll have to wipte the disk and reinstall to make that type of change.

            You need to be absolutely sure what the partitioning scheme used is. To do that, from Linux, boot into the Kali Linux live disk, then launch a shell terminal and type, as root, fdisk -l. What is the value of Disk label type? I think you should read http://www.linuxbsdos.com/2014/11/08/a-beginners-guide-to-disks-and-disk-partitions-in-linux/ to brush up on this.

            If the partitioing scheme is not GPT, you’ll need to delete one of the recovery partitions before you can install any other OS on that disk.

          • MARVELOUS says:

            have checked it my partirion scheme is MBR not GPT, what can i do? do i have to convert it to GPT or what do i do? Thanks for your positve response

          • finid says:

            If it’s MBR and you have 4 primary partitions, you could probably convert it to GPT if your computer meets the specs. I’ve never done it, but if you google for it, you will find articles that will show you how.

            If it’s not possible, your other option is to delete one of the recovery partitions, or even both of them, then use the combined space to install Kali. If the combined space is too small, you can shrink the C drive.

          • finid says:

            It’s doubtful that you can convert a disk with an OS on it from one partitioning scheme to another.

          • MARVELOUS says:

            Please how do i install RT3070 drivers on kali linux for my wirrsless adapter?

          • MARVELOUS says:

            please how do i install pdf reader on kali linux. thanks

      • MARVELOUS says:

        i think the best thing to do is to delete the E: and D: partition

        • finid says:

          But not before checking if you can backup any data in there that you might need.

          Deleting both willl free up about 21 GB, which is more than enough to install Kali.

          • MARVELOUS says:

            mr. finid still the same thing, i even used a partitioning wizard to change it to logical partition still saying software raid not available, it is even saying logical volume manager not available (LVM). Is it because i downloaded the mini version, and is because it is debian?

          • finid says:

            Try downloading Linux Mint 17.1 and see what happens. The download link is here. The installer is a bit more user-friendly. I’ll like to see if it says anything about software RAID.

          • MARVELOUS says:

            i think this linux mint is not free i have to buy it, and there is no how i an get it because am from Nigeria. And asper the debain linux i was talking about, i think i figure out the problem, the problem is from detecting disk, you know it will first detect disk before going to partitioning, and i think when it get to detecting disk, it do say no disk detected, please select a drive needed by your disk and it will list some options which i don’t understand, then i do select continue with no disk drive and the debian tries to load it from their website, that it when it do say software RAID not available and under it it will write some notes like this,the available kernel doesn’t seem to support software RAID (MD) devices. This should be done by loading the necessary modules.
            DID YOU GET THAT?

          • finid says:

            Mint is free. the installer will make it easier to see the partition layout on the disk. Download the Cinnamon desktop from any link at http://blog.linuxmint.com/?p=2714

          • finid says:

            ninja! una don pafuka everything. But no wahala, Mint na free. Just download am and install.

          • MARVELOUS says:

            victory at last master finid i downloaded kali linux full version worth of 3GB and i successfully install it on my pc and also dual boot it with window 7.Thank you so much. But there is a problem. I can’t login to the main kali after booting. How do i login?. Thanks in advance

          • finid says:

            You should have specified a password for the root account during installation. Clicking on the login screen will bring up the password field. Enter the password you specified during installation.

            See also Create a standard user account on Kali Linux. You may view other Kali-specific article at linuxbsdos.com/category/kali.

          • MARVELOUS says:

            Thnaks Mr finid it works, av created a standard user on my kali linux, thank you so much you’ve been a good master. I would like you to follow me up so as to know the proper usage. Thanks

        • MARVELOUS says:

          Please how do i install RT3070 driver on kali linux for my wireless adapter ?

  3. Frank says:

    Thanks, worked perfectly.

  4. siddarth says:

    hi, i have win 8.1 in my c drive , and i have 2 other partitions, i have installed kali in a 30gb(sda #7) partition , but at the last step of installation while we have to install grub , it says “no other operating system detected” so its not detecting windows , now i chose option “no” and gave /dev/sda7 . now i restarted and went into windows and with easybcd i added kali option in boot menu , but when i click on that option it doesnt boot into kali it says some files missing

    • finid says:

      I’m guessing that since you’re installing Windows 8.1, that the hardware has UEFI firmware. If true, this is not the right guide to use.

      Does you computer use UEFI firmware?

      • siddarth says:

        yes the bios mode is uefi , what is the correct way to do it?

        • finid says:

          Log into Windows and delete the partitions that were created when you attempt to install Kali. Then make sure that you have a single partition with enough space for Kali, so when you start the installation process, point the installer to that free space. I haven’t tried this with Kali, so I’m not sure, but it might be necessary to partition the space manually.

          Kali will install GRUB to the /boot/efi partition, so you will not need to use EasyBCD.

          I’ll try and write a detailed tutorial on this this week.

          by the way, what PC model are you using?

          • siddarth says:

            acer travelmate p643-m

          • siddarth says:

            u mean install kali on the same partition as windows?

          • finid says:

            No, install Kali on a separate partition. That will likely be space that you used in the previous attempt. I just wanted to make sure that that space will be in one partition, since from the previous installation attempt, the Kali installer had partitioned that space into at least 2 partitions

            If you’ve not done this before, you might want to hold on while I put together a detailed tutorial on how to do it.

            When you log into Windows, how many partitions do you see from the partition manager. If you can take a screenshot and post it at the forum. That will help me in getting the tutorial right.

          • siddarth says:

            where should i upload screenshot? btw i can see 5 partitions ,
            300 mb healthy(recovery partition),
            c drive has windows
            new volume d has other files
            and there is a 29.30 gb partition in which i hav installed kali its healthy(EFI partition),
            and 100mb healthy(EFI system partition)

          • finid says:

            No need to upload the screenshot.

            Ok, is D a partition that you made yourself, right?

            If you installed Kali, there should be more than 1 Linux partition for it, though Windows will only see then as “healthy primary partitions”. IF you want to retry the installation, delete the Kali partition, so it is blank. Then retyr the installation. The Kali installer will install GRUB in the EFI system partition. If it does not offer automatic disk partitioning and you have to create the partitions manually, do not create a boot partition. Only create a partition for root and Swap. Optionally, you may create one for /home.

          • siddarth says:

            what about the 100mb (efi syatem partition) is it related to kali , should i delete that too before re-installiing?

          • finid says:

            No, don’t touch that. That was created by Windows, but Kali will install GRUB there.

          • finid says:

            I have a solution, which I’ll publish in a detailed tutorial before noon today.

          • siddarth says:

            ok give me the link

Leave a Comment