Burning ISO to USB in Linux: A Command Line Guide for Power Users
If you are a terminal enthusiast or simply don't want to bother downloading third-party GUI tools, Linux offers a built-in, "old-school" but incredibly powerful utility: dd. Warning: The dd command is often nicknamed "Disk Destroyer" for a reason. If you target the wrong drive letter, it will overwrite your data without a second thought. Double-check your drive identifiers!
Step 1: Identify Your USB Drive
First, you need to know exactly where your USB stick is "mounted" in the system. Plug in your USB and run:
lsblk
Look for a disk that matches the size of your USB (e.g., 8G, 16G, or 32G). It will likely be named something like /dev/sdb or /dev/sdc. Do not include a partition number (like sdb1); use the base device name.
Step 2: Burn the ISO
Once you are 100% sure of your device path (we'll use /dev/sdX as a placeholder), navigate to your downloads folder and execute the following command:
sudo dd bs=4M if=ubuntu-24.04-desktop-amd64.iso of=/dev/sdX conv=fdatasync status=progress
What do these flags mean?
- bs=4M: Sets the block size to 4 Megabytes for a faster write speed.
- if=...: Input File (the path to your Ubuntu ISO).
- of=...: Output File (the destination USB drive).
- conv=fdatasync: Ensures all data is physically written to the USB before the command finishes.
- status=progress: Gives you a real-time update on the transfer speed and completion.
Step 3: Eject and Go
When the terminal returns to a blank prompt, the process is complete. To be extra safe, run:
sync
Now, unplug your USB and you’re ready to boot into your brand-new Ubuntu environment!