Results 1 to 3 of 3

Thread: USB encrypted persistence problem

  1. #1

    Question USB encrypted persistence problem

    Having trouble properly creating a USB with encrypted persistence. I'm following the instructions from http://docs.kali.org/installation/ka...sb-persistence but I'm obviously doing something wrong.

    Kali is 1.0.8 64 bit on an Acer laptop. The USB is a PNY 32 Gig. Here's the steps I take up until the point where it starts throwing errors:

    1- dd if=kali-linux-1.0.8-amd64.iso of=/dev/sdb bs=1M

    Returns "2943+1 records in
    2943+1 records out
    3086368768 bytes (3.1 GB) copied, 344.901 s, 8.9 MB/s"

    2- size=5gb

    Returns nothing

    3- read bytes _ < <(du -bcm kali-linux-1.0.8-amd64.iso |tail -1); echo $bytes

    Returns "2944"

    4- parted /dev/sdb mkpart primary $bytes $size

    Returns "Warning: You requested a partition from 2944MB to 5000MB.
    The closest location we can manage is 3086MB to 5000MB.
    Is this still acceptable to you?
    Yes/No?"

    Choosing yes returns "Warning: The resulting partition is not properly aligned for best performance.
    Ignore/Cancel?"

    Choosing ignore returns "Information: You may need to update /etc/fstab."

    I'll leave at at this point because I'm sure that whatever I've done wrong has been done by now. After completing the rest of the commands the drive will boot and encrypted persistence will work but it shows as "1.9 GB unrecognized".

    Any tips appreciated!

  2. #2
    Join Date
    2014-Sep
    Location
    Houston Texas
    Posts
    2
    look at your drive in cfdisk
    cfdisk /dev/sdb
    You will notice the size of the partition is 2944

    This is mine:

    Disk Drive: /dev/sdd
    Size: 16236150784 bytes, 16.2 GB
    Heads: 177 Sectors per Track: 32 Cylinders: 5598

    Name Flags Part Type FS Type [Label] Size (MB)
    ------------------------------------------------------------------------------------------------------------
    Pri/Log Free Space 0.04 *
    sdd1 Boot Primary iso9660 [Kali Live] 2963.74 *
    sdd2 Primary vfat 64.92 *
    Pri/Log Free Space 13207.48 *

    Just add the vfat and first freespace to 2944

    In my case:
    0.04 + 2963.74 + 64.92 = 3028.70
    round up to next mb
    3029

    then set the bytes variable with the new value.
    in my case:

    @K9:~# bytes=3029
    @K9:~# echo $bytes
    3029

    then rerun gparted

    @K9:~# parted /dev/sdd mkpart primary $bytes $size
    Information: You may need to update /etc/fstab.

    root@K9:~#

    Hope this helps





    [ Help ] [ New ] [ Print ] [ Quit ] [ Units ] [ Write ]

  3. #3
    Thank you! Still ended up at 2 GB but got a lot less errors. I'll call it good. Appreciate the help!

Similar Threads

  1. live USB Encrypted Persistence boot problem
    By Dmitriy in forum Installing Archive
    Replies: 0
    Last Post: 2021-10-18, 09:33
  2. Problem booting from USB with encrypted persistence
    By husmari in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2016-06-01, 01:42

Posting Permissions

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