this post was submitted on 20 Oct 2024
39 points (100.0% liked)

Linux

50265 readers
925 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 5 years ago
MODERATORS
 

On Debian's website it is saying to write the image to the USB stick I should use a bash script "# cp Debian.iso /dev/sdX

sync"

Is there another way to do this without using root access?

all 22 comments
sorted by: hot top controversial new old
[–] bloodfart@lemmy.ml 20 points 4 months ago (2 children)

You can’t make a usb bootable without root access iirc. If you already have a bootable usb like ventoy then you can load any goofy thing you want into it without root access and it’ll work.

[–] mvirts@lemmy.world 4 points 4 months ago

Copying the whole image onto the device file will rewrite the partition table, boot flags and all.

But yes, usually this requires root equivalent capabilities.

[–] drspod@lemmy.ml -1 points 4 months ago (1 children)

Please don't continue to recommend Ventoy. It has serious and unanswered security questions hanging over it, and the developer seems to be completely AWOL.

https://github.com/ventoy/Ventoy/issues/2795

https://lemmy.ml/post/20404494

[–] bloodfart@lemmy.ml 12 points 4 months ago (1 children)

I wasn’t completely convinced by that since I build it from source and the binary blobs match their checksums. Months between releases isn’t out of the ordinary for some projects too…

Regardless, what is an alternative that works the same way?

[–] drspod@lemmy.ml 9 points 4 months ago (3 children)

The binary blobs match which checksums? The ones provided by the ventoy developer?

GLIM is an alternative that's much simpler (it just uses Grub configs) so it is easy to audit:

https://github.com/thias/glim

[–] bloodfart@lemmy.ml 10 points 4 months ago

Yeah when you build from source you gotta dl some blobs from busybox and some other projects. It works fine with the ones the developer claims their build is based off of, the ones whose checksums are listed in the docs and match what you get when you ask for them from the repos for the aforementioned busybox or whatever.

I haven’t pulled apart a binary release of ventoy to check and see if it actually has those documented blobs or something else.

I’ll look at glim. Might be cool.

[–] Creat@discuss.tchncs.de 7 points 4 months ago

This sounds like it only boots Linux ISOs? I kinda need the ability to boot all kinds of images, only some of them Linux based.

[–] shekau@lemmy.today 1 points 3 months ago

Last commit over a year ago.

No thank you.

[–] lungdart@lemmy.ca 20 points 4 months ago

Raw disk access is a privilege in Linux, usually reserved for root.

You could have root change the permissions on the directory to allow another user or group write access.

[–] nichtburningturtle@feddit.org 11 points 4 months ago
[–] just_another_person@lemmy.world 9 points 4 months ago

What's the concern?

[–] SaveMotherEarthEDF@lemmy.world 7 points 4 months ago

I reckon it could be related to the permissions required to write to the usb. Perhaps udev rules could help here?

[–] Churbleyimyam@lemm.ee 4 points 4 months ago

I did it on a humble user account using GNOME disks. Select the USB stick and choose restore image in the menu at the top right.

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

Do you not have root access or are you worried about using root access? Sudo will do the trick, you don't need to login as root directly.

[–] progandy@feddit.org 2 points 4 months ago* (last edited 3 months ago) (1 children)

It is possible to format removable drives without root access through udisks2, e.g with gnome-disks or KDE ISO image writer. GNOME Impression is another tool that should work.

[–] BaumGeist@lemmy.ml 2 points 4 months ago (1 children)

those still require root, they just don't explicitly say so. They still pop up with a password prompt

[–] progandy@feddit.org 1 points 3 months ago* (last edited 3 months ago)

They show no password prompt for the user with the "active" session for removable drives. Only system drives always require admin auth for formatting and partitioning. Maybe your session setup is not completely correct so your user session is not marked as the active session or you tried it with a drive that is considered a system drive.

[–] jjlinux@lemmy.ml 2 points 4 months ago (1 children)

Just download the Balena watcher app image, flash whatever is you want, and then delete it. It's ridiculously easy.

[–] lime@feddit.nu 3 points 4 months ago

don't use balenaetcher, it's a terrible piece of software. use unetbootin or usbimager.