PDA

View Full Version : 2018.1 live usb install with persistence



cmptrwhz
2018-03-21, 17:20
I used DD to image my 128gig usb drive with 2018.1 version. I then proceeded to open gparted to format the remaining space for persistence but there is no remaining space left on the drive. Is there a new set of instructions on how to enable the remaining space of my usb drive for persistence? When I check my usb drive with lsblk I see the following results.


sdb 8:16 1 115.7G 0 disk
├─sdb1 8:17 1 2.8G 0 part
└─sdb2 8:18 1 704K 0 part

fdisk -l shows

Disk /dev/sdb: 115.7 GiB, 124218507264 bytes, 242614272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x247233f7

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 5913631 5913568 2.8G 17 Hidden HPFS/NTFS
/dev/sdb2 5913632 5915039 1408 704K 1 FAT12

Mister_X
2018-03-21, 20:02
fdisk /dev/sdb
# hit 'n'

cmptrwhz
2018-03-21, 21:09
Even though gparted didn't show that there was free space to be partitioned I used the instructions https://docs.kali.org/downloading/kali-linux-live-usb-persistence for creating a persistence partition and it worked as it should. Sorry for starting a useless thread I just didn't want to mess up my usb drive, I am still learning.


fdisk -l
Disk /dev/sdb: 115.7 GiB, 124218507264 bytes, 242614272 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x247233f7

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 64 5913631 5913568 2.8G 17 Hidden HPFS/NTFS
/dev/sdb2 5913632 5915039 1408 704K 1 FAT12
/dev/sdb3 5915040 224609375 218694336 104.3G 83 Linux

Kiŧu-Uname
2018-04-07, 21:27
It's not useless, from the docs page it is not cleared enough that the persistence partition should be created with "fdisk".

Create and format an additional partition on the USB drive.
First, let’s create the new partition in the empty space above our Kali Live partitions.

end=7gb
read start _ < <(du -bcm kali-linux-2016.2-amd64.iso | tail -1); echo $start
parted /dev/sdb mkpart primary $start $end

The parted command may advise you that it can’t use the exact start values you specified; if so, accept the suggested value instead. If advised that the partition isn’t placed at an optimal location, “ignore” it. When parted completes, the new partition should have been created at /dev/sdb3; again, this can be verified with the command “fdisk -l“.

Thank you!

r4wstring
2018-04-17, 00:06
Yeah, I've seen people asking this on some other forums.. Seems legit.