+5 votes
403 views
How to install Kali Linux on Persistent USB

in Linux / Unix by (552k points)
reopened | 403 views

1 Answer

+3 votes
Best answer

1. Create persistent USB from Kali Linux
2. Configure persistent USB from Kali Linux

Each operating system is created designed to reach a special audience, so you can see how we have server-level operating systems for companies ( Windows Server , CentOS , RedHat ), systems for traditional users ( Windows 10 , Ubuntu , macOS ), special operating systems for games (SteamOS), etc., but there is one that stands out, if you are a security lover, and it is Kali Linux ..

Kali lINUX advantages
Kali Linux is an open source project that is managed by a security expert company many years ago called Offensive Security and therefore developed Kali as a Debian-based Linux distribution which has two special purposes:
  • Run advanced penetration tests.
  • Execute security audits.

These two objectives will allow to analyze, evaluate and improve the security of an organization where sensitive information is handled and do not want any attacker to put his claws.

Kali Linux features
Some of the features of Kali Linux are:
  • totally free
  • It has more than 600 penetration tools to test vulnerabilities
  • Complies with FHS standard (Filesystem Hierarchy Standard)
  • It has support for wireless devices
  • All packages and repositories are signed by GPG for greater security and reliability.
  • It has a custom kernel
  • Available in different languages
  • Supports ARMEL and ARMHF

One point we will talk about today is how to create a persistent USB from this great operating system. When we talk about persistent, we mean that by creating the USB media with Kali , you can install it on any computer (or try it) without losing anything you do on it. Remember that many times you can create a USB media with an operating system but all changes are lost when you log out or remove the device, this does not happen with the persistent USB.

Previous requirements
To achieve this you must have a USB of minimum 8 GB of space, we recommend a 16 GB and additionally have the following:
  • Kali Linux ISO image which you can download at the following link:

Kali Linux
  • WIN32DISKIMAGER tool to create the persistence of the USB and that you find in the following link:
Win32 Disk Imager
  • Minitool Partition Wizard tool which is available at the following link:

MiniTool Partition Wizard

Now we will proceed to see how to create our persistent USB from Kali Linux..


1. Create persistent USB from Kali Linux

Step 1

The first step to take will be to format our USB memory, for this we access the File Explorer, right click on the drive and select “Format”:

image

Step 2

In the displayed window we can select the NTFS format and assign a name to the unit:

image

Step 3

Click on "Start" to start the format of the USB drive and receive the following warning:

image

Step 4

Click on Accept to proceed with the format:

image

Step 5

Once this process is done, we open the Win32DiskImager utility:

image

Step 6

In the "Image File" field, click on the Browse button to go to the path where we downloaded the Kali Linux ISO image: image
Note
It is important that in the “Type” field at the bottom select *. * To recognize the ISO image.
Step 7

Click on Open and validate in the "Device" field that the letter assigned is that of the USB drive:

image

Step 8

We click on the “Write” button and the following warning message will be displayed:

image

Step 9

We click on “Yes” to proceed with the writing of the ISO image on the USB:

image

Note
If an error is generated when clicking Yes, TechnoWikis recommends that you run the utility as an administrator.
Step 10

This process will create the USB in persistence mode with the operating system selected in this case Kali Linux. When this process ends we will see the following:

image

Step 11

There we click OK to complete the process and exit the wizard. Now we open the MiniTool Partition Wizard application where we will see the following environment: image
Step 12

There we select the “Disk & Partition Manager” category and in the next window we can see the USB drive that we have previously processed: image
Step 13

There we will right click on the line (Unallocated) and in the options displayed we choose “Create”: image
Step 14

We will see the following message: image
Step 15

It is an indication that we cannot use this partition in Windows, we click on “Yes” and the following window will be displayed where we define the following:
  • In the File System field we select “Ext4”.
  • We assign the name "persistence" in the "Partition Label" field.
image
Step 16

Selecting Ext4 by default will make the other settings. We click on OK and now we must apply the changes, for this we click on the Apply button located in the upper left: image
Step 17

The following message is displayed: image
Step 18

We click Yes and start the process of creating the persistent USB of Kali Linux: image
Note
This process takes between 20 to 25 minutes.
Step 19

When it concludes we will see the following: image

2. Configure persistent USB from Kali Linux

Step 1

Once this process is finished, we proceed to restart the computer and configure the boot in the BIOS from the persistent USB, for this during the restart we press the ESC key, or F2, or Del (this depends on the manufacturer) and in the Boot section we select "Removable Devices":

image

Step 2

Press the F10 key to save the changes and continue the restart from there. When the system is started, we can see the option "Live USB Persistence":

image

Step 3

Select this option and press Enter to continue, this will allow us to access Kali Linux in that way. Once we are in the environment, we go to the terminal and execute the following:
 setkxbmap is 
Step 4

This command allows you to configure the Spanish language in Kali Linux. image
Step 5

Now we will execute the following:
 fdisk -l 
(Checking disks) image
Step 6

There we note that / dev / sda3 is the route of the assigned USB, then we will execute the following commands in their order:
 mkdir -p / mnt / Linux mount / dev / sda3 / mtn / Linux echo “union”> /mnt/Linux/persistence.conf umount / dev / sda3 
image
Step 7

Finally we exit with the exit command. We can verify that the “persistence” file has been created in the USB path: image
Step 8

After this we proceed to restart the computer and in the Kali menu we select “Live USB Persistence” again, once we access we proceed to create some type of file in Kali Linux: image
Step 9

We restart the system: image
Step 10

There the restart process begins: image
Step 11

Once we access Kali Linux we can verify that the folder is still available there: image

Thanks to persistence it is possible to work on Kali Linux and be certain that all our information will be available there without being lost at any time, but without it being mandatory to install the operating system locally on the hard disk.


by (3.5m points)
edited

Related questions

+3 votes
1 answer
+5 votes
1 answer
asked May 6, 2020 in Linux / Unix by backtothefuture (552k points) | 1.4k views
+4 votes
1 answer
asked Jan 31, 2020 in Linux / Unix by backtothefuture (552k points) | 5.8k views
+5 votes
1 answer
asked Aug 23, 2019 in Linux / Unix by backtothefuture (552k points) | 371 views
+3 votes
1 answer
asked Sep 28, 2020 in Linux / Unix by backtothefuture (552k points) | 1.2k views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users