Well at least i got it working on my own. I try to explain my steps as good as possible.
First of all I used this Tutorial by IvanBayan big thx at this point!
I used as system to install the Live stick an Live System of Kali
I started to make the partitions on the destination Stick, check if the bott flag is on the 2nd partition:
Code:
# gparted /dev/sdc
/dev/sdc1 --- storage --- ntfs --- 10GiB ---
/dev/sdc2 --- kali --- ext4 --- 3.5GiB --- boot
/dev/sdc3 --- persistence --- ext4 --- 15.58GiB ---
Now I installed the kali image and prepered the bootloader:
Code:
# mkdir /mnt/source /mnt/kali /mnt/os
# mount /dev/sda3 /mnt/os
# mount /mnt/os/kali.iso /mnt/source
mount: block device /mnt/os/kali.iso is write-protected, mounting read-only
# mount /dev/sdc2 /mnt/kali
# cp -rf /mnt/source/* /mnt/kali/
# mv /mnt/kali/isolinux /mnt/kali/extlinux
# mv /mnt/kali/extlinux/isolinux.cfg /mnt/kali/extlinux/extlinux.conf
I modyfyed the boot menu in "/mnt/kali/isolinux/live.cfg"
I replaced the first paragraph with the following to ones.
This makes another option in the boot menu available to start directly into the persistent mode:
Code:
label live-686-pae-persistence
menu label ^Live persistence (686-pae)
menu default
linux /live/vmlinuz
initrd /live/initrd.img
append boot=live noconfig=sudo username=root hostname=kali persistence
label live-686-pae
menu label ^Live (686-pae)
linux /live/vmlinuz
initrd /live/initrd.img
append boot=live noconfig=sudo username=root hostname=kali
If you'd like to remove the start up system bell you have to edit the "/mnt/kali/isolinux/menu.cfg"
In it you have to remove the ascii code ^G in the menue title.
Now I added persistence:
Code:
# mkdir /mnt/persistence
# mount /dev/sdc3 /mnt/persistence
# echo "/ union" > /mnt/persistence/persistence.conf
Finally I configured the bootloader.
Code:
# extlinux --install /mnt/kali/extlinux/
/mnt/kali/extlinux/ is device /dev/sdc2
#umount /mnt/source /mnt/kali /mnt/os /mnt/persistence
#cat /usr/lib/extlinux/mbr.bin > /dev/sdc
And that's it now it worked fine for me.