Results 1 to 3 of 3

Thread: Adding Persistence to a Kali Live USB, some questions

  1. #1
    Join Date
    2014-Sep
    Posts
    3

    Adding Persistence to a Kali Live USB, some questions

    Hi,

    I am having some trouble generating a Live Encrypted Persistant USB stick with kali.
    I get the general Idea, but because I am not so much into Linux I am having trouble understanding the process.

    First
    Code:
    dd if=kali-linux-1.0.8-amd64.iso of=/dev/sdb bs=1M
    Does that mean even when I have an running Kali USB Stick, I have to generate a second one?
    Or do I have to put the image file somewhere on the USB Stick I am booting from?
    Because I cant really copy the image from my local network to the machine where Kali is running on because it says it doesn't have enough memory space left.


    Second
    Code:
    size=5gb
    Can I change that to "500mb"?
    Do I just type that into the console? Or is this entire thing the stuff that has to go into the persistance.conf file?

    Code:
    read bytes _ < <(du -bcm kali-linux-1.0.8-amd64.iso |tail -1); echo $bytes
    parted /dev/sdb mkpart primary $bytes $size
    cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb3
    I guess I replace passphrase with the passphrase I want to use? Are there letters I can use? The @ sign for example?

    Code:
    cryptsetup luksOpen /dev/sdb3 my_usb
    What is my_usb? Is that a variable?

    Code:
    mkfs.ext3 -L persistence /dev/mapper/my_usb
    e2label /dev/mapper/my_usb persistence
    mkdir -p /mnt/my_usb
    mount /dev/mapper/my_usb /mnt/my_usb
    echo "/ union" > /mnt/my_usb/persistence.conf
    umount /dev/mapper/my_usb
    cryptsetup luksClose /dev/mapper/my_usb
    The rest, I guess, stays pretty much as it is, am I right?

  2. #2
    Join Date
    2014-Sep
    Posts
    3
    PS: I tried creating a persistent USB Stick with just changing kali-linux-1.0.8-amd64.iso to kali-linux-1.0.9-amd64.iso but it didn't work.

    I have a USB Stick with Kali on it now. It runs in the live mode. I created a second 5GB partition, labelled it persistence, created the persistence.conf and pasted the code in it. I copied the iso into the new partition as well. I restarted using the encrypted persistence mode. Nothing happened. Has anyone an idea what I am doing wrong?

  3. #3
    Join Date
    2014-Sep
    Posts
    3
    PPS: I used this tutorial instead of the official one and it works like a charm.
    (I know no one had the chance to reply yet, but probably this might be of some help anyway )

Similar Threads

  1. Kali live USB with persistence questions
    By Sac1911 in forum Installing Archive
    Replies: 6
    Last Post: 2021-12-24, 19:20
  2. Replies: 0
    Last Post: 2021-10-07, 22:18
  3. Adding persistence to bootable USB Kali live
    By th-vb in forum Installing Archive
    Replies: 6
    Last Post: 2017-11-14, 17:35

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •