Results 1 to 6 of 6

Thread: Persistence on Live USB is only 1/2 working

  1. #1
    Join Date
    2013-Aug
    Posts
    25

    Persistence on Live USB is only 1/2 working

    I used Win32DiskImager on a Windows machine to write the Kali2 ISO to my 64GB USB Flash Drive.

    I then mounted the USB drive on a linux system and used gparted to convert the "unallocated" space to an ext4 partition named "persistence".

    I created a file in the persistence partition named persistence.conf with the word "/ union" in it.


    When I now boot from the USB into Kali Linux, selecting the boot option in the menu for "persistence", I do have some persistence (a folder I create on the desktop persists after reboots for example)

    BUT - system changes, like resetting the root password does not persist. It goes back to the default password after I reboot.


    Any idea how to fix this?

  2. #2
    Join Date
    2015-Dec
    Posts
    6
    From http://docs.kali.org/downloading/kal...sb-persistence "The persistent data is stored in its own partition on the USB drive, which can also be optionally LUKS-encrypted." I don't think you can overwrite any of the system data itself. Kali in this setup would be seen as a "live" distro with some extra space so that you can save files to that extra partition.

  3. #3
    Join Date
    2013-Aug
    Posts
    25
    I see... is there a way to install it to USB and boot to it, but have it be all persistent?

  4. #4
    Join Date
    2015-Dec
    Posts
    3
    You could modify squashfs as discussed in http://unix.stackexchange.com/questi...-in-read-write, or create your custom live as discussed in http://docs.kali.org/development/liv...ustom-kali-iso, but all persistent... squashfs is filesystem read-only and you should change it every time. You could start a custom script in boot but... all persistent with iso, with squashfs...
    Last edited by fcricardofc; 2015-12-13 at 11:17.

  5. #5
    Join Date
    2015-Dec
    Posts
    3
    Quote Originally Posted by natv View Post
    I see... is there a way to install it to USB and boot to it, but have it be all persistent?
    I found an easier way and posted it here: https://forums.kali.org/showthread.p...-a-thumb-drive


    the result is a USB stick working the same as a hard drive. you need to do this on a desktop with at least 32 gigs on the stick.

  6. #6
    Join Date
    2015-Dec
    Posts
    3
    Yes, if you do not create a live-usb and hard drive you choose as installation usb, then if it works

    Careful when installing grub in the installation process. Although you can always from another GNU / Linux:
    Code:
    grub-install --debug --recheck --boot-directory = /mnt/boot  /dev/sdX
    where:
    X, is the USB device b,c, etc . Example: /dev/sdb or /dev/sdc
    --boot-directory = path /boot usb kali device mounted (/mnt/boot) on the GNU/Linux to run the command.
    Last edited by fcricardofc; 2015-12-19 at 19:49.

Similar Threads

  1. Kali Linux Live USB working - Persistence keeps failing
    By benno401 in forum Installing Archive
    Replies: 2
    Last Post: 2018-05-13, 19:26
  2. Replies: 5
    Last Post: 2018-05-06, 13:22
  3. Live USB persistence not working...
    By mrtippage in forum Installing Archive
    Replies: 1
    Last Post: 2014-11-16, 23:23

Posting Permissions

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