July 9th, 2024

OneFileLinux: A 20MB Alpine metadistro that fits into the ESP

One File Linux is a compact live distribution for UEFI computers, fitting in a 20MB file. It operates without installation, ideal for systems without USB drives, using the EFI partition for booting. It supports disk encryption and can leverage internal hardware like WiFi cards. Instructions cover Mac, PC, and USB use, with customization options available.

Read original articleLink Icon
OneFileLinux: A 20MB Alpine metadistro that fits into the ESP

One File Linux is a unique live Linux distribution contained in a single ~20MB file that can run on any UEFI computer without the need for installation. Users can simply copy the file to the EFI system partition and boot from it. The main advantages include not requiring additional partitions, USB flash drives, or boot managers like GRUB. It can work with disk encryption and is particularly useful for scenarios where USB flash drives are not an option. The creator's personal goal was to utilize a laptop's internal PCIe WiFi card for specific tasks. Instructions are provided for running One File Linux on both Mac and PC systems, as well as from a USB flash drive. Users can also customize and build their own version based on Alpine Linux and the vanilla kernel.

Related

EasyOS: An experimental Linux distribution

EasyOS: An experimental Linux distribution

The EasyOS website is a comprehensive guide covering the unique operating system. It includes advantages, development guidelines, application details, installation tutorials, technical workings, and troubleshooting insights, serving as a valuable resource.

Booting Linux Off of Google Drive

Booting Linux Off of Google Drive

A programmer's competitiveness leads to booting Linux from Google Drive, facing challenges like networking setup and mounting an Arch Linux root from an S3 bucket. Despite setbacks, Linux boots successfully, integrating Google Drive but facing performance issues and complexities.

Booting Linux Off of Google Drive

Booting Linux Off of Google Drive

The author successfully booted Linux from a Google Drive root independently, using FUSE programs and custom initramfs on Arch Linux. Challenges with networking, permissions, and dependencies were addressed through manual solutions.

Fiwix: Unix-like kernel for the i386 architecture

Fiwix: Unix-like kernel for the i386 architecture

The Fiwix operating system kernel, a UNIX-based system, emphasizes POSIX compatibility. It offers preemptive multitasking, POSIX compliance, virtual memory management, and supports various filesystems and hardware platforms. Fiwix serves as an educational tool with simple kernel code for students and enthusiasts. Installation is feasible from CD-ROM or floppy disk with minimal hardware requirements. Users are cautioned about potential bugs and incomplete features due to its early development stage. More details are available on the Fiwix GitHub Repository or website.

No more boot loader: Please use the kernel instead

No more boot loader: Please use the kernel instead

A new approach called nmbl aims to replace GRUB with a Linux-based solution using the kernel itself. Red Hat's proposal consolidates components into a unified kernel image for a streamlined boot process.

Link Icon 10 comments
By @NekkoDroid - 5 months
Fun fact: you can easily create your own USIs (Unified system image), which basically does the same (is the same concept?), with mkosi[1].

[1]: https://overhead.neocities.org/blog/build-usi-mkosi/

Another example: https://swsnr.de/archlinux-rescue-image-with-mkosi/

By @sp1rit - 5 months
The ESP is just a FAT-32 partition, so its capable of being up to 4GB (by default). At 4GB you can probably store most linux distributions on the ESP, so the title makes it less impressive than it is.
By @lproven - 5 months
[OP here]

Source here: https://github.com/zhovner/OneFileLinux/

This is crying out for an update, IMHO.

By @AstroJetson - 5 months
Slight difference between EFI and ESP. Works on my EFI laptop, my ESP32 board wasn’t having it.
By @omneity - 5 months
And here I was secretly hoping someone managed to make a minimal MMU-free linux distro to run on ESP32.

This is the last I've heard of such an effort: https://www.cnx-software.com/2019/12/03/western-digital-risc...

By @ksp-atlas - 5 months
I made this exact thing like 2 years ago except with a custom busybox based environment, huh

It worked by building the system into the initramfs, then using a kernel feature to basically bake the initramfs into the kernel image, and then using efistub to make the kernel bootable

By @lproven - 5 months
This looks interesting and I can certainly see a use for it. It'd be very handy as a fallback/rescue system, and that includes for Windows as well as Linux.

Shame it's not been updated in so long.

By @candiddevmike - 5 months
If your looking for something similar only for distributions like Debian, Ubuntu, Fedora etc checkout EtchaOS:

https://etcha.dev/etchaos

By @shzhdbi09gv8ioi - 5 months
Slightly misleading title

"20 MB Linux.EFI" ...

Download 25MB ...

Leads to 26MB download file ...

Holds a compressed partition of 209 MB.