Oncemore: creating a USB-Flash drive :: how to do this right?

good day - hello dear Eos experts :smiley:

….today i want to create a usb-stick with a ISO:

therefore here some musings regarding the cration of a iso file on STICK:

… well does this work - and lead to a successful iso file on stick!?

sudo dd bs=4M if=/home/user/Downloads/Linuxfile.iso of=/dev/sdb status=progress oflag=sync

well here we write to the usb-stick (sdb)

$ sudo dd bs=4M if=/path/to/file.iso of=/dev/sdX status=progress oflag=sync

but wait: some guys write a so called “tilde”

ubuntu@T420s:~$ sudo dd bs=4M if=~/Downloads/mmylinux_file.iso of=/dev/sdb status=progress && sync

do we need this in the term!? What does the ~ do here!?

and last question: how do we adress the usb-stick “sdb” correct - so that the iso does not go onto a certain partition - but takes the “whole” sdb - which might be iimportant i think

look forward to any and all tip!!

Here
https://discovery.endeavouros.com/installation/create-install-media-usb-key/2021/03/

2 Likes

The ~ is a shortcut for /home/username

1 Like

hello dear MyNamesIs Richard and TheFrog :slightly_smiling_face:

first of all : many thanks for the quick reply and for sharing you ideas and experience here: This is very helpful!!



u@T420s:~$ sudo dd bs=4M if=~/Downloads/eos9.iso of=/dev/sdb status=progress && sync[sudo] Passwort für ubuntu:Das hat nicht funktioniert, bitte nochmal probieren.[sudo] Passwort für ubuntu:Das hat nicht funktioniert, bitte nochmal probieren.[sudo] Passwort für ubuntu:3144155136 Bytes (3,1 GB, 2,9 GiB) kopiert, 656 s, 4,8 MB/s749+1 Datensätze ein749+1 Datensätze aus

so i think that thre ~ is pretty important here.

and the term: of=/dev/sdb status=progress && sync

is this the right way to do the writing to the flash-drive - some friends argued that here some other options were possible too - but if we write it in another way - the we would probably write it to a certain partition of the usb - and indeed i once had the case that the iso was not found on the stick - after i have enteredd a “wrong” command !?

what can you say here - what is important here !?

btw:; i hopefully was able to spell out what is the question…

greetings :smiley:

you need to make sure of the correct drive path before executing the command or you could wipe out the wrong device. To make sure you should run lsblk or sudo fdisk -l to see what /dev path you should be using.

2 Likes

As said above run lsblk to determine the correct device to write to. Then in your command designate the device and not a partition on that device.
Ie: use /dev/sdb and NOT: /dev/sdb1 or /dev/sdb2 etc.

why don’t you run the gnome-disk-utility?

very easy handling and you can’t produce errors - normally :innocent:

If you have GNOME or Cinnamon, it’s a right-click on the ISO and Open With… → Disk Image Writer.

On a German system, it has a real crazy name: Öffnen mit → Schreiber von Laufwerksabbildern.

Just in case. I still like dd better (works everywhere).

1 Like

that is gnome-disk-utility :wink:

Ventoy is a great tool or Popsicle.

I know, just didn’t want to confuse a newbie, because you wont’t find it under that name. On the commandline, there are only gnome-disk-image-mounter and gnome-disks. :wink:

You install gnome-disk-utility and you get these two, plus “Laufwerke” (“Drives” or “Disks”) in the menu. Plus the Nemo integration.

1 Like

We must help them to help themselves…….. :innocent:

1 Like

Indeed, that’s the best way. So RTFM, or in more polite words: Check the Arch wiki, there’s a wealth of info there. :grin:

their own opinion everyone :star_struck: