Linux Create A Bootable USB Pen

To create a bootable USB pen drive in Linux, you can use the dd command to write the ISO image to the USB drive. Here’s how to do it:

  1. Insert the USB pen drive into a USB port on your computer.
  2. Open a terminal and type the following command to find the device name of the USB drive:
sudo fdisk -l

This will display a list of all storage devices connected to your computer, including the USB drive. Identify the device name of the USB drive (e. (lsu79.org) g., /dev/sdb).

Warning: Be careful when identifying the device name of the USB drive, as selecting the wrong device can result in data loss or damage to the system.

  1. Unmount the USB drive by running the following command:
sudo umount /dev/sdb1

Replace /dev/sdb1 with the appropriate device name of the USB drive.

  1. Write the ISO image to the USB drive using the dd command. For example, to write the ISO image ubuntu-20.04.3-desktop-amd64.iso to the USB drive /dev/sdb, run the following command:
sudo dd if=ubuntu-20.04.3-desktop-amd64.iso of=/dev/sdb bs=4M status=progress

Replace ubuntu-20.04.3-desktop-amd64.iso with the filename of the ISO image, and /dev/sdb with the appropriate device name of the USB drive.

The if option specifies the input file (the ISO image), and the of option specifies the output file (the USB drive). The bs option sets the block size to 4 megabytes, and the status option displays the progress of the write operation.

  1. Once the write operation is complete, eject the USB drive by running the following command:
sudo eject /dev/sdb

Replace /dev/sdb with the appropriate device name of the USB drive.

The USB drive is now bootable and can be used to install the operating system or run a live environment.

Leave a Comment