Skip to content

Instantly share code, notes, and snippets.

@maxbelyanin
Created February 20, 2018 15:16
Show Gist options
  • Save maxbelyanin/f43f172513a0fe3ccbaa61e7b8eda8a4 to your computer and use it in GitHub Desktop.
Save maxbelyanin/f43f172513a0fe3ccbaa61e7b8eda8a4 to your computer and use it in GitHub Desktop.
Create bootable USB

##1. Install isohybrid tool

Install syslinux package which contain isohybrid tool. It used to convert ISO image into USB drive compatible format.

$ apt-get install syslinux

##2. Convert ISO image into USB drive compatible format

# isohybrid /path/to/image.iso

##3. Find out USB device name

$ sudo dmesg

....
[111197.570705] usb 3-6: new high-speed USB device number 11 using xhci_hcd
[111197.814391] usb 3-6: New USB device found, idVendor=8564, idProduct=1000
[111197.814393] usb 3-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[111197.814395] usb 3-6: Product: Mass Storage Device
[111197.814396] usb 3-6: SerialNumber: KPTB6WN5
[111197.814913] usb-storage 3-6:1.0: USB Mass Storage device detected
[111197.815041] scsi host7: usb-storage 3-6:1.0
[111204.605652] scsi 7:0:0:0: Direct-Access     JetFlash Transcend 32GB   8.07 PQ: 0 ANSI: 4
[111204.606204] sd 7:0:0:0: Attached scsi generic sg3 type 0
[111204.606888] sd 7:0:0:0: [sdd] 61046784 512-byte logical blocks: (31.3 GB/29.1 GiB)
[111204.607579] sd 7:0:0:0: [sdd] Write Protect is off
[111204.607583] sd 7:0:0:0: [sdd] Mode Sense: 23 00 00 00
[111204.608283] sd 7:0:0:0: [sdd] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[111204.737234]  sdd: sdd4
[111204.739768] sd 7:0:0:0: [sdd] Attached SCSI removable disk

##4. Create bootable ISO

Use dd command to write the ISO image into the disk. No need to format the USB Device, while using dd command it will automatically overwrite with new content.

sudo dd if=/path/to/image.iso of=/dev/sdd status=progress bs=4M && sync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment