Jump to content

How can I achieve persistence with a Kali USB?


michael_kent123
 Share

Recommended Posts

Hello,

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

I follow http://docs.kali.org/installation/ka...sb-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!

Edited by michael_kent123
Link to comment
Share on other sites

  • 2 weeks later...

You're replacing the original partition. Quoting the referenced documentation link:

Create and format an additional partition on the USB stick. In our example, we create a 5 GB persistent partition and create a persistence.conf file on it.

Note the bold bit.

While performing the second sequence they're writing to a 3rd partition (/dev/sdb3) while you're writing to the 1st partition which is guaranteed to contain the stuff you just put there with the dd command and you were not supposed to remove.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...