How to Install Kali Live on a USB Drive (With Persistence, Optional)

Jun 2, 2015 01:25 AM
Jun 2, 2015 02:06 PM
635687613255555249.jpg

Hi there, nullbytes :) I've recently seen many questions regarding VMs with Kali, and personally I prefer using a Live Boot USB to get Kali without removing my system (and for many reasons).

Some of the reasons for using a Live USB are:

· You use all of your system resources (CPU, RAM, GPU, etc)

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

· No tunnelling your Internal Wireless Adapter into eth0

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

And you just need a USB flash drive of at least 4 GB with nothing on it to get it, so why not give it a try?

For this tutorial, I'll assume you're starting from a PC with Windows installed, as most newbies do.

Get the Stuff You Need

First, you'll need a program to install Kali on your USB drive and make it bootable. My program of choice is Universal USB Installer, as it's painfully easy to use and it has a direct link to many Linux distros download page within the program.

635687622999774925.jpg

Search for this button, and get the program. Once you run it, you'll see a disclaimer page. Accept it (or read it first, if you feel like it), and you'll be presented with the configuration section (after a few seconds). Choose Kali from the dropdown menu:

635687624672785279.jpg

If you haven't downloaded a Kali image yet, just check the "Download Link" box and you'll be taken right into the download page.

635687626190042430.jpg

If your system is 64 bit, you may want the 64 bit ISO, but it doesn't ensure you portability to all the PC's you find. If you're not sure whether your PC is 32 or 64 bit, choose the 32 bit ISO. It'll work for both architectures.

635687627273211110.jpg

You can choose Direct download, but if you have a pretty slow and unreliable connection, download it via Torrent. If you never downloaded something via Torrent, you could look it up. It's pretty damn simple.

Once you have downloaded your Kali image, select it:

635687629130711032.jpg

Installing Kali

And then choose the drive letter for your USB drive (you probably won't need to use that checkbox on the right side). Be careful when doing this.

635687630499660692.jpg

I'd recommend to check the box that formats your USB drive. That'll wipe your whole USB drive, make sure you back up everything you had there before proceeding. It'll make a quick format, so there's no reason to avoid this.

635687630697203642.jpg

Click on Create, then Yes, and it'll do the whole process by itself. The longest part will be extracting the ISO to your USB, but it'll be over in a matter of minutes.

635687633358166695.jpg

If everything went as expected, you'll see this, and you have a USB you can Live boot you Kali from. You may have to do a little tweaking on your BIOS for it to work, but I don't know how to cover every BIOS on a single tutorial.

635687635301222684.jpg

Quick Linux Guide

If you're already a Linux user, follow these steps to make a Kali Live USB. It's way simpler and faster than Windows!

· Make sure you have a 4 GB+ USB drive connected and you're ready to get it cleaned.

· Download the Kali ISO of your choice (32/64 bit).

· Check your USB drive location with

sudo fdisk -l

· Let's say it's /dev/sdb and you haven't ever partitioned it. Just format it to be Fat32 with sudo mkfs.vfat -n 'Kali' -I /dev/sdb1

· Locate your Kali image and use it as input in this command:

sudo dd if=/home/you/downloads/kali.version.iso of=/dev/sdb1 bs=512

Wait for it to finish, and that's it, you have Kali on your USB drive now.

Setting Up Persistence (Preparing the Partition)

You liked to Live boot from USB, but you want to save changes made into your OS, or just files (such as .pcap files) into your USB drive? You'll need to set up Persistence. Your USB drive must have 8 GB+ of storage space.

Download MiniTool Partition Wizard Free, install it, run it and then choose Launch Application.

Right click on your USB drive, and click on Move/Resize

635687758151804741.jpg

Use the small black arrow keys to shrink the partition size. It will leave a bit of storage space free, but if you manually assign the Partition Size, the program may fail. Click OK.

635687758673635529.jpg
635687758833679960.jpg
635687758673635529.jpg
635687758833679960.jpg

A new big grey chunk of unallocated space as appeared! Right click on it and click on Create. It'll warn us that Windows won't be able to see that partition, but we don't care about that ;)

635687761551023907.jpg

Pick this options:

· Create as: Primary

· File System: Ext4

· Partition Label: persistence

Then click OK.

635687762019193088.jpg

Now click on Apply (upper left corner), and just wait for it to complete the tasks.

Setting Up Persistence (Configuring the Partition)

Once the partition manager finished, reboot your computer and boot up from your USB drive. Choose the option "Live USB Persistence", and when it's booted up, open a Terminal and use these commands:

Determine which partition of your drive you'll use

fdisk -l

Remember your drive had a FAT32 partition and a Ext4 (Linux) one?

635687792132699248.jpg

Make a directory on the filesystem to mount your USB

mkdir -p /mnt/my_usb

Mount the partition on the directory you made (don't click the desktop icon labeled persistence!)

mount /dev/sdc2 /mnt/my_usb

Add a configuration file to enable persistence

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

Unmount the partition and reboot

umount /dev/sdc2 && reboot

Now, if you boot up to Live USB Persistence, you'll be able to save stuff everywhere on your Linux filesystem, and every configuration you make locally will be available everywhere you plug it in :)

Closing Up

I hope this article is useful for newbies who are getting their heads messed up with VMs instead of just booting up Kali and getting their heads messed up by using Kali.

I also hope it's not over explained (or under explained). I've tried to keep it as simple as I could without adding loads of screenies as if it were going to be read by dumb people. But I'll gladly answer any questions related to this in the comments :)

P.S.: Sorry Mac users, I don't know about your system. Yet.

P.S.2.: I'll do a Linux partition guide when I figure out how much space I can crop without screwing up my drive, but you can have fun with GParted in the meantime.

Just updated your iPhone? You'll find new Apple Intelligence capabilities, sudoku puzzles, Camera Control enhancements, volume control limits, layered Voice Memo recordings, and other useful features. Find out what's new and changed on your iPhone with the iOS 18.2 update.

Comments

No Comments Exist

Be the first, drop a comment!