Skip to content

Latest commit

 

History

History
117 lines (88 loc) · 6.99 KB

cl88f4l1h003h6bnvhu1tek7i.md

File metadata and controls

117 lines (88 loc) · 6.99 KB

How to dual boot encrypted Kali Linux with Windows 11

%%[join-cta]

Prerequisites

  • Windows 11 already installed and running
  • Free space on drive where we are going to install the Kali Linux
  • Bootable USB drive with Kali Linux

Preparation

Follow the Kali installation as usual until you encounter the partitioning step - choose "Manual partitioning". This screen is the main one we are going to come back to after each of partitioning operation. I'll be using the highlighted free space to setup the Linux partitions. ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663398953282/UaCBIoqB-.png align="center")

Create non-encrypted boot partition

  1. Double click the free space (or click Continue with Free space selected).

❗ When writing a guide, I've tried different solutions for placing the boot partition. Now I know it should be set as ext4, /boot mount point, not bootable and not encrypted. I've tried to change the images to correct ones, but I could omit a few. Please just remember ext4, not bootable.

Prepare encrypted filesystem partition

  1. Select Configure encrypted volumes ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663450180046/YNoArUTuJ.png align="left")

Configuring LVM

You are welcomed with the following screen. ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663417659528/pYk6y4nP5.png align="center")

  1. Create new volume group "kali-vg1" and use the whole filesystem partition. ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663419032944/erIq1xBXy.png align="left")

ℹ Only swap and root are required. I'm using separate var and tmp mainly because of security reasons, separate home allow me to mount that in other distribution.

ℹ Please take these volume sizes with a grain of salt, I'm using small volumes to save on space when writing this guide (it doesn't matter for showcasing this idea).

  • Select Finish and Continue.

%%[support-cta]

Configuring mount points

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663452051571/WE3mRTzpk.png align="center")

Now it is time to final step: assigning mount points to freshly created logical volumes.

  1. Highlight the swap volume and click Continue (or double click). ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663421308641/uRgdnMO14.png align="left")

After reboot

With the setup I provided there is one more step - optional - without it, your machine will boot up automatically to Windows. You can still boot the Kali by interrupting the booting process (F2 on my Acer) and selecting the kali from boot manager.

ℹ If you want to be more stealthy with your Kali, so it is a bit harder to determine you are using it, it is perfectly fine to stop here.

Launch Kali either by

  • interrupting the booting process and selecting Kali from boot manager,
  • or restarting Windows with Shift key pressed when choosing Restart option from power menu; then select proper device to boot up Kali

Open console and type

sudo su
nano /etc/default/grub

Add the following line: ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663449674607/45vi6Gxcc.png align="left")

Save the file and run update-grub command ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663449771872/FOckD4IVe.png align="left")

That's it! Now you can select both Windows and Kali on launch. You successfully achieved dual boot with Windows 11 and Kali on encrypted volume! ![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1663449881179/YpZnDgvx4.png align="left")

Additional readings

%%[follow-cta]