The officially official Devuan Forum!

You are not logged in.

#1 Yesterday 12:45:25

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

(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 Yesterday 16:04:17

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

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

I just use dd, or sometimes just cp. smile

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

Offline

#3 Yesterday 21:17:52

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

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

Online

#4 Today 14:21:46

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

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

@camtaf, cp as in copy?

that could use with ventoy, which am using still quite to the like (never got to function iventoy that well, however).

however, the mkusb is quite comfortable,too, and rather "safe" to use would argue.

my terminal skills are limited.

Last edited by kapqa (Today 14:22:42)

Offline

#5 Today 17:17:39

rolfie
Member
Registered: 2017-11-25
Posts: 1,408  

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

Yes, you can use cp to write an ISO image to a USB device.

From an old HowTo and still valid:

# cp debian.iso /dev/sdX
# sync

I prefer to use dd instead with the option status=progress to get an idea how long it still may take.

Online

#6 Today 19:33:02

greenjeans
Member
Registered: 2017-04-07
Posts: 1,524  
Website

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.

That would be nifty to make a right-click file-manager extension.


https://sourceforge.net/projects/vuu-do/ New Vuu-do isos uploaded December 2025!
Vuu-do GNU/Linux, minimal Devuan-based Openbox and Mate systems to build on. Also a max version for OB.
Devuan 5 mate-mini iso, pure Devuan, 100% no-vuu-do. wink Devuan 6 version also available for testing.
Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

Board footer