Originally Posted by
mgso4
Info:
There seems to be an error in the script/description for creating USB persistence, found at
http://docs.kali.org/installation/ka...sb-persistence
The "size" variable doesn't describe the
size of the persistence partition but the
end of the new partition.
So if one want to use the remainder of the USB stick for persistence "size" roughly needs to be the size of the used USB stick.
Just found the same issue, here's some adjusted instructions:
Code:
iso_file=<path_to_iso>
persist_size_mb=5000
read iso_size_mb _ < <(du -bcm $iso_file |tail -1); echo $iso_size_mb
parted /dev/sdb mkpart primary $iso_size_mb $(echo $(( $iso_size_mb + $persist_size_mb )))
mkfs.ext3 -L persistence /dev/sdb3
mkdir -p /mnt/my_usb
mount /dev/sdb3 /mnt/my_usb
echo "/ union" > /mnt/my_usb/persistence.conf
umount /dev/sdb3