Install Kali Linux on a Flash Drive with Presistence [2nd Method] 06-02-2013, 01:42 PM
#1
Hello HC, After publishing my previous method if how to install Kali on a USB like you do it on a regular HDD, with Virtual Box. Many people seemed to have problems with it. I tested the method myself it worked but the problem was for people who where trying to do an Encrypted install. This method is an alternative to the first one and it's relatively easy to follow as it does not require much tools just 2 things which are:
1) Kali Linux .ISO
2) Win32 Disk Imager -- Download Here
Remember that this method will ensure Persistence but you will not be able to create an Encrypted drive. So lets begin!
Installation Steps:
1) First of all download the .ISO for Kali Linux and Win32 Imager.
2) Now open win32 Imager and select the .ISO for KALI, remember to select all types of formats before selecting Kali .iso because Win32 for default searches for .img files. Here's a pic:
![[Image: 5xg2ysp.png]](http://i.imgur.com/5xg2ysp.png)
3) After selecting the .ISO, press the "Write" button and let it do it's work. When done, Reboot your PC and boot from the USB
4) Boot into Kali via the USB drive, after everything is loaded open "Gparted" from the Settings.
5) After getting to the gparted interface, from the upper right hand side click on the drop down menu and select your USB drive (Critical Step!) like in the image below:
![[Image: rkQSWYh.png]](http://i.imgur.com/rkQSWYh.png)
6) Now you will see two separate partitions, One will be which contains the Kali image that we just installed on the Flash Drive, the other partition will be totally empty. So select your empty partition, Right click it and press "Create New Partition":
![[Image: 4CkXFhQ.png]](http://i.imgur.com/4CkXFhQ.png)
The setting you need to change are the Label and the File System
Set them to the following values:
7) Now open a terminal and enter the commands:
Alrighty then, you are done! Just apply the changes. Reboot your PC and then boot from the USB Drive. Now when you reach the Grub Menu, Press the Tab button on your keyboard and type "persistence". This will enable persistence for that session and your work will be saved. You can do it every time if you need to enable persistence or do some personal work that needs to be saved!
This is the end of my tutorial, I hope this helps out other. This tutorial is present on Kali Linux documentation but it was not described much with images so I added some of my own and rewrote the whole tutorial
Regards,
Ex094
1) Kali Linux .ISO
2) Win32 Disk Imager -- Download Here
Remember that this method will ensure Persistence but you will not be able to create an Encrypted drive. So lets begin!
Installation Steps:
1) First of all download the .ISO for Kali Linux and Win32 Imager.
2) Now open win32 Imager and select the .ISO for KALI, remember to select all types of formats before selecting Kali .iso because Win32 for default searches for .img files. Here's a pic:
![[Image: 5xg2ysp.png]](http://i.imgur.com/5xg2ysp.png)
3) After selecting the .ISO, press the "Write" button and let it do it's work. When done, Reboot your PC and boot from the USB
4) Boot into Kali via the USB drive, after everything is loaded open "Gparted" from the Settings.
5) After getting to the gparted interface, from the upper right hand side click on the drop down menu and select your USB drive (Critical Step!) like in the image below:
![[Image: rkQSWYh.png]](http://i.imgur.com/rkQSWYh.png)
6) Now you will see two separate partitions, One will be which contains the Kali image that we just installed on the Flash Drive, the other partition will be totally empty. So select your empty partition, Right click it and press "Create New Partition":
![[Image: 4CkXFhQ.png]](http://i.imgur.com/4CkXFhQ.png)
The setting you need to change are the Label and the File System
Set them to the following values:
Code:
File System: ext4
Label: persistence7) Now open a terminal and enter the commands:
Code:
mkdir /mnt/usb
mount /dev/sdb2 /mnt/usb
echo "/ union" >> /mnt/usb/persistence.conf
umount /mnt/usbAlrighty then, you are done! Just apply the changes. Reboot your PC and then boot from the USB Drive. Now when you reach the Grub Menu, Press the Tab button on your keyboard and type "persistence". This will enable persistence for that session and your work will be saved. You can do it every time if you need to enable persistence or do some personal work that needs to be saved!
This is the end of my tutorial, I hope this helps out other. This tutorial is present on Kali Linux documentation but it was not described much with images so I added some of my own and rewrote the whole tutorial

Regards,
Ex094



![[+]](https://sinister.li/images/modern/collapse_collapsed.png)
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)