The dd
command can be used to create a bootable USB from an ISO file.
sudo dd if=/path/to/your.iso of=/dev/sdX bs=4M oflag=sync status=progress
-
if
: Input file. This is the path to the ISO file you want to burn. -
of
: Output file. This is the target device (e.g., /dev/sdX where X is your USB drive letter, e.g., /dev/sdb). -
bs=4M
: Block size. This is the size of the chunks of data being written. The 4M value works well in most cases, but feel free to adjust it depending on the size of the ISO and the speed of your USB device. -
oflag=sync
: Ensures that data is written synchronously, reducing the risk of data corruption. -
status=progress
: Displays the progress of the operation.
- Be Careful with the of Parameter: Double-check the device name of your USB drive (/dev/sdX). Selecting the wrong device could overwrite important data. To list all connected drives, you can use:
lsblk
- Unmount the USB Drive Before Burning: Make sure the target USB drive is not mounted before you run the dd command. You can unmount it using:
sudo umount /dev/sdX*
-
Wait for the Process to Complete: The process might take some time depending on the size of the ISO and the write speed of your USB drive. Once the command completes, you'll see the status=progress output showing the number of bytes written.
-
Verify the USB Drive: After the process finishes, you can check if the USB is bootable by rebooting your system and selecting the USB drive from the boot menu.