Skip to content
i2qqPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

BootOS - 100% RAM-Resident OS Downloader & Bootloader

BootOS is an ultra-compact (~150MB), terminal-style operating system designed to run 100% in DRAM. Once booted, it frees up your USB drive completely and lets you download and boot directly into another operating system (such as Lubuntu, Ubuntu, Debian, or custom Linux distributions) using kexec or by flashing to an internal hard drive.


🌟 Key Features

  • Ultra Compact: Under 200 MB total ISO size (fits easily on any 2 GB USB drive or smaller).
  • 100% Loaded into DRAM: The entire Linux root filesystem is loaded into RAM upon boot. The USB stick is immediately freed and can be safely unplugged!
  • Dual Boot Support: Fully bootable on Legacy BIOS (old PCs) and modern UEFI systems.
  • Direct OS Booting (kexec): Uses the Linux kexec subsystem to jump directly from BootOS into a newly downloaded OS without restarting the PC hardware or BIOS.
  • GitHub Release ISO Installer: Provide any GitHub repo (e.g. owner/repo) that has an OS .iso in its releases; BootOS will auto-detect the release, download the ISO, and either flash it to the internal disk or live-boot into it in RAM!
  • Curated OS Library:
    • Lubuntu (Super-lightweight desktop, ideal for old PCs with limited RAM/CPU)
    • Ubuntu 24.04 LTS (Desktop or Server)
    • Debian 12 Bookworm (Netboot installer)
    • Custom OS URL (Enter any kernel + initrd direct link)
    • Netboot.xyz / iPXE (Chain-loads hundreds of OS installers on-demand)
  • Drive Installer: Direct disk flashing utility to stream an ISO straight to an internal hard drive or SSD (/dev/sda).

🚀 How to Flash bootos.iso to Your 2GB USB Drive (Windows)

You can flash bootos.iso onto your 2GB USB flash drive using any standard USB burning tool on Windows:

Method 1: Using the Custom BootOS GUI Flasher (Recommended - Multiple USB Selection)

BootOS includes a standalone native Windows GUI flasher and runner built right into the project:

  1. Double-click bootos-flasher-gui.exe (or bootos-flasher.exe / flash-usb.bat).
  2. The GUI displays an interactive window with an ISO selector and a USB Drive dropdown menu.
  3. If you have multiple USB drives plugged in at once, every drive is clearly listed with its drive letter ([Drive E:]), brand/model, and size in GB.
  4. Internal Windows system drives (C: drive) are strictly shielded from selection to keep your PC safe.
  5. Click ⚡ Flash to USB — the tool unmounts the volumes and writes the hybrid bootloader raw sector-by-sector with a live progress bar and speed indicator (MB/s).
  6. Done! The selected USB flash drive is 100% bootable for both Legacy BIOS and UEFI without needing Rufus or any third-party burning utility.

Method 2: Execute BootOS Directly on Windows (Virtual Sandbox Mode)

Want to run or test BootOS directly on Windows without rebooting?

  1. Double-click bootos-run.bat (or select Option [2] inside bootos-flasher.exe).
  2. BootOS will immediately launch inside an interactive Oracle VirtualBox window directly on your desktop!

Alternative: Using Rufus (Ensure DD Image Mode)

  1. Download Rufus (portable version is fine).
  2. Insert your 2GB USB drive.
  3. In Rufus:
    • Device: Select your 2GB USB flash drive.
    • Boot selection: Click SELECT and choose bootos.iso.
    • Partition scheme: Choose MBR (for maximum compatibility with old PCs).
    • Target system: BIOS (or UEFI-CSM).
  4. Click START. (If prompted for ISO mode vs DD mode, ISO mode is default, but both work).

Method 2: Using BalenaEtcher

  1. Open BalenaEtcher.
  2. Click Flash from file and select bootos.iso.
  3. Select your 2GB USB drive.
  4. Click Flash!.

Method 3: Using Ventoy

If your USB already has Ventoy installed, simply copy bootos.iso directly onto the USB drive.


🖥️ Booting Your Old PC

  1. Insert the prepared USB drive into your old PC.
  2. Turn on the PC and tap the boot menu key:
    • F12 (Dell, Lenovo)
    • F9 or Esc (HP)
    • F11 or F8 (ASUS, MSI, ASRock)
  3. Select your USB drive from the boot device list.
  4. Within 2-3 seconds, BootOS loads entirely into memory and presents the interactive terminal menu:
  ____              _    ___  ____  
 | __ )  ___   ___ | |_ / _ \/ ___| 
 |  _ \ / _ \ / _ \| __| | | \___ \ 
 | |_) | (_) | (_) | |_| |_| |___) |
 |____/ \___/ \___/ \__|\___/|____/ 
 
 BootOS - 100% RAM-Resident OS Downloader & Bootloader
 Running entirely from DRAM. USB can be safely removed!
 ------------------------------------------------------------
 Memory : 3912 MB total, 3650 MB free
 Network: Connected (192.168.1.150)
 ------------------------------------------------------------
 Main Menu:
  [1] Install / Boot OS from GitHub Release ISO
  [2] Download & Boot Lubuntu (Fast / Best for Old PCs)
  [3] Download & Boot Ubuntu 24.04 LTS
  [4] Launch Chromium Web Browser (GUI)
  [5] Flash Downloaded ISO to Internal Hard Drive / SSD
  [6] Download & Boot Custom Kernel/Initrd
  [7] Setup Network (Ethernet DHCP / Diagnostics)
  [8] Online OS Netboot Installers (Debian / Alpine / Ubuntu in DRAM)
  [9] Open Root Terminal Shell
  [10] Save Persistent State to Storage Drive
  [11] Reboot System (Auto-Saves to Disk)
  [12] Power Off

 Please select an option [1-12]:

⚙️ How It Boots into Another OS (kexec)

Traditional OS installers require rebooting the computer and changing BIOS settings. BootOS includes kexec-tools:

  1. When you select an option (e.g., Lubuntu or Ubuntu Netboot), BootOS downloads the Linux kernel (vmlinuz) and initial RAM disk (initrd.gz) over the network into DRAM.
  2. It calls:
    kexec -l /tmp/vmlinuz --initrd=/tmp/initrd.gz --command-line="boot=casper toram"
    kexec -e
  3. The running BootOS kernel seamlessly hands control over to the newly downloaded OS in RAM without touching the BIOS!

🛠️ Rebuilding bootos.iso

If you ever wish to modify src/bootos-menu.sh and recompile the ISO:

  • Right-click build.ps1 in Windows PowerShell and run:
    .\build.ps1

The script will assemble the updated kernel, initramfs, bootloaders, and output a fresh bootos.iso.

e32a815 ([changelog1] Initial release of BootOS (100% RAM-Resident OS Downloader))

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages