How to make a bootable/UEFI USB in Linux ?

What is dd ?

dd is a command in bash that take exactly everything from an input source and dump it on and output source. This explain it name which mean disk dump.

Dump your iso to your usb stick :

#sudo dd if=~/.Downloads/ubuntu14.04.2LTS.iso of=/dev/sdb bs=4M ; sync

Lets break down the command so that we can understand everything.

dd – the binary command in the shell

if= – the input source iso, please use always a full path

of= – the Output source iso, please use always use the disk and not the partition.

bs= – maximum read/write at the same time.

sync – command that Force changed blocks to disk, update the super block.

How to check your usb device:

sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 240.1 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders, total 468862128 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   468862127   234431063+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 8103 MB, 8103395328 bytes
255 heads, 63 sectors/track, 985 cylinders, total 15826944 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4a022e4f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           0     2271359     1135680    0  Empty
/dev/sdb2         2250448     2254991        2272   ef  EFI (FAT-12/16/32)

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb1'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb1: 1162 MB, 1162936320 bytes
255 heads, 63 sectors/track, 141 cylinders, total 2271360 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4a022e4f

     Device Boot      Start         End      Blocks   Id  System
/dev/sdb1p1   *           0     2271359     1135680    0  Empty
/dev/sdb1p2         2250448     2254991        2272   ef  EFI (FAT-12/16/32)

 

As you can see above i have you have two disk, /dev/sda where my operating system is install (Disk /dev/sda: 240.1 GB, 240057409536 bytes).
The second disk is your pen drive (Disk /dev/sdb: 8103 MB, 8103395328 bytes). If you already have a pen drive and you plug another pen drive, the device will be /dev/sdc: xxx MB.

Make it yourself !!.

Article by Ash

“Your eyes can deceive you. Don’t trust them.” – Obi-Wan Kenobi