Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

iso2usb

A simple Bash script for writing Linux ISO files to a USB drive using dd.

Features

  • Automatically detects connected USB drives
  • If multiple drives are found, prompts the user to select one
  • Checks that the USB drive is large enough to fit the ISO
  • Automatically unmounts any mounted partitions on the target drive
  • Displays write progress in real time

Requirements

  • Linux
  • bash, dd, lsblk (included in most distributions)
  • Root privileges

Installation

git clone https://github.com/yourusername/iso2usb.git
cd iso2usb
chmod +x iso2usb

Optionally, install it system-wide:

sudo cp iso2usb /usr/local/bin/

Usage

sudo ./iso2usb <iso-file>

Example:

sudo ./iso2usb ubuntu-24.04-desktop-amd64.iso

Notes

  • Linux ISO files only. Windows ISOs are not supported – use Ventoy or WoeUSB for those.
  • All data on the selected USB drive will be permanently erased.
  • You must type YES (uppercase) to confirm before anything is written.

License

MIT

About

A simple Bash script for writing Linux ISO files to a USB drive using dd

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages