Results 1 to 2 of 2

Thread: Cannot install Kali with persistence.

  1. #1
    Join Date
    2014-Sep
    Posts
    1

    Cannot install Kali with persistence.

    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:

    Code:
    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):
    Code:
    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:

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

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

  2. #2
    Join Date
    2014-Sep
    Posts
    2
    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.

Similar Threads

  1. Replies: 2
    Last Post: 2020-05-18, 23:22
  2. Can't Transfer Files From Tails Persistence to Kali Persistence
    By beeks in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2019-05-16, 00:34
  3. Install Kali on USB (not Live Persistence)
    By Spoonroom in forum Installing Archive
    Replies: 0
    Last Post: 2015-06-02, 14:26

Posting Permissions

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