Skip to content

Instantly share code, notes, and snippets.

@jmewes
Last active April 22, 2019 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmewes/df0a4ed3967b86c9a06417a8c5055499 to your computer and use it in GitHub Desktop.
Save jmewes/df0a4ed3967b86c9a06417a8c5055499 to your computer and use it in GitHub Desktop.
Create bootable UBS stick from ISO

Identify the device file name:

sudo fdisk /dev/sd* -l

Declare variables:

ISO_FILE=/home/janux/Downloads/debian-live-9.6.0-amd64-gnome.iso
GENERAL_STICK_PARTION=/dev/sdb

Check to use the right USB target:

$ sudo fdisk ${GENERAL_STICK_PARTION} -l
Disk /dev/sdb: 7.4 GiB, 7927234560 bytes, 15482880 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
Disklabel type: dos
Disk identifier: 0x00000000

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1        2048 15482879 15480832  7.4G  7 HPFS/NTFS/exFAT

Trigger the "delete disk" tool:

sudo dd if=$ISO_FILE of=$GENERAL_STICK_PARTION

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment