Portable Kali Linux | Install Kali Linux in bootable Pendrive
November 25, 2019
Hello, and welcome to another blog. So far we have seen quite many things about Linux and Termux. This blog will go a bit further on the same Kali Linux tutorial. We are going to learn about how we can install Portable kali Linus in a bootable pen drive.
Let us quickly do it. Everything will be step by step.
1 Requirements:-
A Pendrive up to 8 to 16GB -to make a bootable disk.
Windows Machine with working internet -to perform downloads and Kali Linux Installation.
Power Iso tool -to write Kali Linus ISO file into Pendrive to make it bootable.
Kali Linux Iso 64bit or 32bit accordingly -this is the operating system we are going to install.
2 Codes: Procedure In detail to get avoid errors during Kali Linux Installation.
3 Procedure In detail:
First download Power ISO and Kali Linux ISO Image
Install and open Power ISO tool, plug in your Pendrive. Click on tools select Create Bootable USB Drive. Locate Kali Linux Image you have downloaded, select appropriate disk to write. Click on Start
than ok to build the final bootable flash drive/pen drive. It will take some to get the processed finished. If you see prompt just cancel it. It's done. Your Kali Linux bootable disk has been prepared.
Now restart your computer and open the boot menu. For me its F7. Once you click on the restart button Press the key assigned by your system to get into the boot menu. Click down the arrow button on your keyboard and select the bootable Pendrive you have plugged into your system. Select the very first option Live System in the Kali Linux installation prompt and hit enter. Congratulations you are in the Live System Kali Linux.
Now open a new terminal now and type some commands.
Now restart the system once again press the particular button on your keyboard to get into the boot menu select 4th option which is Live System (persistence....) and hit enter. Cheers, you are logged into your Portable Kali Linux. Live mode is just like repair mode or safe mode we have in windows. Persistence mode is a permanent mode for portable devices where you can make the changes and save them forever in the same Pendrive or flash drive.
To check you can change the background of your desktop and create a new folder as a 'test folder'. Now restart your system and again get into the boot menu after that select the drive hit enter. Select the Live System (persistence....). Cheers, if you find any kind of difficulties please let me know. Very soon I will upload a video on my youtube channel to perform the same thing and install a Portable Kali Linux and let you know all the related commands we should know once after we install the Kali Linux in a Linux in bootable Pendrive. Portable Kali Linux_Install Kali Linux in bootable Pendrive
Let us quickly do it. Everything will be step by step.
1 Requirements:-
A Pendrive up to 8 to 16GB -to make a bootable disk.
Windows Machine with working internet -to perform downloads and Kali Linux Installation.
Power Iso tool -to write Kali Linus ISO file into Pendrive to make it bootable.
Kali Linux Iso 64bit or 32bit accordingly -this is the operating system we are going to install.
2 Codes: Procedure In detail to get avoid errors during Kali Linux Installation.
fdisk -l
- fdisk /dev/sdb
- n hit enter after that again hit enter for 4 times
- w
- fdisk -l
- mkfs.ext4 -L persistence /dev/sdb3
- e2label /dev/sdb3 persistence
- mkdir -p /mnt/AnyName
- mount /dev/sdb3 /mnt/AnyName
- echo "/ union" > /mnt/AnyName/persistence.conf
- umount /dev/sdb3
- exit
3 Procedure In detail:
First download Power ISO and Kali Linux ISO Image
Install and open Power ISO tool, plug in your Pendrive. Click on tools select Create Bootable USB Drive. Locate Kali Linux Image you have downloaded, select appropriate disk to write. Click on Start
Now restart your computer and open the boot menu. For me its F7. Once you click on the restart button Press the key assigned by your system to get into the boot menu. Click down the arrow button on your keyboard and select the bootable Pendrive you have plugged into your system. Select the very first option Live System in the Kali Linux installation prompt and hit enter. Congratulations you are in the Live System Kali Linux.
Now open a new terminal now and type some commands.
fdisk -l
- Will list all the disk and flash drives connected with the computer. First, one /dev/sda is your internal hard disk and another one /dev/sdb: 14.9 GiB must be your Pendrive or some other specific drive. Check-in real-time you can identify your flash drive by its Capacity. Copy your Pendrive name and input another command. In my case /dev/sdb is my Pendrive.
fdisk /dev/sdb
-this will select the particular Flash drive to write further. Move to the next command.n
-Press n and hit enter to create a new Partition. To make it primary press enter 4 times. It's done now move to the next command.
w
-type w and hit enter to alter the Partition. Next command. fdisk -l
-it will again list the disk and flash drives with partition. Once you hit enter you will be able to see a new partition /dev/sdb3 that has been created by the system and aligned the default storage capacity to it. Copy the /dev/sdb3 and move to the next command.mkfs.ext4 -L persistence /dev/sdb3
-paste the /dev/sdb3 just after persistence and hit enter. Wait for few minutes to get the External 4 partition created. Once the terminal says done. Move to our next command.e2label /dev/sdb3 persistence
-paste /dev/sdb3 just after e2label, it will create a label for it which is persistence. Now move to our next command.
mkdir -p /mnt/AnyName
-remove AnyName and you can choose your desired name for the folder. In my case the folder name is AnyName.
mount /dev/sdb3 /mnt/AnyName
-this command will mount the partition.
echo "/ union" > /mnt/AnyName/persistence.conf
-it will create a persistence file named as persistence.conf to save all the persistence data to run the Kali Linux in persistence mode so that we can save stuff on our Pendrive.
umount /dev/sdb3
-unmount the drive.
exit
-to get out of the command terminal.Now restart the system once again press the particular button on your keyboard to get into the boot menu select 4th option which is Live System (persistence....) and hit enter. Cheers, you are logged into your Portable Kali Linux. Live mode is just like repair mode or safe mode we have in windows. Persistence mode is a permanent mode for portable devices where you can make the changes and save them forever in the same Pendrive or flash drive.
To check you can change the background of your desktop and create a new folder as a 'test folder'. Now restart your system and again get into the boot menu after that select the drive hit enter. Select the Live System (persistence....). Cheers, if you find any kind of difficulties please let me know. Very soon I will upload a video on my youtube channel to perform the same thing and install a Portable Kali Linux and let you know all the related commands we should know once after we install the Kali Linux in a Linux in bootable Pendrive. Portable Kali Linux_Install Kali Linux in bootable Pendrive