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
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?