How to make a USB bootable using Linux machine?

Hope you have these items

  • USB drive (at least 2GB)
  • Linux machine
  • The ISO file for the OS you want to boot

Once you have them ready.

Step 1 : Go to Disks in your linux machine (you can just search globally and you will get the option), and choose the USB drive which you want to boot.

Step 2: Format the USB to FAT-32.

Step 3: Open Startup Disk Creator in your machine. Select the ISO file.

Step 4: Click on Make Startup Disk button. (Be patient, it might take some time)

Your USB drive is booted now.

That was an easy method. But if you want to make the USB bootable from your terminal/console. Then follow these instructions –

Step 1 : Open the terminal and enter this command:

$ sudo apt-get install syslinux mtools

Step 2 : Create a mount point and mount Linux ISO image using the following command.

$ sudo mkdir /media/iso
$ sudo mount -o loop /opt/Ubuntu.iso /media/iso

Step 3 : Connect your USB and Mount it (if it’s already mounted then skip this step) :

$ sudo mount /dev/sdc /medma/usb

Step 4 : Copy all files from mounted ISO to the USB drive.

$ sudo cp -ra /media/iso/* /media/usb

Step 5 : Copy the ldlinux.sys file to your USB drive.

$ sudo syslinux -s /dev/sdd1

Step 6 : Use these commands to rename of some important files.

$ cd /medma/usb
$ mv isolinux syslinux
$ cd syslinux
$ mv isolinux.cfg syslinux.cfg

Your USB drive is booted now.