Tag Archives: bootable USB

Create a bootable Ubuntu USB drive from an ISO in Ubuntu

The first thing we need to do is download an Ubuntu ISO file. The second one is plugin the USB drive and discover which device file it is related with. Using dmesg can help us with this:

$ dmesg
...
[  161.448084] usb 2-4: new high-speed USB device number 4 using ehci-pci
[  161.581198] usb 2-4: New USB device found, idVendor=8564, idProduct=1000
[  161.581203] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  161.581205] usb 2-4: Product: Mass Storage Device
[  161.581208] usb 2-4: Manufacturer: JetFlash
[  161.581210] usb 2-4: SerialNumber: XXXXXXXXXX
[  163.501196] usb-storage 2-4:1.0: USB Mass Storage device detected
[  163.504617] scsi6 : usb-storage 2-4:1.0
[  163.505185] usbcore: registered new interface driver usb-storage
[  164.506478] scsi 6:0:0:0: Direct-Access     JetFlash Transcend 8GB    1.00 PQ: 0 ANSI: 6
[  164.506779] sd 6:0:0:0: Attached scsi generic sg2 type 0
[  164.508311] sd 6:0:0:0: [sdb] 15433728 512-byte logical blocks: (7.90 GB/7.35 GiB)
[  164.508698] sd 6:0:0:0: [sdb] Write Protect is off
[  164.508702] sd 6:0:0:0: [sdb] Mode Sense: 23 00 00 00
[  164.509072] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[  164.512353]  sdb: sdb1
[  164.514327] sd 6:0:0:0: [sdb] Attached SCSI removable disk

There we can see it’s sdb. So now we just have to use dd to write the ISO file to the device:

$ sudo dd if=ubuntu-14.04.2-desktop-amd64.iso of=/dev/sdb bs=20M

We can also use the “Make Startup Disk” application to do the same in the desktop environment. If you don’t find it anywhere just run this from the command line and it should start:

$ usb-creator-gtk &

make-startup-disk

There just select the origin ISO and the destination USB drive and click “Make Startup Disk”.

Install unetbootin in Ubuntu for simple bootable GNU/Linux USB drives creation

sudo add-apt-repository ppa:gezakovacs/ppa
sudo apt-get update
sudo apt-get install unetbootin

UNetbootin_logo

Ref: https://launchpad.net/~gezakovacs/+archive/ubuntu/ppa