Creating Custom Clean Persistence On a Live Kali Linux Distro

  • Clean, prepare USB Flash Drive fully (with gparted).
  • Create first partition, EXT4, min. cc. size 3Gb, and set boot flag.
  • Make second partition, format EXT4, (re)name ‘persistence’.
  • Install MBR:
    dd if=/usr/lib/extlinux/mbr.bin of=/dev/sda
  • Copy all files from Kali Linux ISO to first partition:
    mkdir /mnt/sr0 /mnt/kali
    mount -o loop /path/to/kali.iso /mnt/sr0/
    mount /dev/sda1 /mnt/kali/
    rsync -a /mnt/sr0/* /mnt/kali
  • Install extlinux:
    cp /mnt/kali/isolinux/isolinux.cfg /mnt/kali/isolinux/extlinux.conf
    extlinux --install /mnt/kali/isolinux/
    
  • Make config on persistence partition:
    mkdir /mnt/persist
    mount /dev/sda2 /mnt/persist/
    echo "/ union" > /mnt/persist/persistence.conf
    
  • Reboot, enyjoy.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s