Elektrine lite

← Feed

@nitroemdash@lemmy.wtf

Is there a USB drive flashing program in APT?

2026-06-24 01:05 UTC

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.

Replies (18)

  • @vikingtons@lemmy.world 2026-06-24 01:10

    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.

    Open ##3385940

  • @Peffse@lemmy.world 2026-06-24 01:10

    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

    Open ##3385942

  • @nicgentile@lemmy.world 2026-06-24 01:11

    Gparted/parted. Not sure about 32 bit but if available, yes. There are numerous CLI tools. Maybe fdisk?

    Open ##3385943

  • @Limeade3425@lemmy.zip 2026-06-24 01:12

    I’m pretty sure gnome-disks can

    Open ##3385944

  • @Limeade3425@lemmy.zip 2026-06-24 01:13

    I typically just ‘dd’

    Open ##3385946

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

    Open ##3385948

  • @agentTeiko@piefed.social 2026-06-24 01:12

    DD?

    Open ##3385962

  • As others have said, dd will work, or if you really want, you can download the 64-bit 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

    Open ##3386064

  • @xela@lemmy.ml 2026-06-24 01:42

    Have you tried Raspberry Pi Imager or popsicle?

    Open ##3386098

  • @mereo@piefed.ca 2026-06-24 02:13

    The ones that come to my mind that you can install from APT are: gnome-disk-utility isoimagewriter

    Open ##3386216

  • @christian@lemmy.ml 2026-06-24 03:42

    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

    Open ##3386604

  • @hr_@lemmy.world 2026-06-24 12:50

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

    Open ##3389262

  • @Luckyfriend222@lemmy.world 2026-06-24 13:12

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

    Open ##3389355

  • Ventoy can handle multiple images on the same device

    Open ##3389621

  • @tasankovasara@sopuli.xyz 2026-06-25 04:50

    Scrolled a while and didn’t see it: dd if=image.iso of=/dev/yourstick bs=4M ; sync

    Open ##3396633

  • @rowinxavier@lemmy.world 2026-06-25 09:44

    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.

    Open ##3397904

  • @muusemuuse@sh.itjust.works 2026-06-27 16:51

    dd

    Open ##3431101

  • @Tiger_Man_@szmer.info 2026-06-29 16:26

    dd

    Open ##3473083