How to make Kali Linux Live USB Persistence

Kali Linux has over 500 preinstalled penetration testing programs to learn about Ethical Hacking & Cyber Securities terms. To become an expert in cyber securities, Kali Linux is the right place to get started. It offers dozens of hacking tools such as WiFi-Phisher, WiFi Jammer, John The Ripper, WP Scanner, The FatRat, etc.

We can either install Kali Linux or use Kali Live. The main problem with Kali Live is when we use Kali Linux live USB and make changes in Kali Linux or install new packages in Kali, everything gets wiped when we reinsert USB or restart Kali Linux. But don’t worry, In this guide, we will show you step by step, How to create Kali Linux Live USB Persistence.

Kali Linux Live USB Persistence

Recommendation ⇒ To Make Kali Linux Live USB Drive, you must have at least 16 GB USB Drive and a minimum of 8 GB as we will partition USB Drive.

  1. First of all, download the following software.
    • Download Kali Linux ISO ⇒ Here (Once you’ve downloaded, You must verify the Kali Linux ISO image file to check whether it is real or something modified by hackers)
    • Partition Wizard Tool ⇒ Here
    • Download Rufus ⇒ Here
  2. Connect the USB drive to your PC and then format it. (Select File System Type FAT32)
  3. Use Rufus (Bootable USB drive Creator Software) tool; it is a portable version, so you don’t need to install, run it, and then use it.
  4. Select the Kali Linux image file and click the start button. It takes a few minutes to write the Kali Linux image file on your USB drive.
Kali Linux Live USB Persistence
  1. Once it is finished, click the close button to exit the Rufus.
  2. Now install and run Partition Wizard Tool on your PC.
  3. In the Partition Wizard tool, find your connected USB drive and hit the right-click, and then select Split option to Split the Partition.
Kali Linux Live USB Persistence
  1. Now select Original Partition Size as “3.5 GB” and then OK, and Apply Changes.
Kali Linux Live install
  1. You have successfully created two partitions on a USB drive. In the first partition, Kali Linux is installed, and in the second partition, nothing. Now right-click the second partition and delete it.
  2. Right-click the deleted Unallocated partition, and then create a new partition.
  3. Enter the following details in “Create New Partition Wizard,” then OK and apply changes.
  • Partition Label ⇒ Persistence
  • Create As ⇒ Primary
  • System Type ⇒ Ext4
Kali Linux Live USB Persistence
  1. Restart your PC and then boot with Kali Linux USB Drive. (Press “Escape Key” when PC is about to start and Boot the system via USB Drive under the Boot Device Options).
Kali Linux Live USB Persistence
  1. When Kali Linux starts, select the “Live USB Persistence” option and hit the Enter.
  2. Once the Kali Linux starts successfully, then open the Terminal in the Kali Linux.
Kali Linux Live USB Persistence
  1. To check the USB Partition, type the following command, then hit the enter button. It will show you all the USB drive partition.
Comman: fdisk -l
  1. Now we will create the directory. To do it, type the following command and hit the enter button. The directory will be created under the “mnt folder”.
Command: mkdir -p /mnt/kali
  1. Type the second command mount /dev/sdb2 /mnt/kali/ and hit the Enter.
Command: mount /dev/sdb2 /mnt/kali/

Note: “sdb2” is the second partition of the USB Drive.

  1. Then, type the third command echo “/ union” > /mnt/kali/persistence.conf and hit the enter button on your Keyboard.
Command: echo "/ union" > /mnt/kai/persistence.conf
  1. Type the fourth command umount /dev/sdb2 and hit the Enter Button.
Command: umount /dev/sdb2
  1. Run the last command reboot.
Command: reboot
Kali Linux Live USB Persistence

Now boot your PC using Kali Linux USB Drive and select the “Live USB Persistence” option instead of Kali Live.

Now you can use Kali Linux Live USB Persistence Drive and install packages and programs in Kali Linux and use it without any trouble. Boot your PC with Kali Linux Live USB and enjoy the moveable Kali Live USB Drive.

In order to install Kali Linux on virtual system, you should read this Guide: How to Install Kali Linux on VMware

7 thoughts on “How to make Kali Linux Live USB Persistence”

  1. heya I’m getting the following error on the third command. ‘zsh: permission denied: /mnt/kali/persistence.conf. I’m using sudo at the beginning of the command…Any help apreicated.

  2. I had to run “sudo su” prior to being able to successfully run that command. It doesn’t specify, but the reason why “[email protected]” is red in his above screenshot example is because it’s being run in an elevated root status. Simply typing “sudo” in front of the command won’t work. You have to type “sudo su” as its own command before running the command you’re stuck on. Then you should be good to go.

Leave your reply here

Scroll to Top