In order to create a bootable USB drive to run “Kali Live” or to install Kali Linux on a target system, you’ll need to know how to identify the USB drive to the system. The full process for creating a bootable drive is described in the article on Making a “Kali Linux Live” Bootable USB Drive.
On Linux Systems
- 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):
- 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:
On an OS X System
OS X is based on BSD UNIX, so the operation is similar (but not identical) on OS X. Use the diskutil command (no escalation of privileges needed) to find the device path instead of fdisk, as follows:
- Without the USB drive plugged into the system, open a Terminal window, and type the command diskutil list at the command prompt.
- You will get a list of the device paths (looking like /dev/disk0, /dev/disk1, etc.) of the disks mounted on your system, along with information on the partitions on each of the disks.
- Plug in your USB device to your Apple computer’s USB port and run the command diskutil list a second time. Your USB drive’s path will most likely be the last one. In any case, it will be one which wasn’t present before. In this example, you can see that there is now a /dev/disk6 which wasn’t previously present.
- Unmount the drive (assuming, for this example, the USB stick is /dev/disk6 — do not simply copy this, verify the correct path on your own system!):
diskutil unmount /dev/disk6
If you get an error stating that the drive could not be unmounted because of the partitioning scheme, use the commanddiskutil unmountDisk /dev/disk6
to unmount all partitions.
On a Windows System
Device paths aren’t used on Windows systems. To identify your target device, simply plug your USB drive into an available USB port and note which drive designator (e.g. “F:\”) gets assigned to it.