> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/kali-linux-setup/dual-boot-setup.md).

# Dual Boot Setup

### Remove Kali Linux from the Windows System

Open Disk Management (Windows 11)

* Go to Disk Management
* Locate Kali Linux partitions
* Delete all Kali-related partitions

***

#### Remove Kali Bootloader (Using CMD)

Open Command Prompt and run:

```bash
diskpart
list disk
select disk <no>        # Select the disk where Kali was installed
select disk 1
list partition         # Display partitions on the selected disk
select partition <no>
assign letter=<any-letter>   # Assign a letter to EFI/Kali boot partition
```

***

#### Access EFI Partition

* Open "This PC"
* Locate the newly assigned drive letter

Open CMD again and run:

```bash
exit
<any-letter>:
cd efi
dir                     # List all boot directories
rd <kali-boot-dir> /s   # Remove Kali bootloader directory
```

***

#### Reboot System

* Restart Windows after deleting Kali bootloader entries

***

### Reinstall Kali Linux

#### Boot from USB

* Insert a bootable Kali USB drive
* Press `Fn + F12` (or system-specific boot key)
* Select USB boot device

***

#### Installation Option

* In the Kali boot menu, select the **first option** (Graphical Install / Live Boot, depending on setup)
