Getting Kali Linux image

Go to Downloads and download latest live image. Make sure you don’t download the installer image.

Make USB bootable

Use dd to write the kali image to USB.

In linux environment:

1
# dd if=kali-linux-xxxx.x-live-amd64.iso of=/dev/sdX status=progress bs=4M

Replace kali-linux-xxxx.x-live-amd64.iso with downloaded iso iamge path and /dev/sdX with path of your USB device. You can find USB path by running lsblk in terminal. Make sure you don’t select the existing linux installation drive.

Create persistence partition

Create a primary partition with fdisk:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# fdisk /dev/sdx

Welcome to fdisk (util-linux 2.35.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

The device contains 'iso9660' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.

Command (m for help): n
Partition type
   p   primary (3 primary, 0 extended, 1 free)
   e   extended (container for logical partitions)
Select (default e):p

Selected partition 3

Press n to create a new partition. Type p to make it primary. Hit enter twice so all the remaining space would be allocated to new partition.

Type w to write changes to USB drive.

Create filesystem

Create ext4 filesystem in new partition.

1
2
# mkfs.ext4 /dev/sdX3 -L persistence
# e2label /dev/sdX3 persistence

Mount new partition

Mount the new created partition somewhere in your filesystem.

1
# mount /dev/sdX3 /mnt

Create configuration

Create a configuration file in new partition which we mounted earlier at /mnt:

1
# echo "/ union" > /mnt/persistence.conf

Un-mount the partition

Un-mount the partition.

1
# umount /dev/sdX3

Reboot

Reboot and press your hardware dedicated button to boot from new created USB. Don’t forget to select the persistence option from Kali menu.

Thanks for reading. 😉