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.
- First of all, download the following software.
- Connect the USB drive to your PC and then format it. (Select File System Type FAT32)
- 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.
- 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.
- Once it is finished, click the close button to exit the Rufus.
- Now install and run Partition Wizard Tool on your PC.
- In the Partition Wizard tool, find your connected USB drive and hit the right-click, and then select Split option to Split the Partition.
- Now select Original Partition Size as “3.5 GB” and then OK, and Apply Changes.
- 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.
- Right-click the deleted Unallocated partition, and then create a new partition.
- Enter the following details in “Create New Partition Wizard,” then OK and apply changes.
- Partition Label ⇒ Persistence
- Create As ⇒ Primary
- System Type ⇒ Ext4
- 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).
- When Kali Linux starts, select the “Live USB Persistence” option and hit the Enter.
- Once the Kali Linux starts successfully, then open the Terminal in the Kali Linux.
- 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
- 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
- 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.
- 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
- Type the fourth command umount /dev/sdb2 and hit the Enter Button.
Command: umount /dev/sdb2
- Run the last command reboot.
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