You are not logged in.
Hello ,
found this tool most reliable for creating bootable usb-sticks from .iso files on linux.
taken from here
https://help.ubuntu.com/community/mkusb
and here
https://help.ubuntu.com/community/mkusb#Debian
steps:
(install the ppa manually)
sudo -H gedit /etc/apt/sources.listadd the line
deb http://ppa.launchpad.net/mkusb/ppa/ubuntu focal main
sudo apt updateyou will receive error most likely with (public key not available etc) and a number like (NO_PUBKEY 3729827454B8C8AC)
use this number like here
sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 3729827454B8C8ACsudo gpg --export --armor 3729827454B8C8AC | sudo tee /etc/apt/trusted.gpg.d/amdgpu.ascnow
sudo apt-get update
should function, proceed with
sudo apt-get install mkusb # GUI versionOffline
I just use dd, or sometimes just cp. ![]()
Last edited by Camtaf (Today 16:06:16)
Offline
I use this interactive script so I don't have to type as much. Run it from the directory that contains the iso files. Code is mostly lifted from refracta2usb which can make a multi-boot live-usb and is a lot bigger than this.
You need hwinfo and pv installed for this to work.
#!/usr/bin/env bash
#
# iso2usb.sh
#set -x
#
# Run this script from the directory that contains your .iso files.
#
blocksize="1M"
[[ $(id -u) -eq 0 ]] || { echo -e "\n\t You need to be root!\n" ; exit 1 ; }
usbdevlist=$(/usr/sbin/hwinfo --usb --short | awk '/dev\/sd/ {print $1}')
usbdevfulllist=$(/usr/sbin/hwinfo --usb --short | awk '/dev\/sd/ {print $0}')
echo -e "\n\tLIST OF REMOVABLE DRIVES\n${usbdevfulllist}\n${sdfulllist}\n${cdromfulllist}\n\nSelect a device:"
select opt in $usbdevlist ; do
device=$(echo "$opt" | awk '{ print $1 }')
break
done
if [[ -z "$device" ]] ; then
echo "No device was found."
exit 0
fi
echo -e "\n\tSelect the image file.\n"
select file in *.iso *.img ; do
echo -e "\n$file"
break
done
size=$(ls -lh $file | awk '{ print $5 }' | sed -e 's/M//')
if echo "$size" | grep -q G ; then
size="$(echo "$size" | sed -e 's/\.//' -e 's/G//')00"
fi
echo "Size is ${size}M"
if echo "$size" | grep -q K ; then
echo "Out of range units"
exit 1
fi
echo -e "\n\tCopy $file to $device?\n\n\tThe command will be:\n\tdd if=$file | pv -s ${size}M | dd of=$device bs=${blocksize}\n\n"
echo -e " Press ENTER to continue or ctrl-c to abort."
read -p " "
dd if="$file" | pv -s ${size}M | dd of="$device" bs="$blocksize"
sync
exit 0Offline