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.
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.
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.
Using dd or another third party flashing tool usually requires root to flash to usb.
Hope you find an answer, it would also be great to see the context of why you need to do it without root.
Truthfully just am not an experienced enough user to understand all the potential risks of having it enabled although I'm figuring out now that pretty much every distro I've used until now had root by using sudo.
That makes sense, it's good to be weary. Root access is needed for higher privilege tasks and flashing an image to a USB is one of them, best practice is to use sudo so that you are only using root for the actions you need it for, whilst still being logged in as a normal user.
You would get a UAC check in Windows trying to flash an image to a USB, which is elevating your privilege temporarily to administrator.
If you are just starting out with Linux then have fun, the most rewarding part is figuring stuff out like this so you know for next time!
You could write it using your phone with https://f-droid.org/packages/eu.depau.etchdroid/
I reckon it could be related to the permissions required to write to the usb. Perhaps udev rules could help here?
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.
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.
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.
Just download the Balena watcher app image, flash whatever is you want, and then delete it. It's ridiculously easy.
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.
all 22 comments