Boot Kali Linux with persistence

To boot from the E2B menu system (Legacy-only) with persistence you can use the .isopersistdebian file extension - see instructions here.

To boot Kali with persistence via Legacy and UEFI, you can use the Ventoy menu system. See the persistence plugin page for more details.

To boot to Kali with persistence (Legacy+UEFI) in the agFM menu system, you can make partition image files (see here) OR copy and edit the kali_x64_persistent.cfg sample file.

Note that with Kali, persistence does not work with a blank persistence file. It must contain a 'persistence.conf' file before it will be recognised.

The Ventoy website provides a variety of persistence files of different sizes and type for you (Ventoy 'backend releases'). The ones suitable for Kali are the ext4 persistence.dat files.

Instructions for adding Kali+Persistence to agFM

  1. Download your Kali ISO use the Live Boot amd64 version of the ISO - I used kali-linux-2021.1-live-amd64.iso, 2021.2 also works. (Note: kali-linux-2020.4-live-amd64.iso does NOT boot correctly - do not use!)
  2. Copy the ISO file to \_ISO\LINUX folder on partition 1 (there should be NO SPACES in the filename)
  3. Download the Ventoy persistence file and extract one of the 'persistence_ext4_XXX_pesistence.dat files (whichever size you want).
  4. Copy one of the .dat files to the root of your E2B USB drive (partition 1) and rename it using the exact same name as the ISO file but with a -rw added - e.g. \kali-linux-2021.1-live-amd64-rw
  5. Copy the \e2b\Sample agFM menu files\LINUX\kali_x64_persistent.cfg file on the second partition to \_ISO\LINUX folder on the first E2B partition (see screenshot below).
  6. Rename the .cfg file to whatever name you like
  7. Use a text editor to edit the .cfg file. You may need to change the name of the .iso and -rw persistence files. The files do not need to be in any particular folder and you can change the paths if you wish.
  8. Run the \MAKE_THIS_DRIVE_CONTIGUOUS.cmd script to make all files contiguous.

Boot to agFM (press L to jump to the Linux folder and K to jump to the kali menu entries).

You can now select and run the .cfg file.
Note: Selecting the .iso file will run Kali without persistence (the persistence menu entries in the ISO won't work).

You may see three or four menu entries:

The first menu will only appear if partition 3 on the E2B USB drive is unused. This menu entry should not have a problem on shutdown (it does not use the findiso= kernel parameter).

The second and third menu only require partition 4 to be empty (which it always is), but some versions of Kali seem to have a problem on shutdown and you may need to hold down the power button to switch off after clicking on 'Shutdown'.

The third menu uses the Kali menu that is in the ISO. If you want persistence then you must select the persistence menu entry:

Note: Always shutdown 'nicely' using the Linux Shutdown button and shutdown the Desktop GUI (or equivalent). Never just switch off the power whilst Linux is running or you may corrupt the persistence file. A corrupt persistence file can cause the Linux kernel to fail to boot (if so, remove or remake the persistence file).

Please follow and like us:

1 thought on “Boot Kali Linux with persistence”

  1. Pingback: Boot Parrot OS with persistence – Easy2Boot

Leave a Comment

Your email address will not be published. Required fields are marked *