How to create kali linux live USB with encrypted persistence?

Kali linux live
Kali linux live

Your query?
  • How to create live Kali Linux USB?
  • Can i create any secure partition on Kali live?
  • How to load my entire Kali Linux system in pocket?
  • How to use luks cryptsetup on kali?
There are have a lot of people who want to use kali Linux alongside windows machines. But, they can't cause some limitations. You can use many operating systems include kali Linux using a virtual machine. But, you need a batter configured computer not only this it's also not fully featured. The second one is to create a dual boot system to install kali Linux inside your windows. But, every computer hardware doesn't support this in the BIOS setup. We try those ways to keep our windows system in touch include kali Linux.

Why should choose kali live encrypted persistence?

Some of the people into us don't know the third option which has some extra features include what you want to use inside a window. Which has the official iso file to install kali Linux live on a small Pendrive? You can use kali Linux live on a Pendrive just by booting the iso file on the Pendrive & start in live mode. But, in this case, none of your data will be stored in the Pendrive. Everything will be erased after boot kali again. If you don't care about losing any file & wanna just for temporary use. So, you can check out my other article(How to create multi-ISO bootable USB drive by ventoy on Linux & windows?) & boot your kali Linux live here. If you try this by ventoy than your Pendrive will not be useless for kali live you can store file too out of kali & use anywhere. But, Dont's use ventoy if you want to use your live kali Linux permanently & want to store the necessary file in Pendrive. You have two options first just create live USB persistence to store file & second create live USB encrypted persistence. The first one has no security anyone can access your Kali Linux system just by boot it. But, in the second option, nobody can access your partition where your store your files without your secret passphrase. I still writing the post on my kali Linux live encrypted persistence. So let's start How to install kali Linux live USB encrypted persistence?

What you will need?

  1. The Minimum recommended an 8 GB Pendrive.
  2. A computer running Windows, Mac, Linux.
  3. Basic knowledge to understand me.
  4. Almost a long time half-a hour.

How to start the installation?

First of all download the official Kali Linux xx-Bit (Live) iso file from the kali Linux download page. You can download the iso file fast by use torrent. You can choose 32 or 64 bit according to your computer processor architecture. Next download Etcher for your system to make bootable Pendrive which is suggested by kali organization. Creating bootable Pendrive by etcher also too easy just install etcher & plugin your Pendrive to the computer. After that first select the downloaded kali live iso file then your Pendrive & flash.
Creating kali live bootable usb by etcher
Creating bootable pendrive.(img:etcher)

Wait a few minutes & it will be ready to use. Now go to your computer BIOS setup & select your Pendrive at the first boot.

How to open the BIOS menu?

This different for the individual motherboard. You can try to enter the BIOS by pressing Esc, Delete, F10, F2, F1. You can combine Ctrl + Alt + Delete or Alt + Esc if not work only by pressing one of them. If it still doesn't work you can google it by mention your computer details. Note that Key F10 could launch something that looks like BIOS.

How to install kali Linux live encrypted persistence?

After setting all of the above now load kali Linux live to install from BIOS setup. It's not acceptable to submit a screenshot after every step of command. As I told you to need a basic understanding of how is this work. Let's move to the installation. After boot Kali Linux live iso file you will see some option for the first time chose first one live mode.& it will load the whole system. You can use this for temporary use if you don't want to use persistence. Now to create live encrypted persistence open terminal or type Ctrl + T.Now follow the command shown below.
sudo bash
fdisk -l

fdisk -l results
list of available disk & partition

Find your pendrive.In my case it's /dev/sda 29.45 GB here is 3 partition.In your case, the Pendrive path could be different.Such as /dev/sdb,/dev/sdb
fdisk /dev/sda
After pressing n to create a new partition.Press Enter for four-time.
fdisk -l
This command to check the third number partition created or not. Now it's time to encrypt the third partition which we will use later to store data.
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3
It will prompt you to set a password. Type your security passphrase twice. You will need this to unlock the partition later for using purpose. Remember you have to mention partition number 3.
cryptsetup luksOpen /dev/sda3 bbsusb
Here you can change bbsusb to your name.
mkfs.ext4 /dev/mapper/bbsusb
e2label /dev/mapper/bbsusb persistence
mkdir -p /mnt/bbsusb
mount /dev/mapper/bbsusb /mnt/bbsusb
echo "/ union" > /mnt/bbsusb/persistence.conf
umount /dev/mapper/bbsusb
cryptsetup luksClose /dev/mapper/bbsusb
Change everwhere bbsusb to what you was named instead of bbsusb.
Now close terminal & reboot. Now chose encrypted live persistence instead of live mode. It could ask for the password that you were set recently for lock partition in the middle of loading. Enter the correct password & it will again load the entire system. Now test the persistence work or not by changing the wallpaper or creating any file. Your every change will be saved if you are done everything well. If you face any problem during the process feel free to comment below.
Stay with us & humanity...
-... -... ...

Post a comment