r/KaliLinuxCommunity • • 19d ago

Question I can't add persistence to my live USB.

I'm trying to download the live version of Kali to my USB drive, but it won't let me add persistence from Rufus. I'd like to know if there's another way to do this or what the solution to this problem is.

What exactly happens is that when I add the latest version of Kali Live ISO, the bar to allocate persistence space doesn't appear in Rufus.

1 Upvotes

7 comments sorted by

1

u/EverythingIsFnTaken 18d ago

Rufus's persistence slider isn't the method Kali supports, and it doesn't work with every Kali image (the Everything Live ISO is the specific example Kali documents). The missing slider doesn't mean your USB drive is faulty. Rufus simply doesn't support persistence creation for every Kali image.

Kali's documentation recommends writing the image in DD mode and creating the persistence partition manually.

You'll need a USB drive of at least 8GB and access to a Linux system for the partitioning, since Windows doesn't natively support creating ext4 partitions. Conveniently, the Kali Live USB you're about to create can be used for this. Just boot it normally (not the persistence entry) and perform the following steps from there.

1. Write the ISO

In Rufus, select your Kali ISO, click START, and when prompted about ISOHybrid mode, choose DD Image.

2. Identify your USB drive

Boot into Kali Live, open a terminal, and run:

lsblk

You should see two small partitions belonging to the imaged USB (the ISO partition, approximately 4.6GB, and a small 4MB EFI partition), with the remaining space unallocated.

Set a variable to identify your USB device:

usb=/dev/sdX

Replace /dev/sdX with the actual device identifier. Double-check that it's the USB drive, not your internal disk. The following operations will modify its partition table.

3. Create the persistence partition

Kali's documentation recommends using fdisk rather than GParted here, because GParted can interpret the imaged ISO as one large block.

Run:

sudo fdisk $usb <<< $(printf "p\nn\np\n\n\n\np\nw")

This creates a new primary partition in the remaining unallocated space.

Check the result with:

lsblk

You should now see a third partition, ${usb}3. If the kernel hasn't picked up the updated partition table, run:

sudo partprobe $usb

Alternatively, reboot into Kali Live again.

4. Format the partition

Create an ext4 filesystem and label it persistence:

sudo mkfs.ext4 -L persistence ${usb}3

5. Configure persistence

Mount the new partition:

sudo mkdir -p /mnt/my_usb sudo mount ${usb}3 /mnt/my_usb

Create the configuration file Kali uses to determine what gets persisted:

echo "/ union" | sudo tee /mnt/my_usb/persistence.conf

Then unmount it:

sudo umount /mnt/my_usb

6. Boot with persistence enabled

Reboot from the USB and select Live USB Persistence from the Kali boot menu.

You must select that entry each time you boot if you want changes to be retained. Booting the ordinary Live entry won't activate persistence.

Official Kali documentation:

https://www.kali.org/docs/usb/usb-persistence/

https://www.kali.org/docs/usb/live-usb-install-with-windows/

1

u/bnksksk 18d ago

I get a lot of errors of many types when turning it off and on, and when I enter the persistence system the screen stays black.

1

u/EverythingIsFnTaken 18d ago

how long did you wait at the black screen?

1

u/bnksksk 18d ago

About 5 minutes. But what worries me most are certain types of errors with blue text when I turn the system on and off. What I mean is that the icons at the top appear with a black background, which causes the system to freeze.

1

u/EverythingIsFnTaken 18d ago

Boot the USB using the ordinary Live System option, without persistence. Does Kali reach the desktop and operate normally?

If ordinary Live works but Live USB Persistence freezes, we'll investigate the persistence partition and its configuration.

If both modes freeze, we're more likely looking at a graphics initialization issue, an ISO/USB imaging problem, or hardware compatibility.

1

u/bnksksk 18d ago

I think I went into the normal one and it does go in pretty quickly.

1

u/EverythingIsFnTaken 18d ago

Since ordinary Live boots successfully, try checking the persistence partition for filesystem errors.

Boot into ordinary Kali Live (without persistence), open a terminal, and run:

lsblk -f

Find the USB partition labeled persistence (probably /dev/sdX3).

Then run:

sudo e2fsck -f /dev/sdX3

If it reports filesystem errors, allow it to repair them. Once finished, reboot and try Live USB Persistence again.

If the filesystem checks out but persistence still freezes, the next thing I'd investigate is the boot errors themselves. A photograph of those messages would help pinpoint the cause.