The officially official Devuan Forum!

You are not logged in.

#1 Today 12:45:25

kapqa
Member
Registered: 2019-01-02
Posts: 618  

(HowTo) install Mkusb for Devuan 6 (or Debian)

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.list

add the line

sudo apt update

you 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 3729827454B8C8AC
sudo gpg --export --armor 3729827454B8C8AC | sudo tee /etc/apt/trusted.gpg.d/amdgpu.asc

now

sudo apt-get update

should function, proceed with

sudo apt-get install mkusb         # GUI version

https://help.ubuntu.com/community/mkusb … -to-debian

Offline

#2 Today 16:04:17

Camtaf
Member
Registered: 2019-11-19
Posts: 529  

Re: (HowTo) install Mkusb for Devuan 6 (or Debian)

I just use dd, or sometimes just cp. smile

Last edited by Camtaf (Today 16:06:16)

Offline

#3 Today 21:17:52

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,829  

Re: (HowTo) install Mkusb for Devuan 6 (or Debian)

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 0

Offline

Board footer