To write an Ubuntu ISO file to a bootable USB device on Linux using the dd
command, follow these steps:
Insert the USB drive into your Linux system.
Open a terminal and use the lsblk
command to list all available block devices. Look for the USB drive and note its device name, which will be something like /dev/sdb
or /dev/sdc
.
Use the umount
command to unmount the USB drive if it is currently mounted:
sudo umount /dev/sdb
Replace /dev/sdb
with the actual device name of your USB drive.
dd
command to write the ISO file to the USB drive. Make sure to replace /path/to/ubuntu.iso
with the actual path to the ISO file and /dev/sdb
with the actual device name of your USB drive:sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=4M status=progress oflag=sync
Wait for the dd
command to complete. This may take a few minutes, depending on the size of the ISO file and the speed of your USB drive.
Once the dd
command has completed, the USB drive should be bootable and you should be able to boot from it to install Ubuntu.
Note: The
dd
command can be dangerous if used improperly, as it can overwrite important data on your system. Make sure that you have specified the correct device name for your USB drive and that you have a backup of any important data before usingdd
.