Skip to content

Instantly share code, notes, and snippets.

@tripulse
Last active January 23, 2019 02:36
Show Gist options
  • Select an option

  • Save tripulse/6d811ba87170133412f71b2a3fd8c331 to your computer and use it in GitHub Desktop.

Select an option

Save tripulse/6d811ba87170133412f71b2a3fd8c331 to your computer and use it in GitHub Desktop.
A safe and secure way to make boot-able USB stick in Linux without messing with low level stuff

A bash script that's able create a boot-able USB out of ISO. It has a feature to automatically select USB drive if there's only one mounted. It will prompt you if there are multiple USB drives.

Installation

BootISO is very easy to install in your system. Just download it and paste it in /usr/bin folder. For now, we'll use command-line instead to install it to simplify it.

# We'll download the file into this folder
cd "/usr/bin"
wget "https://git.io/bootiso"

# Mark it as a executable bash script
chmod +x "bootiso"

Guide

Note: the -y option doesn't ask you for data deletion permission but we'll use it for automating things.

bootiso -y "path/to/file"

By default, it automatically detects USB drives. If there are multiple ones it will prompt for the device_id. Or, use -d </dev/sdX> flag to not make it prompt!

bootiso -d "/dev/sdb" -y "path/to/file"

That's it, you've learned the basic guide to use BootISO. Read the creators documentation for more information.

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