Creating a bootable USB stick from Linux BlackBuntu Linux on a Linux environment is very easy to achieve. Once you have downloaded and verified your BlackBuntu ISO file, you can use the dd command to burn it to your USB drive following the procedure described below. Note that you will have to execute each command as root, or execute the dd command with sudo. Depending on the distribution you use, some details may vary slightly, but the general idea remains the same.
First, you will need to identify the device path to use to burn the image to your USB drive. To do this, simply execute the command below without inserting the USB key:
$ sudo fdisk -l
You will get a similar response to the one shown on the screenshots below, showing the different available drives “/dev/sda”, and the partitions they contain (“/dev/sda1”, “/dev/sda2 “, and”/dev/sda5 “).
Now insert your USB stick into an available USB port on your system, and run the same command, “sudo fdisk -l” a second time. You will get an answer similar to the first but this time indicating an additional device that was not present before, in this example “/dev/sdb”, a 16 GB USB disk:
Continue burning the image of the BlackBuntu ISO file to the USB device. The sample command below assumes that the ISO image you want to burn is named “blackbuntu-1.0.0-20190105-1-amd64.iso” and is in your current working directory. The blocksize parameter can be increased, and while it can speed up the operation of the dd command, it can occasionally produce non-bootable USB keys, depending on your system and many other factors. The recommended value, “bs = 1M”, is conservative and reliable.
$ sudo dd if=blackbuntu-1.0.0-20190105-1-amd64.iso of=/dev/sdb bs=1M && sync
Burning the USB drive can take a lot of time, more than ten minutes or more is not unusual, as shown in the example below. So be patient or go take a cup of coffee.
Also, you should know that the dd command does not provide any feedback during the process until the burn is complete, if your drive has an access indicator, you will probably see it flicker from time to time. The time required to burn the ISO image depends on the speed of the system used, the USB key itself, and the USB port in which it is inserted. Once dd finishes burning the ISO image, you will get a response similar to the one shown below:
3227 + 0 records in 3227 + 0 records out 3383754752 bytes (3.4 GB, 3.2 GiB) copied, 1.73162 s, 2.0 GB/s
That’s it that’s all ! You can now boot into a BlackBuntu Live / Installer environment using your USB device.