this post was submitted on 24 Jun 2026
23 points (92.6% liked)

Linux

65997 readers
192 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

The only working PC I have is a 32-bit x86 and has a minimal Debian installation. I need to flash a USB with an ISO file from it to make a live system. I tried for a few days to get flathub or appimage working there, but just can't. I decided an apt package would be the easiest course of action, but neither Rufus, Impress or BalenaEtcher seem to be available in default repos. It there a program that is there? A bare .elf executable with no packaging would also be fine.

top 38 comments
sorted by: hot top controversial new old
[–] rowinxavier@lemmy.world 9 points 2 days ago

Other people have obviously pointed it out, but this is one of the many areas in Linux where the command line is so much easier than an interface that the people who write GUI tools just don't bother. The tool you need for a command line approach is called dd (I imagine it stands for direct data because that is what it does). Using dd you can take data from one place and put it into another. This means you can put zeros all over a drive, wiping it in full, using

dd if=/dev/zero of=/dev/targetdevice

That will fill the whole drive with zeroes, but you could also do it with random noise first, using the below

dd if=/dev/random of=/dev/targetdevice

In the case of your ISO image there is someone who has included all the options including block size and so on, but the step you really need is to be sure you get the right device. Execuse the command below

ls /dev

Then insert your device, wait a few seconds, and run it again. You will have a list of all of the devices that were connected before and after plugging your drive in, so your drive will be the new one. It will probably show up as something like

/dev/sdc
/dev/sdc1

Notice that there are two. The first is the device, the second is the partition on the device. If you tried to put the content of an ISO image into an existing partition it would look like it had all worked but it would actually fail because the ISO is a full rip of a device, not a partition. Instead use the device itself, in this case sdc.

dd if=/path/to/image.iso of=/dev/sdc bs=4M; sync

The last bit will make your system write things to the disk and make it safe to eject it. Once that is all done it should work as a bootable USB.

It seems super complex but once you have done it a few times it becomes so easy you will regret the time spent getting a GUI installed.

If you still want a GUI you could try Gnome Disks, but I never enjoyed using it.

[–] tasankovasara@sopuli.xyz 4 points 2 days ago* (last edited 2 days ago)

Scrolled a while and didn't see it:

dd if=image.iso of=/dev/yourstick bs=4M ; sync

And what is yourstick? lsblk and determine by size. Use the device node, not a partition, e.g. /dev/sdb and not /dev/sdb1.

[–] christian@lemmy.ml 28 points 3 days ago (5 children)

I always had to look up how to use the dd command until a few years back I saw somewhere that you can literally just use cp and the results won't be worse in any way.

cp image.iso /dev/sdX

[–] f3nyx@lemmy.ml 10 points 3 days ago

there's no fucking way

[–] Eggymatrix@sh.itjust.works 3 points 2 days ago

This works. You can also cat image.iso >/dev/sdx

I always laugh at windows users with their external random apps to do something elementary

[–] InnerScientist@lemmy.world 7 points 3 days ago (3 children)

You sure it wasn't cat?

