Shell Script: Create Linux Bootable USB Sticks

last updated in Categories Howto, Linux, Linux desktop, Linux distribution, Perl

This may come handy, from the project page:

Mk-boot-usb is a perl script to create multiple-bootable usb sticks (usb keys / usb flash drives). It wipes out an entire usb stick, partitions it, creates file systems on it, installs grub, and installs a minimal linux on it. Mk-boot-usb is meant to speed up and lower the barrier of entry for creating bootable usb sticks. The usb stick will immediately become bootable (using the minimal linux), and more useful distributions can then be installed into other partitions manually simply by (1) copying any Live CD into each partition (2) modifying grub’s configuration file.

=> Mk-boot-usb: a Script to Create Multiple-Bootable USB Sticks

Related: How to Create Bootable Linux CD

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

2 comment

  1. I want something close to this on a thumb drive using Linux:

    I’d like to see a script with a specific option to easily install (for Linux ignorants like me) an absolutely minimal OS _tailored for the PC_ that the flash device is attached to during the installation. Apps to install would be _individually_ selected from a list and the resulting desktop appearance would be as similar as possible to the one presented by SplashTop without violating copyrights (if that needs to be a consideration) with icons for the individual apps sized to occupy their portion of the entire desktop (i.e. large icons). An icon to continue the boot to the PC’s main OS would also be on the desktop (or however SplashTop implements this).

    Have a question? Post it on our forum!