this post was submitted on 30 Apr 2025
184 points (98.4% liked)

Linux

53875 readers
1152 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 6 years ago
MODERATORS
 

Posting this since quite a bit has changed since I last posted about this on !technology@lemmy.world.

Here's a rough breakdown of the current status:

  • shared Ventoy components: build and seem to work, needs more testing
    • grub / menu - builds
    • EDK II apps / UEFI chainloader and more - builds
    • iPXE / BIOS chainloader - builds, with fixes for newer toolchains
    • ISO9660 and UDF drivers - TODO
  • Ventoy CPIO / Linux ramdisk: builds; I deemed musl xzcat unneeded, so I skipped it; needs more testing
  • wimboot / Windows chainloader (?) - stalled, I lack the necessary knowledge to work on it
  • geom-ventoy / FreeBSD disk mapping kernel module - is being worked on, slowly; not ready for testing
  • anything else is a TODO

This should be enough to boot Linux with just what's built manually, but I haven't tried that yet.

Secure Boot is just done by using a pre-built bypass package. I'll deal with that later.

Having more people testing this would be nice. :)

Cheers

top 39 comments
sorted by: hot top controversial new old
[–] fnrir@lemmy.blahaj.zone 1 points 13 hours ago

Update: I managed to build wimboot after cherry-picking some patches.

[–] CrypticCoffee@lemm.ee 3 points 2 days ago

Credit to you. Many complained, but you went out of your way to solve the problems. The output here has real value. Thanks.

[–] Ludrol@szmer.info 18 points 3 days ago (1 children)

Thanks for the thankless work. I hope that the changes will be accepted upstream.

[–] fmstrat@lemmy.nowsci.com 4 points 2 days ago

If not, rebrand and distribute. This is the most important thing to this project.

[–] koala@programming.dev 3 points 2 days ago

I'm still a huge fan of Ventoy, but lately I have been finding more and more issues with it.

So I decided to investigate using a Raspberry Pi Zero with a USB adapter to create a virtual drive:

https://github.com/alexpdp7/alexpdp7/blob/master/hardware/using-an-rpi-zero-as-an-usb-drive-to-install-operating-systems.md

It's very wonky and manual at the moment, but I have managed to boot all Linux ISOs successfully so far. Unfortunately, I think only ISOhybrid works OOB, so Windows ISO do not work. I have found some scripts to take Windows ISO and make them ISOhybrid, but haven't gotten around to doing that yet.

I think it should be doable to package this nicely.

[–] drspod@lemmy.ml 34 points 4 days ago (1 children)

If only booting Linux distros, consider GLIM instead: https://github.com/thias/glim

[–] stefenauris@pawb.social 7 points 4 days ago

Thanks for sharing! I never heard of that before

[–] balsoft@lemmy.ml 7 points 3 days ago (1 children)

Are there any instructions on how to build this all to get the ventoy installer binary that can replace upstream? Or is the project not up to this stage yet? I can go without Windows and FreeBSD support.

[–] fnrir@lemmy.blahaj.zone 3 points 3 days ago (1 children)

On Linux installation is done through a series of scripts and vtoycli. I haven't worked on that yet, but there's build scripts there that should do the trick, but since they build it for multiple architectures, you'll have to run just the stuff for your arch (probably x86_64).

sth like:

cd vtoycli/fat_io_lib/release
gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c
ar -rc libfat_io_64.a *.o
cd ../..
gcc -specs "/usr/local/musl/lib/musl-gcc.specs" -Os -static -D_FILE_OFFSET_BITS=64 -Ifat_io_lib/include fat_io_lib/lib/libfat_io_64.a *.c -o vtoycli_64
# Optional
strip --strip-all vtoycli_64
[–] balsoft@lemmy.ml 3 points 3 days ago (1 children)

Do I have to build all other parts myself before then? (I'm trying to package it for Nix so that other people can also build it more easily)

[–] fnrir@lemmy.blahaj.zone 2 points 3 days ago (1 children)

Pretty much. I do have some releases, but considering Nix's philosophy you probably should. Ventoy-CPIO should build fine, if the right toolchains and dietlibc are in PATH. Ventoy-boot relies on overlay mounts though, so it might not build within Nix.

[–] balsoft@lemmy.ml 3 points 3 days ago

Thanks! I will try and report the results back to you.

[–] catloaf@lemm.ee 22 points 4 days ago (1 children)

What is the ventoy blob thing and why is it important?

[–] fnrir@lemmy.blahaj.zone 62 points 4 days ago (2 children)

TLDR: There's binaries instead of source code in the repo, which makes it hard to near-impossible to verify what it's doing. And the instructions for building those is lacking.

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

[–] gwilikers@lemmy.ml 7 points 3 days ago (1 children)

Oh really? You're saying its a security risk?

[–] Black616Angel@discuss.tchncs.de 16 points 3 days ago

It is a risk as seen in the exploit in xz utils.

[–] cornshark@lemmy.world 2 points 4 days ago (3 children)
[–] teije9@lemmy.blahaj.zone 2 points 2 days ago

a tool that allows multiple isos to be on one live usb, while the usb still works as a usb

[–] fmstrat@lemmy.nowsci.com 1 points 2 days ago

One boot USB to rule them all. Just copy ISOs to it, and boot to a menu of ISOs.

[–] SloppilyFloss@lemmy.ml 9 points 4 days ago (1 children)

A tool to make bootable Live USBs out of operating system ISOs.

[–] princessnorah@lemmy.blahaj.zone 32 points 4 days ago

I think that's not quite right, otherwise you could say that Rufus is the same. Ventoy is a Live USB tool that allows you to drag and drop ISOs onto a storage device and boot them without needing to image the device at all. It has its own interface that it boots into, that lets you select which ISO to then boot up.

[–] eneff@discuss.tchncs.de 18 points 4 days ago (1 children)

Thank you for your work on this! It's highly appreciated!

I'm about as broke as it gets currently, but are there ways to send money your way in case someone who's able to comes across this?

[–] fnrir@lemmy.blahaj.zone 13 points 4 days ago

Focus on yourself first. I do have a Ko-Fi, but I don't promote it much.

[–] pastermil@sh.itjust.works 2 points 3 days ago

So in short, these seven components are what makes the Ventoy blob, am I getting this right?

[–] krolden@lemmy.ml -1 points 3 days ago (3 children)
[–] moonpiedumplings@programming.dev 1 points 1 day ago* (last edited 1 day ago) (1 children)

The current problem with ventoy is that proprietary blobs are essentially an unauditable possible security backdoor.

This product is entirely proprietary, including the hardware, and even worse.

[–] krolden@lemmy.ml 1 points 1 day ago (1 children)

All flash drives are proprietary as well what's the difference

[–] moonpiedumplings@programming.dev 1 points 1 day ago* (last edited 1 day ago) (1 children)

They are not explicitly designed to boot ISO's?

Also, price. I'm not gonna pay quadruple the price for something that can be done entirely in software.

[–] krolden@lemmy.ml 1 points 1 day ago (1 children)

Ventoy does not emulate a CDROM it just boots it via grub

I never got uefi images booting properly on those grub multi boot utility drives. Granted the last time I bothered with it was like 10 years ago now

I haven't had any issues with Ventoy, everything I've attempted to boot works. Doesn't matter how it does it if it works.

[–] fnrir@lemmy.blahaj.zone 4 points 3 days ago (1 children)

Interesting. Sadly it only supports FAT32, NTFS and EXFAT with no Linux filesystems.
And Ventoy is free. It's hard to argue with free.

[–] krolden@lemmy.ml 1 points 3 days ago* (last edited 3 days ago)

Yeah that's only for the partition that contains your ISOs.

You can make another ext4 partition on it if you wanted, it just has to not be the first partition on the disk.

Oh and the encryption feature is dumb dont even bother with it

Also you still have to buy your flash drive so why not invest in something better

[–] pogmommy@lemmy.ml 2 points 3 days ago (1 children)

Yeah, bought the st300 after having repeated issues with ventoy not properly mounting disk images causing multiple Linux distro installs to fail. My st300 might be one of my best investments as a technician just for how seamless and simple it is to use.

[–] krolden@lemmy.ml 1 points 3 days ago* (last edited 3 days ago)

I never got uefi images booting properly on those grub multi boot utility drives. Granted the last time I bothered with it was like 10 years ago now since ive had multiple different iodd enclosures since then.

[–] arsCynic@beehaw.org -4 points 3 days ago (2 children)

Got over my laziness
dd will do
stopped using Ventoy
suggesting others to do so too.

Well you can ditch etcher or rufus with dd, but not ventoy since i carry around like 5 distros in a usb

[–] electric_nan@lemmy.ml 3 points 3 days ago (1 children)

Can you use dd to create multiboot USB drives? Even the link you shared lists Ventoy as an option.

[–] arsCynic@beehaw.org 1 points 2 days ago (1 children)

"Can you use dd to create multiboot USB drives?"

No. But in my case that's just a minor inconvenience considering the infrequency of having to use a live USB. And at work I just use separate USBs for wiping drives and OS installs. I much prefer the peace of mind that comes with knowing there's no Ventoy blob that could potentially infect all its installed operating systems with malware.

In any case, it seems it is possible to manually make a multiboot USB drive manually. Haven't tried it yet though.

"Even the link you shared lists Ventoy as an option."

I know. I simply linked that website because it's where I learned dd from and because for novices it might be less overwhelming than the Arch Wiki.

[–] demunted@lemmy.ml 2 points 1 day ago

Clearly you are not the target audience. For IT pros and tech enthusiasts regularly rebuilding machines and running numerous diagnostic tools from boot, the ability to quickly bootstrap a machines is a massive timesaver. dd is slower and may mean carrying around a lot of usb sticks, something these people all graduated from.