How to create a bootable Linux USB drive
How to create a bootable Linux USB drive
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.
If you’re looking to make a Linux boot USB from Linux itself, BalenaEtcher is probably a better bet since Rufus is Windows-only.
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?
wiki.archlinux.org/…/USB_flash_installation_mediu…
Note: archlinux-2024.05.01-x86_64.iso should be run in GRUB2 mode to work. See Ventoy issue #2825.
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.
Rufus is Pete Batard, found it through his links on Rufus’s page.
Dunno who you’re referring to specifically but you can cross reference now.
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.
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
By design. The longer you’re Googling, the more ads they can sell.
…Ben Gomes – a long-tenured googler who helped define the company during its best years – lost a fight with Prabhakar Raghavan, a computer scientist turned manager whose tactic for increasing the number of search queries (and thus the number of ads the company could show to searchers) was to decrease the quality of search. That way, searchers would have to spend more time on Google before they found what they were looking for.
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
febootstick is pretty cool too!
qrmu-debootstrap is also super useful if you want to customize and image for a different architecture (for example building custom RPi images).
Super useful information, thanks!
EDIT: Is this anything like the isorespinner.sh? I’ve previously used that to get Linux on an RCA Cambio W101 because it needed a fancy ISO since it has a 32-bit bootloader and a 64-bit CPU.
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. 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.
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.
cp *.iso /dev/disk
or
pv *.iso > /dev/disk
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.
cp to copy the iso onto the drive no flashing or anything…
The cp command will write the ISO file directly onto the device. This is the official way that is recommended by Debian:
cp debian.iso /dev/sdX
sync
Woah…
Damn I’m sorry for questioning this method, I didn’t know.
/dev/sdX are just files. If you cp a file onto another file, it overwrites the data of the destination with the source. A block device represents the device itself, not the filesystem; if you wanted to put the ISO inside the filesystem, you’d have to mount it first.
Not technically. unetbootin and some similar tools like rufus take the USB, partition it, and copy the contents of the disk to it after manually setting up a bootloader on it. This is not required for most Linux ISOs though where you can just cp or dd the image directly to the USB as they are already setup with all that on the image. But other ISOs, like I believe Windows ones have a filesystem on them that is not vfat so cannot be directly copied. Although these days for windows you just need to format the USB as vfat and copy the contents of the windows ISO (aka the files inside it, not the iso filesystem) to the filesystem.
I tend to find unetbootin and rufus break more ISOs then they actually help with though. Personally I find ventoy is the better approach overall, just copy the ISO as a file to the USB filesystem (and you can copy multiple ones as well).
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
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
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.
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?