After confirming your target drive, you need to unmount it before formatting it.
sudo umount /dev/sdb
Next, we need to format the unmounted drive. Let’s do this with the following command:
sudo mkfs.vfat -I /dev/sdb
We’re ready to copy the ISO file to the USB drive using the dd command. I’d recommend navigating to the directory where you downloaded the ISO. Let’s say you put it in your user’s “Downloads” directory.
cd ~/Downloads
Since we’re already in the right directory, we can use the following command to write ISO to USB and create a bootable USB stick:
sudo dd bs=4M if=filename.iso of=/dev/sdb status=progress
Code language: JavaScript (javascript)
Where “filename.iso” is, of course, replaced by the actual name of your ISO file.
The dd command will copy the ISO file’s contents to your USB stick. This may take several minutes to execute. You should see something like these results returned: