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?

  • @[email protected]
    link
    fedilink
    204 months ago

    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
      link
      44 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.

      • @[email protected]
        link
        fedilink
        124 months ago

        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?

          • @[email protected]
            link
            fedilink
            104 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.

          • @[email protected]
            link
            fedilink
            64 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.

  • @[email protected]
    link
    fedilink
    194 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.

    • @[email protected]OP
      link
      fedilink
      24 months ago

      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.

  • @SaveMotherEarthEDF
    link
    74 months ago

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

  • @[email protected]
    link
    fedilink
    34 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
    link
    24 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.

  • @[email protected]
    link
    fedilink
    2
    edit-2
    4 months ago

    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.

    • @[email protected]
      link
      fedilink
      24 months ago

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

      • @[email protected]
        link
        fedilink
        1
        edit-2
        4 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.

  • youmaynotknow
    link
    fedilink
    14 months ago

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

    • lime!
      link
      fedilink
      English
      24 months ago

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