![]() ![]() $ sudo bootiso -d /dev/sdb ~/Templates/eXternOS.isoīy default, bootiso uses mount + rsync to employ dd command instead, add the -dd flag as shown. If you have multiple USB devices connected to the system, you can use the -d flag to explicitly specify the USB device you want to make bootable from the command line as shown. $ sudo bootiso -a -y ~/Templates/eXternOS.iso You may also use the -a flag to enable autoselecting USB drives in conjunction with -y (disables prompting user before formating USB drive) option as shown. $ sudo bootiso ~/Templates/eXternOS.iso Create Bootable USB in Linux Terminal Note that if there is only one USB device attached to the system (as in the case above), the script will automatically select it, otherwise, it will ask you to select from an auto-generated list of all attached USB drives. Next, to make the device ( /dev/sdb) as a bootable device, simply provide the ISO as the first argument. Listing USB drives available in your system: To create a bootable USB device from ISO file, first you need to list all available USB drives attached to your system using the -l flag as shown. Once installed, the syntax for running bootiso is to provide the ISO as first argument. Next, move the script to a bin path (for example ~/bin/ or /usr/local/bin/) to run it like any other Linux commands on your system. The easy way to install bootiso from sources is to clone the git repository and set execute permission as shown. In addition, it performs a cleanup of any temporary files on exit by employing the trap utility. Importantly, it manages any failure from an internal command appropriately exits. Read Also: 3 Ways to Extract and Copy Files from ISO Image in Linuxīefore formating and partitioning your USB device, it prompts you to accept execution of the actions to prevent any data loss. To prevent system damages, it ensures that the selected device is connected only via USB. Bootiso checks that the selected ISO has the correct mime-type, otherwise it exits. It has to be run with root authority, and if external programs it requires are not available on your system, it will ask you to install them and exits. It is a well tailored script that carefully organized and validated using shellcheck. It helps you create a bootable USB from an ISO with a single command from the terminal. Bootiso is a powerful Bash script to easily and securely create a bootable USB device from one ISO file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |