2

I know dd utility is often cited, but I would consider it unsafe as it could harm the system when mis-selecting a system drive.

So I'd like to create a bootable USB drive from a hybrid ISO file in one shell command-line, is there any utility to achieve that?

7

bootiso BASH script was carefully designed as a user-friendly command line utility to securely create bootable USB sticks from ISO files in one line.

Typical usage

bootiso file.iso

Features

  • prevent you from damaging the system by asserting selected device is connected through USB
  • smartly inspects ISO file to handle both hybrid and non-hybrid ISOs, installing SYSLINUX bootlaoder when needed, boosting the odds USB will be bootable
  • autoselect a USB drive if there is exactly one connected to your system
  • prompt user for confirmation before erasing anything
  • check ISO file mime type
  • carefully linted and validated with shellcheck

See it in action

In this example, options --assume-yes and --autoselect (shorten -ay) allow user to create a bootable USB from ISO in one line by autoselecting the one and only USB drive connected to its system and bypassing the confirmation step. If more than one USB drive is detected, user will still be prompted to select one.

Quick install

curl -L https://git.io/bootiso -O
chmod +x bootiso
1
  • Great tool and great support via Github, thank you! – mevdschee Feb 20 '19 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.