Dual Booting Windows 11 and Kali Linux: A Step-by-Step Guide

Gevin Nanayakkara
5 min readSep 11, 2023

--

Introduction

Dual booting Windows and Linux can offer the best of both worlds, allowing you to switch between two operating systems on a single machine. In this guide, I will walk you through the process of dual-booting Windows 11 and Kali Linux, providing you with step-by-step instructions to make this task manageable even for beginners.

Prerequisites

Before diving into the dual booting process, ensure you have the following prerequisites in place:

1. Windows 11 Installed : Make sure you have a working Windows 11 installation on your laptop.

2. Sufficient Disk Space : You’ll need enough free space on your hard drive to accommodate Kali Linux. (ex- 60GB for Kali Linux)

3. USB Drive : Prepare a USB drive (at least 4 GB in size) to create a bootable Kali Linux installation media.

4. Download Kali Linux ISO : Visit the Kali Linux website to download the 64-bit Kali Linux ISO image.

5. Rufus Software : Download Rufus, a tool for creating bootable USB drives, from the Rufus website.

Creating a Bootable USB Drive

1. Plug the USB drive into your computer and launch Rufus.

2. Select your USB drive under the “Device” dropdown menu.

3. Click on “Select” next to the “Boot selection” section and choose the Kali Linux ISO image you downloaded.

4. Choose “ISO Image” under “Partition scheme” and click “Start.”

5. Confirm the warning that all data on the USB drive will be overwritten, and click “OK” to proceed.

6. Rufus will format the drive and write the Kali Linux image to it. Once completed, close Rufus.

Preparing Your Windows System

1. Right-click the Windows icon and go to “Disk Management.”

2. Shrink the Windows NTFS partition to create free space for Kali Linux. You can do this by selecting your Local Disk C, right-clicking on it, and choosing “Shrink Volume.” Then, you can enter the amount of space you want to shrink in megabytes (MB).

Accessing BIOS Settings

Accessing the BIOS (or UEFI) settings may vary depending on your laptop brand. Here are two common methods:

- Method 1: While the computer is powered off, press, and hold the specified key for your laptop brand (e.g., F2 for Asus) and then press the power button.

- Method 2 : Restart your computer and press the key (e.g., F8 for Dell) that takes you to the BIOS settings during startup.

BIOS Configuration

Once in the BIOS settings, follow these steps:

1. Disable “Secure Boot” to allow the installation of Kali Linux.

2. Set the boot order to prioritize booting from the USB drive.

3. Save the changes and exit the BIOS settings. The laptop should reboot from the USB drive.

Installing Kali Linux

1. Boot from the Kali Linux USB drive and choose the installation method (standard or graphical).

2. Follow the installation wizard, selecting your preferred language, country, and other settings as needed.

3. Specify your hostname, username, and password for the Kali Linux installation.

4. During partitioning, choose the option that suits your needs. For simplicity, I recommend using the largest continuous free space.

5. Complete the installation process.

Booting into Windows or Kali Linux

After successful installation, you’ll have the option to boot into either Windows or Kali Linux:

- To access Kali Linux, simply boot your laptop, and it should automatically load into the GRUB bootloader, allowing you to choose the desired operating system.

- To access Windows, follow the same process but select Windows from the GRUB menu.

Congratulations! You’ve successfully set up dual booting between Windows 11 and Kali Linux on your laptop.

Additional Configurations (Optional)

If you wish to enhance your Kali Linux experience, consider these optional configurations:

- Updating Kali Linux: Open a terminal and run `sudo apt update` to update your package references. You can also upgrade your Kali Linux to the latest Kali version: `sudo apt full-upgrade -y`.

- Installing Default Packages: Install essential Kali Linux tools by running the provided command in the terminal. Customize your toolset as needed.

Remember, dual booting allows you to harness the power of two different operating systems on a single machine, offering versatility and flexibility for various tasks.

If there is Shut Down Issues After Kali Linux Installation

After successfully installing Kali Linux, you may encounter an issue where the screen is stuck on a black screen with a dragon logo during the shutdown process. This can be attributed to graphics driver compatibility. To resolve this issue, follow the steps below:

1. Identify Your Graphics Card : First, you need to determine the make and model of your graphics card. You can do this by running the following command in your terminal:

lspci | grep VGA

This will display information about your graphics card, including the manufacturer and model.

2. Check for Available Drivers : After identifying your graphics card, you need to check for available drivers. Different graphics card manufacturers may have different drivers for Linux. Most commonly, you will have Nvidia, AMD, or Intel graphics.

- Nvidia: You can check the Nvidia website for the latest Linux drivers.

- AMD: You can check the AMD website for the latest Linux drivers.

- Intel: Intel graphics drivers are usually included in the Linux kernel, so you may not need to update them manually. However, you can check for updates by keeping your system up to date.

3. Update the Linux Kernel (Optional) : Sometimes, updating the Linux kernel can improve compatibility with newer graphics drivers. You can update the Linux kernel using the following commands.

sudo apt update

sudo apt upgrade

4. Install Proprietary Drivers (Nvidia/AMD): If you have a Nvidia or AMD graphics card, you may need to install proprietary drivers for better performance. Use the appropriate package manager to install the drivers.

For Nvidia, you can use the following command:

sudo apt install nvidia-driver

For AMD, you can use:

sudo apt install amdgpu-pro

5. Reboot: After installing or updating the graphics drivers, it’s a good idea to reboot your system to ensure the changes take effect.

6. Verify Driver Installation: You can verify that the new graphics driver is installed and active by running:

glxinfo | grep “OpenGL renderer”

This command should display information about your graphics card and the driver in use.

Remember that Kali Linux is a specialized distribution primarily designed for penetration testing and security auditing. It’s not intended for everyday desktop use, so you might encounter some quirks and limitations with graphics drivers and hardware support. Ensure you have a good backup or snapshot of your system before making significant changes to your graphics configuration.

By following these steps, you should be able to address black screen issues and enjoy a smoother Kali Linux experience on your system.

Thank you for following this guide. I hope it helps you set up your dual boot system effectively. Enjoy exploring both Windows 11 and Kali Linux on your laptop!

--

--