Jeremy Druin (@webpwnize) gave the following presentation on creating a persistent Kali Linux thumbdrive install for the June 2013 meeting of the Kentuckiana ISSA.
Download:
https://archive.org/details/KaliLinuxLiveBootUSBFlashDriveJeremyDruinwebpwnized
Links:3. persistence.conf documentation: http://live-systems.org/manpages/stable/en/html/ persistence.conf.5.html Commands:1. cp command (linux): dd if=kali.iso of=/dev/sdb bs=512k2. pv command (linux): pv -p -t -b -e -r -b kali.iso > /dev/sdb (Shows progress - install with "apt-get install pv")What is Kali?What is a live USB?Assumptions:1. Enough space on USB device?2. USB device is bootable?3. Host allows boot from USB device?4. Have access to boot config in host BIOS?Steps:1. Insert USB2. Have USB recognized as device (Note: Virtual box will take more effort)3. Use dmesg to verify USB device label.4. Optional: Use gparted to remove existing partitions from USB5. Copy kali.iso to USB6. Use gparted to create new partition in unused space (give partition the label "persistence")7. Create persistence.conf file in root of persistence partitionA "custom persistent mount" has the format: DIR [OPTION]A custom persistent mount creates a mirror of DIR called the SOURCE directoryDIR must be an absolute pathcannot contain white spaces or the special . and .. path componentscannot be /live (or any of its sub-directories)options are comma separatedbind-mount is defaultunion-mount is an option"source=PATH" stores the persistence changes into PATH on the persistence mediaon conflict, last option winssource directory created automaticallysource directory bootstrapped by copying the contents of the DIR into its source (except union, link)All persistence volumes mounted in /live/persistence/<device name>8. Enter persistence as a boot parameter when bootingDemos:1. boot live2. isolinux menus and append options3. changes to persistence volume with union4. changes to persistence volume with bind5. /live/persistence mount6. How to do this in windows?
If you would like to republish one of the articles from this site on your webpage or print journal please contact IronGeek.
Copyright 2020, IronGeek