Euroflasher is a lightweight USB imaging tool for writing ISO files to flash drives.
It replaces manual dd usage with a guided terminal-style interface.
install script
Why did i make euroflasher? I used dd a LOT, and I can never seem to remember what the correct command with all the parameters is. So Euro just makes it 10x simpler for me and I thought I'd share my work with others.
Is Euro opensource? I believe that everything should be opensource although its not common nowadays, I decided to upload all the code from the installer to euro itself onto this site so its easy to look at and modify if needed,
(all this script does is grab the euro file from my website and put it into /usr/local/bin/)
euro file
#!/usr/bin/env bash
if [[ $EUID -ne 0 ]]; then
echo "euro needs sudo to work properly."
exec sudo "$0" "$@"
fi
set -euo pipefail
clear
echo "=================================="
echo " Euro DD Flasher"
echo "=================================="
echo
echo "Available drives:"
lsblk -d -o NAME,SIZE,MODEL,TRAN
echo
read -rp "Enter the drive (e.g. sdb or /dev/sdb): " DRIVE
# Allow either "sdb" or "/dev/sdb"
if [[ "$DRIVE" != /dev/* ]]; then
DRIVE="/dev/$DRIVE"
fi
if [[ ! -b "$DRIVE" ]]; then
echo
echo "Error: '$DRIVE' is not a valid block device."
exit 1
fi
echo
read -erp "Enter the path to the ISO: " ISO
# Expand ~ to the user's home directory
ISO="${ISO/#\~/$HOME}"
if [[ ! -f "$ISO" ]]; then
echo
echo "Error: ISO file not found."
exit 1
fi
echo
echo "=================================="
echo "Device : $DRIVE"
echo "ISO : $ISO"
echo "=================================="
echo
echo "WARNING!"
echo "Everything on $DRIVE will be permanently erased."
echo
read -rp "Type YES to continue: " CONFIRM
if [[ "$CONFIRM" != "YES" ]]; then
echo "Cancelled."
exit 0
fi
echo
echo "Unmounting any mounted partitions..."
umount "${DRIVE}"* 2>/dev/null || true
echo
echo "Flashing ISO..."
dd if="$ISO" of="$DRIVE" bs=4M status=progress oflag=direct conv=fsync
sync
echo
echo "=================================="
echo "Flash complete!"
echo "You may now safely eject the USB."
echo "=================================="