I know you can use a root shell with cat image.ISO > /dev/[...] for disk images/ISO in disk image Format (so most ISO that aren't Windows) but using the cp command would be news for me.

[–] molten_boron@sh.itjust.works 8 points 3 days ago

cp does indeed work too!

[–] MonkderVierte@lemmy.zip 5 points 3 days ago* (last edited 2 days ago) (1 children)

Hmm, cp has smart block size handling & co (unlike dd) but cat is just a stream and pipe & redirect also buffer. Advantage of cp is, you can just sudo it.

[–] Eggymatrix@sh.itjust.works 2 points 2 days ago

Cat too. It works largely the same way

[–] christian@lemmy.ml 5 points 3 days ago

I am 100% certain, I've done this many times over the past few years.

[–] beeng@discuss.tchncs.de 3 points 3 days ago

Real LPT in the comments.

[–] notthebees@reddthat.com 1 points 2 days ago

Won't this break if the flash drive isn't marked as bootable?

[–] SingularEye@lemmy.blahaj.zone 33 points 3 days ago (3 children)

dd if=image.iso of=/dev/sdX bs=64M status=progress

[–] iopq@lemmy.world 15 points 3 days ago (1 children)

Oops hit the wrong key, main drive formatted

[–] thehatfox@lemmy.world 19 points 3 days ago (1 children)

It’s called “disk destroyer” for a reason.

Always double check your dd commands folks.

[–] AnnaFrankfurter@lemmy.ml 0 points 2 days ago (2 children)

Nah... If you use of=/dev/sda it won't touch your main drive

[–] mvirts@lemmy.world 4 points 2 days ago

It freaks me out, but these days with nvme disks this is actually true

[–] TerraRoot@sh.itjust.works 2 points 2 days ago

Lessons for Newbs right here folks

[–] non_burglar@lemmy.world 15 points 3 days ago

Safer with bs=4M on older flash.

[–] nitroemdash@lemmy.wtf 8 points 3 days ago* (last edited 3 days ago)

Thanks, seems it worked. It should be noted that /dev/ over normal /run/media/ path can be found with lsblk command, out of 2 with identical letter use latter with digit

[–] pinball_wizard@lemmy.zip 2 points 2 days ago

Balena Etcher has a .deb file on their GitHub releases.

https://github.com/balena-io/etcher#debian-and-ubuntu-based-package-repository-gnulinux-x86x64

Should be able to just download and double click it, on Debian.

[–] NounsTheVerb@lemmy.dbzer0.com 6 points 2 days ago (2 children)

Ventoy can handle multiple images on the same device

Does Ventoy still have a blob problem?

[–] rmuk@feddit.uk 7 points 2 days ago* (last edited 2 days ago) (1 children)

+1 for Ventoy. For anyone who hasn't heard of it, the Ventoy utility sets up a USB key with a small bootable partition, then fills the rest with an exFAT partition where you can drop your ISOs. Booting from the stick just gives you a list of bootable images to choose from.

[–] noughtnaut@lemmy.world 2 points 2 days ago

It's bloody magic. Super convenient, and tellingly the last iso I ever "burned" - now it's all simple file copy operations from any device. 😎👌

[–] Luckyfriend222@lemmy.world 6 points 2 days ago (1 children)

Balena Etcher. Just because no-one else has mentioned it in the comments so far.

[–] nitroemdash@lemmy.wtf 1 points 2 days ago

It was mentioned in the post. Doesn't seem to be in apt.

[–] Limeade3425@lemmy.zip 10 points 3 days ago

I typically just 'dd'

[–] Filetternavn@lemmy.blahaj.zone 8 points 3 days ago* (last edited 3 days ago)

As others have said, dd will work, or if you really want, you can download the 64-bit Linux ZIP file from Balena's website, extract it, then just run the executable balena-etcher. Should work just fine, and it'll give you the same GUI as always

[–] Peffse@lemmy.world 7 points 3 days ago

You should be able to use dd to create bootable device. Ubuntu has a guide, just replace their iso with yours: scroll all the way down to Using the Linux command line

[–] mereo@piefed.ca 6 points 3 days ago

The ones that come to my mind that you can install from APT are:

  • gnome-disk-utility
  • isoimagewriter
[–] vikingtons@lemmy.world 5 points 3 days ago* (last edited 3 days ago)

you should be able to create bootable flash drives with dd, however you can grab a portable build of balena etcher that should work on all Linux distributions (grab the .zip archive for Linux).

[–] hr_@lemmy.world 2 points 2 days ago* (last edited 2 days ago)

mkusb is a simple bash script around dd to make things easier. I always have it installed on my laptop, in my ~/bin/.

[–] agentTeiko@piefed.social 3 points 3 days ago (1 children)
[–] MonkderVierte@lemmy.zip 0 points 3 days ago* (last edited 3 days ago)

Worse tool for the job. cp, cat, pv, are better.

[–] Limeade3425@lemmy.zip 3 points 3 days ago (1 children)

I'm pretty sure gnome-disks can

[–] adarza@piefed.ca 1 points 3 days ago

yup. works very well. been using it whenever an image fails to boot properly on my multiboot usb..

[–] xela@lemmy.ml 1 points 3 days ago

Have you tried Raspberry Pi Imager or popsicle?