In the previous post i.e Chapter 1: Part 1, we learned
- Hardware/Software requirements of the series
- How to install Kali Linux in a VMWare Workstation(Virtual machine), and
- Setting up and configuring Alfa card (Wireless adapter) in Kali Linux
We will cover the remaining of Chapter 1 in this post.
We will cover:
- How to install Kali Linux on PC
- Removing Kali Linux from Boot menu and Hard Drive
Do you want to learn WiFi Pentesting and Security without investing a fortune in WiFi cards and routers?
Then you should check out my cloud based course where you simply login to your lab and start pentesting wireless networks.
Click here to read description, FAQs and lab details
You might say why remove Kali Linux ? It is the Best Penetration testing distribution out there.
A: Well, as Kali Linux is an Open Source Distro and comes with absolutely NO WARRANTY, and also we will be using root account very frequently, so there are chances that one might corrupt the boot loader while playing around with Kali and cause problem booting Kali Linux.
Another reason for doing so is that you might have previously installed Kali Linux on your PC which is not working for some reason and you decided to remove Kali Linux and install a recent version of Pentesting Distro(any). Not to waste HD space and without damaging boot record we will learn here the process to remove Kali Linux neatly.
Lets get started!
How to Install Kali Linux: Prerequisites
- USB stick (>4 GB) – To install Kali Linux from USB. We can boot Live system or installing through USB.
- Kali Linux ISO – ISO file contains the boot information, which will be written to the USB stick and make the USB bootable.
- Laptop/Desktop (~4 GB RAM) – We will be performing extensive-memory tasks. so a minimum requirement is a system with 4 GB of RAM and dual core processor. To ensure that Kali Linux perform well throughout the series.
- Windows installed – We will need Windows to partition the disks for Kali Linux. It will be easy for the beginners for better understanding.
Kali Linux on USB: Advantages
The best way to run or install Kali Linux is to run it from a USB. This method has several advantages:
- Ultra portable – USB always has been known for its portability. Installing Kali on a USB makes it ultra portable and allows us to run it anywhere we go. just need to Plug-n-play the USB stick and we are up with our Kali.
- Faster installation – Older versions of USB(2.0) supports reading speed of a max. of 7-10 MBPS and recent USB 3.0 are even faster than that. Which makes installing Kali Linux at blazing fast speed.
- Customisable – Linux is always open source and so Kali. You can customize and build Kali Linux and install your own version on the USB stick.
- Persistent – Booting into Live disc from USB clears all the activity or tasks performed after system is restarted. Live Kali installed on USB can be made persistent with a little effort.
Kali Linux download
Kali Linux ISO can be downloaded from the official site here. Ensure the compatibility of the version with your processor. Do not download 64-bit version of ISO if your processor is 32-bit
Kali Linux installation: Installing Kali Linux on PC
- Right click on Computer and click Manage.
- Select Disk management on the left
Now Right Click select a Drive with a free space > 40 GB and click on Shrink (C: in this case). We will cut some free space from that drive.
NOTE: Selected partition should be primary. Primary type partition is needed to boot Kali. We will write Kali’s boot loader(GRUB) to Master boot record during installation. So make sure partition you select is Primary.
- Wait for the scan to Finish.
- Enter the size in MB (40 GB x 1024 = 40960 MB) and click on Shrink. I had only 20484 MB shrink-able space. But it is recommended for you to go for atleast 30 GB. I will tell you Why in FAQs at the end of the post.
- Now You should see an Unallocated Black colored partition. Like this:
We are done with the partitioning part, now we will head towards installing Kali Linux to USB. So that we will be able to boot the Kali Linux USB and install it to the recently created(Unallocated) Drive.
How to Install Kali Linux to USB
I have a great post written on How to install Kali Linux on USB.
After you create the Kali Linux bootable ISO
- Restart the system
- Plug in your USB into the system
- Hit the Booting key (can be f8, f10, f12, delete). You may need to edit BIOS setting to boot USB
- Continue reading Chapter 1- Part 1. Procedure is same after restarting the system. (Except the VMWare config part)
Remove Kali Linux: How to Uninstall Kali Linux
CAUTION: After Removing Kali Linux, you won’t be able to boot into Windows or any OS installed after you restart.So make sure you have already created bootable USB of Kali Linux for the Installation or RESCUE!
Why it won’t be able to boot ? because Kali Linux installs its boot information to Master boot record when it is installed.So any previous OS’s(generally Windows) boot info is over written and it is then added to option menu at startup to chose from which OS to boot.
Lets get to the procedure,
Follow step-by-step, or you might end up deleting your sensitive data:
- Right click on Computer click on Manage.
- Go to Disk management on the left panel.
- You should see something like this:Partition size may vary.
- Right click on Main partition then click on Delete volume.
- A Window will appear. click on delete. This will delete both Main and Swap partition.
You should then see an Unallocated partition (~46 GB in this case).
- Now restart your system.
- Insert Kali Linux USB stick into system
- Run Live or install. see here How to install Kali Linux.
- voila! you are now done with your Kali Linux installation.
Install Kali Linux: FAQs
What is a Swap space ? Why is the use of it ?
A: Generally when Kali Linux is installed on a partition, it creates another partition called Swap space or Swap partition. Work of Swap partition in Linux is just similar to the Pagefile.sys(C:\pagefile.sys) in Windows. System puts all the recently non-used application from the RAM to the Swap partition to clear up the RAM and create some free space in RAM.
More the RAM is free, More the system will be responsive.
Why 40 GB of partition is recommended ?
A: Kali Linux itself takes at least 11 GB of space after installation. and moreover it automatically creates a Swap partition for better performance. As you have installed Kali Linux directly on PC, you can use it as your primary OS to work by installing required S/W in it and it will not bother you about the free space.
P.S: We will also need some extra space for dictionary attacks during Wi-Fi cracking.
High Gain Antenna:
USB Drive (32 GB):
SanDisk Ultra Fit USB 3.0 32GB Pen Drive (International)
SanDisk Ultra USB 3.0 32 GB Pen Drive (India Only)
Have some other query in mind ? Write it in comments section and let me clear you up! 🙂