BootISO – A Simple Bash Script To Securely Create A Bootable USB Device From ISO File
======
Most of us (including me) very often create a bootable USB device from ISO file for OS installation.
There are many applications freely available in Linux for this purpose. Even we wrote few of the utility in the past.
Every one uses different application and each application has their own features and functionality.
In that few of applications are belongs to CLI and few of them associated with GUI.
Today we are going to discuss about similar kind of utility called BootISO. It’s a simple bash script, which allow users to create a USB device from ISO file.
Many of the Linux admin uses dd command to create bootable ISO, which is one of the native and famous method but the same time, it’s one of the very dangerous command. So, be careful, when you performing any action with dd command.
**Suggested Read :**
**(#)** [Etcher – Easy way to Create a bootable USB drive & SD card from an ISO image][1]
**(#)** [Create a bootable USB drive from an ISO image using dd command on Linux][2]
### What IS BootISO
[BootIOS][3] is a simple bash script, which allow users to securely create a bootable USB device from one ISO file. It’s written in bash.
It doesn’t offer any GUI but in the same time it has vast of options, which allow newbies to create a bootable USB device in Linux without any issues. Since it’s a intelligent tool that automatically choose if any USB device is connected on the system.
It will print the list when the system has more than one USB device connected. When you choose manually another hard disk manually instead of USB, this will safely exit without writing anything on it.
This script will also check for dependencies and prompt user for installation, it works with all package managers such as apt-get, yum, dnf, pacman and zypper.
### BootISO Features
* It checks whether the selected ISO has the correct mime-type or not. If no then it exit.
* BootISO will exit automatically, if you selected any other disks (local hard drive) except USB drives.
* BootISO allow users to select the desired USB drives when you have more than one.
* BootISO prompts the user for confirmation before erasing and paritioning USB device.
* BootISO will handle any failure from a command properly and exit.
* BootISO will call a cleanup routine on exit with trap.
### How To Install BootISO In Linux
There are few ways are available to install BootISO in Linux but i would advise users to install using the following method.
```
$ curl -L https://git.io/bootiso -O
$ chmod +x bootiso
$ sudo mv bootiso /usr/local/bin/
```
Once BootISO installed, run the following command to list the available USB devices.
```
$ bootiso -l
Listing USB drives available in your system:
NAME HOTPLUG SIZE STATE TYPE
sdd 1 32G running disk
```
If you have only one USB device, then simple run the following command to create a bootable USB device from ISO file.