PDA

View Full Version : Cannot install Kali with persistence.



mrblobby
2014-09-11, 08:31
Hello,

I am able to boot into the live version of Kali but cannot achieve persistence.

I follow http://docs.kali.org/installation/kali-linux-live-usb-persistence changing where necessary (the .iso and location of my usb).

In Ubuntu 12.04, I run:


dd if=kali-linux-1.0.9-i386.iso of=/dev/sdc bs=1M

My USB is on /dev/sdc.

I then can boot into Kali with no problems at start-up.

However, I then enter Ubuntu and run as root (after su):


size=5gb

read bytes _ < <(du -bcm /home/name/kali-linux-1.0.9-i386.iso |tail -1); echo $bytes parted /dev/sdc mkpart primary $bytes $size

mkfs.ext3 -L persistence /dev/sdc1

e2label /dev/sdc1 persistence

mkdir -p /mnt/my_usb

mount /dev/sdc1 /mnt/my_usb

echo "/ union" > /mnt/my_usb/persistence.conf

umount /dev/sdc1

I then try to run Kali from boot and am informed that it "failed to load ldlinux.c32".

There are three directories on my USB: EFI, install, and live. I added ldlinux.c32 from http://rufus.akeo.ie/downloads/ to EFI/BOOT but still received the same error.

Df after I've tried to add persistence shows:


/dev/sdc2 61682 58670 3012 96% /media/Kali Live


I am obviously doing something wrong. What? Many thanks!

mgso4
2014-09-26, 19:23
Hi!

While executing the code to create the partition for persistence you are overwriting your original kali partition you created with dd a moment earlier.

The dd above creates two partitions, in your case sdc1 and sdc2.

The parted then should create sdc3, and not overwrite sdc1! So you need to fix your commands.

BTW: There is an error in the script: the "size" doesn't describe the size of the persistence but the end of the new partition, probably the end (size) of the used USB stick.