Making a Kali Bootable USB Drive and DD method of installing
If you're running under Linux, you can use the
dd
command, which is pre-installed, or use Etcher.A USB thumb drive, 4GB or larger. (Systems with a direct SD card slot can use an SD card with similar capacity. The procedure is identical.)or you can use Rufus (https://rufus.ie/).
Kali Linux Live USB Install
Creating a Bootable Kali USB Drive on Linux (DD)
dd
command to copy it over to your USB stick using the following procedure. Note that you'll need to be running as root, or to execute the dd
command with sudo. The following example assumes a Linux Mint 17.1 desktop — depending on the distro you're using, a few specifics may vary slightly, but the general idea should be very similar. If you would prefer to use Etcher, then follow the same directions as a Windows user. Note that the USB drive will have a path similar to /dev/sdb.- First, you'll need to identify the device path to use to write the image to your USB drive. Without the USB drive inserted into a port, execute the command
sudo fdisk -l
at a command prompt in a terminal window (if you don't use elevated privileges with fdisk, you won't get any output). You'll get output that will look something (not exactly) like this, showing a single drive — "/dev/sda" — containing three partitions (/dev/sda1, /dev/sda2, and /dev/sda5):
2. Now, plug your USB drive into an available USB port on your system, and run the same command, "sudo fdisk -l" a second time. Now, the output will look something (again, not exactly) like this, showing an additional device which wasn't there previously, in this example "/dev/sdb", a 16GB USB drive:
3. Proceed to (carefully!) image the Kali ISO file on the USB device. The example command below assumes that the ISO image you're writing is named "kali-linux-2020.4-live-amd64.iso" and is in your current working directory. The blocksize parameter can be increased, and while it may speed up the operation of the dd command, it can occasionally produce unbootable USB drives, depending on your system and a lot of different factors. The recommended value, "bs=4M", is conservative and reliable.
dd if=kali-linux-2020.4-live-amd64.iso of=/dev/sdb bs=4M
Imaging the USB drive can take a good amount of time, over ten minutes or more is not unusual, as the sample output below shows. Be patient!
The dd
command provides no feedback until it's completed, but if your drive has an access indicator, you'll probably see it flickering from time to time. The time to dd
the image across will depend on the speed of the system used, USB drive itself, and USB port it's inserted into. Once dd
has finished imaging the drive, it will output something that looks like this:
5823+1 records in
5823+1 records out
3053371392 bytes (3.1 GB) copied, 746.211 s, 4.1 MB/s
That's it, really!
Creating a Bootable Kali USB Drive on Linux (DD with status)
Alternatively there are a few other options available for imaging.
The first option is dd
with a status indicator. This is only available on newer systems however. To do this, we simply add the status
flag.
dd if=kali-linux-2020.4-live-amd64.iso of=/dev/sdb bs=4M status=progress
Another option is to use pv
. We can also use the size
flag here to get an approximate timer. Change the size depending on the image being used.
dd if=kali-linux-2020.4-live-amd64.iso | pv -s 2.8G | dd of=/dev/sdb bs=4M
Creating a Bootable Kali USB Drive on Linux (Etcher)
The third is Etcher.
Download and run Etcher.
Choose the Kali Linux ISO file to be imaged with "select image" and verify that the USB drive to be overwritten is the correct one. Click the "Flash!" button once ready.
3. Once Etcher alerts you that the image has been flashed, you can safely remove the USB drive.
You can now boot into a Kali Live / Installer environment using the USB device.
Comments
Post a Comment