Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
soloojos (Lemmy) ( jorge@feddit.cl )  to Linux@lemmy.mlEnglish · 2 years ago

How to create a bootable Linux USB drive

www.zdnet.com

external-link
message-square
38
link
fedilink
110
external-link

How to create a bootable Linux USB drive

www.zdnet.com

soloojos (Lemmy) ( jorge@feddit.cl )  to Linux@lemmy.mlEnglish · 2 years ago
message-square
38
link
fedilink
If you want to install Linux on a desktop, you'll first have to create a bootable USB drive with your distribution of choice.
alert-triangle
You must log in or # to comment.
  • Gormadt ( Gormadt@lemmy.blahaj.zone ) 
    link
    fedilink
    arrow-up
    62
    ·
    2 years ago

    Personally I use Ventoy

    Basically I can just throw a whole bunch of ISOs on a USB drive and when I boot it it brings me to a menu to pick which one I want to boot

    It’s freaking great

    I’ve got various windows ISOs and Linux distros just living on a 64GB flash drive

    • CosmicTurtle0 [he/him] ( CosmicTurtle0@lemmy.dbzer0.com ) 
      link
      fedilink
      English
      arrow-up
      7
      ·
      2 years ago

      It must have gotten better than the last time I tried to use Ventoy. Maybe 5 years ago? It kept complaining that the USB drive I was using was bad when it worked completely fine with other tools.

      • Gormadt ( Gormadt@lemmy.blahaj.zone ) 
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        It has gotten a lot better over the years

        That was basically my first experience with it as well also about 5 years ago

        Nowadays it works like a dream come true for every OS I’ve thrown on the drive

      • governorkeagan ( governorkeagan@lemdro.id ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        I tried a couple of months ago on my Windows PC and something went wrong somewhere and my USB was stuck in a permanent read-only state.

        I definitely will give it another try though, it’s super handy to have.

        I’m an idiot and got Ventoy confused with another program I was testing at the time. Please ignore me.

        • Empricorn ( Empricorn@feddit.nl ) 
          link
          fedilink
          English
          arrow-up
          3
          ·
          2 years ago

          Was it VampBoy? I accidentally ordered one and opened the crate to find a sexy, undead Twink. ☹️ I wanted to nerd-out with Linux!!!

    • penquin ( penquin@lemm.ee ) 
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      Ventoy is great. It was a bit confusing when I first ran into it. It installed, but I didn’t know what happened. Lmao. I think I installed it like 10 times because it wasn’t telling me what it did, but then the light bulb went off. Aaaaaah. I was trying to install windows on a laptop and it was being a bitch on the USB stick, and Ventoy made it work.

    • /home/pineapplelover ( pineapplelover@lemm.ee ) 
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Best way to have a bootable USB

    • Empricorn ( Empricorn@feddit.nl ) 
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 years ago

      Huh, never tried it. It has persistent storage? Updates? Security?

      I’m currently using MX Linux for my Persistent, Live USB of choice, but apparently I need to check out Ventoy?

  • Snot Flickerman ( SnotFlickerman@lemmy.blahaj.zone ) 
    link
    fedilink
    English
    arrow-up
    40
    ·
    edit-2
    2 years ago

    Any “How To” that doesn’t just use Rufus isn’t worth the page its text is rendered on. Rufus can do Linux boot disks, but is indispensable for Windows boot disk utilities. It’s one of the only ways I know of to make a Windows ToGo installation (equivalent of a Linux Live USB), which I used to install Windows on a friends SD card for their Steam Deck so they can dual-boot.

    https://rufus.ie/en/

    If you’re looking to make a Linux boot USB from Linux itself, BalenaEtcher is probably a better bet since Rufus is Windows-only.

    https://github.com/balena-io/etcher

    I’ve noticed there’s tons of how-to’s for making a bootable disk on Windows, hardly any for Linux. Perhaps we ought to remedy that?

    • yo_scottie_oh ( yo_scottie_oh@lemmy.ml ) 
      link
      fedilink
      English
      arrow-up
      32
      ·
      2 years ago

      Ventoy for life

      • 30p87 ( 30p87@feddit.de ) 
        link
        fedilink
        arrow-up
        4
        ·
        2 years ago

        Arch currently doesn’t work with it :c

        • lemmyreader ( lemmyreader@lemmy.ml ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

          https://wiki.archlinux.org/title/USB_flash_installation_medium#Using_ventoy

          Note: archlinux-2024.05.01-x86_64.iso should be run in GRUB2 mode to work. See Ventoy issue #2825.

          • 30p87 ( 30p87@feddit.de ) 
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            I thought I tried that too, but I’ll try again then lol

    • Successful_Try543 ( Successful_Try543@feddit.de ) 
      link
      fedilink
      arrow-up
      24
      ·
      2 years ago

      For Linux you don’t need a GUI tool, most how tos just dd the ISO onto the USB medium, e.g.

      sudo dd if= of= bs=16M status=progress oflag=sync
      

      like described in the Debian FAQs

      • Snot Flickerman ( SnotFlickerman@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        19
        ·
        2 years ago

        Man, Google really does suck now. It feels nearly impossible to get something like a how-to deep in the Debian FAQs to come up, as it mostly surfaces this auto-generated SEO crap for How To’s.

        Very cool, I’d assumed there was a simple command line set of commands, just was failing to find it. Thanks.

      • orsetto ( orsetto@lemmy.dbzer0.com ) 
        link
        fedilink
        arrow-up
        8
        ·
        2 years ago

        I don’t remember where, but i read that this method only works because linux distributors “abuse” the ISO format to allow this. If I remember right, it’s not possible to use this ISOs on regular disks

        Of course the command you provided is right and it’s what I use, it’s just a fun fact

        • Successful_Try543 ( Successful_Try543@feddit.de ) 
          link
          fedilink
          arrow-up
          7
          ·
          edit-2
          2 years ago

          Yes and no, it’s the other way round. The ISOs often are hybrid images which you can burn onto a CD/DVD or dd onto a USB pen drive. Until approximately 10-15 years ago, if I remember correctly, the distributed Linux ISOs where standard not hybrid images, thus you always needed some other program to create bootable USB media.

    • Pattyice ( Pattyice@lemmy.ml ) 
      link
      fedilink
      arrow-up
      9
      ·
      2 years ago

      some distros have it built into it like Mint I was able to create a bookable drive of also mint

      • Snot Flickerman ( SnotFlickerman@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years ago

        Neat, I wasn’t aware of that for Mint.

      • metaStatic ( metaStatic@kbin.social ) 
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        I think I destroyed a USB stick back in the day doing this shit. be careful they don’t lock the stick and if they do make sure you use the program to wipe the stick ASAP before you forget what program you used to make it.

        I have a ventoy stick for this exact reason, just copy iso to stick, no need to burn a new one every time.

    • d3Xt3r ( d3Xt3r@lemmy.nz ) 
      link
      fedilink
      arrow-up
      6
      ·
      2 years ago

      It’s one of the only ways I know of to make a Windows ToGo installation (equivalent of a Linux Live USB),

      You can also use WinToUSB for that btw. Yet another option is to install Windows to a VHD file (using a virtual machine, or using Disk2VHD to convert an existing install), then copy it to your USB, and make it bootable using Ventoy. The latter option is more useful, since with Ventoy you could have multiple other Linux ISOs (or other OS/rescue images) all on a single, portable drive.

      • Snot Flickerman ( SnotFlickerman@lemmy.blahaj.zone ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        Yet another option is to install Windows to a VHD file (using a virtual machine, or using Disk2VHD to convert an existing install), then copy it to your USB, and make it bootable using Ventoy

        Neat, I saw Ventoy in here, but wasn’t entirely sure about it until you mentioned this. Initially, I assumed it was what it said on the tin but just for Linux ISOs. Very cool you can finagle a Windows live install on there as well.

    • flyos ( flyos@jlai.lu ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      I tried Windows ToGo on a few USB keys (including two high-speed ones), never managed to get something I could actually use that was not laggy AF, to the point it’s not usable (dozens of minutes to boot, lags of entire minutes and so on). Did I do something wrong?

    • BCsven ( BCsven@lemmy.ca ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Gnome Disks Util. select mounted drive, go to top right and choose restore image

    • ☂️- ( umbrella@lemmy.ml ) 
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      1 year ago

      deleted by creator

  • cygnus ( cygnus@lemmy.ca ) 
    link
    fedilink
    arrow-up
    27
    ·
    2 years ago

    Uh yeah OK, I doubt anyone in c/linux didn’t know how to do this already

    • Fidel_Cashflow ( Fidel_Cashflow@lemmy.ml ) 
      link
      fedilink
      arrow-up
      13
      ·
      2 years ago

      I will say, as someone who has been looking for a simple way to install Linux on my Windows desktop at home, this is incredibly useful. Doubly so as I’m not very experienced with installing OS’s and Linux can look very intimidating to an outsider looking in!

      • cygnus ( cygnus@lemmy.ca ) 
        link
        fedilink
        arrow-up
        7
        ·
        2 years ago

        I stand corrected then - welcome aboard! Linux is much easier to get into now than even just 5 years ago.

    • floofloof ( floofloof@lemmy.ca ) 
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 years ago

      ZDNet content is 100% worthless these days.

      • youmaynotknow ( jjlinux@lemmy.ml ) 
        link
        fedilink
        arrow-up
        6
        ·
        2 years ago

        Has been for a few years now.

  • someonesmall ( someonesmall@lemmy.ml ) 
    link
    fedilink
    arrow-up
    19
    ·
    2 years ago

    If you’re already on linux there is no need to install special tools. Simply copy the iso directly to the USB device.

    dd if=distribution.iso of=/dev/sdX bs=1M && sync

    • gr3q ( gr3q@lemmy.ml ) 
      link
      fedilink
      arrow-up
      6
      ·
      edit-2
      2 years ago

      You can do the same with cp too. Also safer.

      But I use Ventoy nowadays.

    • Krtek ( Krtek@feddit.de ) 
      link
      fedilink
      arrow-up
      5
      ·
      2 years ago

      oflag=sync also works instead of && sync. Might as well drop a status=progress in there too

  • Red_sun_in_the_sky ( Red_sun_in_the_sky@lemmy.ml ) 
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    I use Rufus. It just works.

    • Empathy [he/him] ( Empathy@beehaw.org ) 
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      I kept seeing so many different ones recommended and I kept getting weird issues I didn’t understand with most of them. I don’t often need to make a bootable Linux USB, but every time, Rufus did the job quick and easy.

  • boredsquirrel (he) ( boredsquirrel@slrpnk.net ) 
    link
    fedilink
    arrow-up
    6
    ·
    2 years ago

    No shit I think flashing ISOs is now fine that we have Impression, Fedora Media writer und the KDE Usb flash tool.

    But how the hell do you install Tails? May have to do that again, but last times it was never bootable.

  • rotopenguin ( rotopenguin@infosec.pub ) 
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 years ago

    I would like to install a distro on a USB stick, without it doing something stupid to my internal drive’s EFI.

  • mFat ( mfat@lemdro.id ) 
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 years ago

    I use Balena Etcher.

    • doofy77 ( doofy77@aussie.zone ) 
      link
      fedilink
      arrow-up
      3
      ·
      2 years ago

      Popsicle for me, not a fan of electron.

  • nanook ( nanook@friendica.eskimo.com ) BannedBanned from community
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Removed by mod

Linux@lemmy.ml

linux@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linux@lemmy.ml

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

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

  • !opensource@lemmy.ml
  • !libre_culture@lemmy.ml
  • !technology@lemmy.ml
  • !libre_hardware@lemmy.ml

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

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 240 users / day
  • 905 users / week
  • 2.9K users / month
  • 6.37K users / 6 months
  • 1.31K local subscribers
  • 67.8K subscribers
  • 8.07K Posts
  • 108K Comments
  • Modlog
  • mods:
  • AgreeableLandscape ( AgreeableLandscape@lemmy.ml ) 
  • nooter692 ( nooter692@lemmy.ml ) 
  • MarcellusDrum ( MarcellusDrum@lemmy.ml ) 
  • Arthur Besse ( cypherpunks@lemmy.ml ) 
  • Cyclohexane ( cyclohexane@lemmy.ml ) 
  • d3Xt3r ( d3Xt3r@lemmy.nz ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code