How to Make Kali Linux USB Live Persistence

We know Kali Linux is a penetration testing Debian based Linux Distro. You can make your USB Device Live with Kali Linux and bring it with you wherever you go. We want to make sure our all hacking tools are installed and up to date. With Normal USB Live, you can upgrade Kali, install your required tools but after a reboot, all changes will go away. To fix this problem, Kali Linux Offer USB Live Persistence boot. In this post, we will show you how to make your kali Linux USB live persistence.

First, install Kali in your USB Device. Just download the tool:, plug your USB device, Select Kali ISO file, and click Flash. Wait till it finishes.

Create another Partition for Kali Linux

$fdisk -l
Disk /dev/sdc
 Disk model: FLASH DRIVE     
 Units: sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disklabel type: dos
 Disk identifier: 0x******
 Device     Boot   Start     End Sectors  Size Id Type
 /dev/sdc1  *         64 5706399 5706336  2.7G 17 Hidden HPFS/NTFS
 /dev/sdc2       5706400 5707871    1472  736K  1 FAT12

$parted --align minimal /dev/sdc
(parted) mkpart                                                           
 Partition type?  primary/extended? primary                                
 File system type?  [ext2]? ext4                                           
 Start? 2922mb                                                             
 End? 12gb                                                                 
 (parted) print                                                            
 Model: USB3.0 FLASH DRIVE (scsi)
 Disk /dev/sdc: 124.0GB
 Sector size (logical/physical): 512B/512B
 Partition Table: msdos
 Disk Flags: 
(parted) print
Number  Start   End     Size    Type     File system  Flags
  1      32.8kB  2922MB  2922MB  primary               boot, hidden
  2      2922MB  2922MB  754kB   primary
  3      2922MB  12.0GB  9078MB  primary  ext4

Creating a partition is finished. Now we need to format the partition:

$mkfs.ext4 -L persistence /dev/sdc3
$e2label /dev/sdc3 persistence #label name. It's important

Now we need to mount the new partition and create a configuration file:

$mkdir -p /mnt/my_usb
$mount /dev/sdc3 /mnt/my_usb
$echo "/ union" > /mnt/my_usb/persistence.conf
$umount /dev/sdc3

We are done. Time to test. Create a folder, reboot and see if the folder exists! Hopefully, everything will now be persistent :).


Leave a Comment