How to run kali linux via usb using persistance

Hello friends, 
Kali is famous os among all the techies and using it with persistance option is additional feature when you want kali as secondary os and not want that your hard drive space. 

Reasons for using Live USB with Persistence are:

· You use all of your system resources eg. CPU, RAM, GPU, etc

·You take no space of your Hard Drive for it.

· You can take your OS to any PC you use.

Requirements:

1. Downlod rufus
http://filehippo.com/download_rufus

Or 

https://rufus.akeo.ie

2. Kali Linux Image : https://www.kali.org/downloads/

3. MiniTool Partition Wizard : www.partitionwizard.com


After downloading kali iso image, use rufus to burn it at usb(atleast 8gb space).

Now install minitool partion wizard and launch it. You can see your system hardrives and connected usb disk.

Now create a new partition named persistance(or whatever you want) by dragging.. Allocate space according to your need. 

Your usb is ready to boot kali.. Bit wait only 70% of your task is done .

Boot the kali from usb by connecting on your pc and choose kali live with usb persistance. 

Open terminal on kali. 


Until now i am assuming you have already burned your Kali Linux iso image onto your usb stick, and also assuming you have already created a partition through minitool partion wizard. ((PS - after typing "fdisk -l" on kali terminal I found that my usb was located in "/dev/sdb/" and the persistence partition itself was located in "/dev/sdb2"))

So anyway type:

mkdir -p /mnt/my_usb

mount /dev/sdb2 /mnt/my_usb

echo "/ union" > /mnt/my_usb/persistence.conf

umount /dev/sdb2

--Then Reboot from the actual Boot Menu itself. 



--Choose Live Persistence once Kali is turned back on. 


--Then on your Desktop, you will see a drive that is named "persistence." Open the drive and a folder named persistence.conf will be seen. Open it up using a text editor (gedit/leafpad/ or whatever) and you will see the word UNION. Remove both of the quotation marks so it will look like this: / union. Save the folder and close it up. --Reboot again using the Boot Menu --Once turned back on through live persistence, create a folder and leave on Desktop as a test to see if usb will successfully save. --Reboot once again. Now you should be fine. Everything should now save onto your usb. 


Enjoy.... 

I will update the blog with images soon. 



Written by : Ayush khandelwal.