Forest OS

A free and open source operating system, written from scratch. A Bluethefox project, hosted by Enclica.

← Back to Wiki

Installation Overview

Welcome to the Forest OS Installation section. This landing page explains what installing means, which install path to pick, and where to go next. Forest OS installs from a live hybrid ISO (forebo.iso, BIOS + UEFI) with the forinstall guided wizard, and upgrades offline later with forupdate.

What Installing Means

Booting the live ISO/USB runs Forest OS entirely from removable media (RAM + read-only media). Nothing is changed on the host disk unless you ask.

Installing means copying the live system to a writable target so it boots on its own:

  • Source: live ISO/USB (booted live session)
  • Tool: forinstall installer (partition → format → copy → bootloader setup)
  • Target: internal disk (HDD/SSD/NVMe) or a USB stick dedicated as an installed disk
  • Result: bootable Forest OS on the target drive that works without the install media after — remove the ISO/USB, reboot, and ForeB loads Forest OS straight from the internal disk/USB.

Live session = try without touching anything. Installed system = persistent, bootable, keeps users, config, and packages across reboots.

StateRuns FromSurvives Reboot?Needs Install Media?
Live ISO/USBRAM + ISO/USBNo (except persistent overlay)Yes
Installed (internal disk / full USB)Internal disk / target USBYes — full system + user dataNo

Install Paths

Pick the path that matches your goal:

PathBest ForWhat You GetStart Here
VM trySafe first look, development, testingForest OS in QEMU / VirtualBox / VMware, snapshots, no hardware riskQuick-Start, Install-VM
Real hardwareDaily use or hardware validation on a PCForest OS on internal HDD/SSD/NVMe, native driversInstall-Guide-UEFI or Install-Guide-BIOS, Requirements
Persistent USBPortable live session that remembers changesLive USB + writable overlay (settings/files persist, kernel stays live)USB-Persistence, Filesystems-Choosing
Full USBFully portable installed systemComplete install on USB stick (like an internal disk, boots anywhere)Install-Guide-UEFI, USB-Persistence

Not sure? Check Requirements first, then do a VM try via Quick-Start. Move to real hardware or full USB once you are comfortable.

5-Step Summary

The full process in five steps — each guide below expands one or more steps:

StepActionWhat You Do
1. BackupProtect existing dataBack up anything important on the target machine; confirm power + network
2. MediaPrepare boot mediaDownload ISO, verify checksum, flash to USB (or attach ISO to VM)
3. BootBoot the live sessionSelect USB/ISO in boot menu (BIOS/UEFI), try Forest OS live, check hardware
4. InstallRun the installerLaunch forinstall, choose disk, filesystem, and bootloader location (BIOS vs UEFI)
5. First bootReboot into installed systemRemove media, boot from internal disk/USB, log in, run post-install setup

Installation Guides

All sibling pages in this section:

PageCovers
RequirementsMinimum/recommended hardware, firmware settings, supported devices
Quick-StartFastest path: VM try in ~10 minutes
BackupPre-install data protection
PartitioningMBR/GPT layouts, ForeB sectors
Filesystem Setupmkfs, mount, fstab wiring
Install-Guide-BIOSLegacy BIOS install walkthrough (MBR, 3-stage ForeB)
Install-Guide-UEFIUEFI install walkthrough (GPT, ESP, secure-boot notes)
Dual-BootAlongside another OS
First-BootFirst boot after install: login, network, display check
Post-InstallUsers, packages (pac), drivers, updates
UpdatesOffline updates with forupdate, rollback
Remove / UninstallWipe partitions, restore bootloader
Filesystems-ChoosingChoosing FAT / ext2/3/4 and partition layout
TroubleshootingBoot failures, missing disks, bootloader repair
FAQCommon installation questions

Related existing pages:

Next Steps

  1. Read Requirements.
  2. If new: follow Quick-Start.
  3. Then pick Install-Guide-BIOS or Install-Guide-UEFI for your machine.
  4. Finish with First-Boot and Post-Install.
  5. Stuck? See Troubleshooting and FAQ.

Contents

  1. What installing means
  2. Install paths
  3. 5-step summary
  4. Installation guides
  5. Next steps
  6. Detail: installation at a glance
  7. Detail: requirements
  8. Detail: quick-start — fastest path
  9. Detail: choosing a filesystem
  10. Detail: BIOS vs UEFI paths
  11. Detail: filesystem setup
  12. Detail: first boot and post-install
  13. Detail: updates, dual-boot, removal
  14. Detail: troubleshooting

1. Installation at a glance

Get image (build `make all` or download forebo.iso)
  → Verify (El Torito, MBR 55AA, ELF magic, ESP contents)
  → Write media (dd to USB, or attach ISO to VM)
  → Firmware setup (Secure Boot off, AHCI, boot order)
  → Boot live → ForeB menu → "Forest OS"
  → Run `forinstall` (23-step wizard)
  → Remove media → reboot → first boot → login

The installer is destructive by design: cancelling at the final confirmation makes zero changes; confirming formats the target, copies the kernel, initrd, base userspace, /etc skeleton and forebo.cfg, installs ForeB, runs fsck, then reports INSTALL OK. Details: Installer.

2. Requirements

WhatMinimumRecommended
CPUx86 / x86_64, 1 vCPU2 vCPU + KVM on VMs
RAM256 MiB512 MiB – 1024 MiB (full userspace + X11)
Target disk512 MiB2 GiB+ (Full install ~2 GB, Minimal ~500 MB)
Install mediaforebo.iso hybrid ISO; USB stick ≥ 256 MiB (all data erased)
DisplayBochs BGA (-vga std) on QEMU; VBoxVGA on VirtualBox; default SVGA on VMware
FirmwareBIOS/CSM/Legacy or 64-bit UEFI with Secure Boot off; SATA set to AHCI

Keep serial logging on (-serial stdio on QEMU) — kernel banners and forinstall errors land there.

3. Quick-Start — fastest path

# 1. Build (canonical) — kernel + userspace + initrd + hybrid ISO
cd forest/fern
./conf.sh --defconfig && ./conf.sh --generate
make all
ls -lh ../foreboots/build/   # forebo.iso (use this) / forebo.img / esp.img

# 2. VM target disk (hardware: skip to dd step below)
qemu-img create -f raw forest-disk.raw 2G

# 3. Boot installer (BIOS example)
qemu-system-x86_64 -machine q35 -cpu qemu64 -m 512 -enable-kvm \
  -drive file=forest-disk.raw,format=raw,index=0,media=disk \
  -cdrom ../foreboots/build/forebo.iso -boot order=dc,menu=on \
  -vga std -serial stdio

# 4. At the shell/login prompt:
forinstall
# Language → target disk (never cd0) → filesystem → users → ForeB → confirm

# 5. First boot from disk (detach ISO, disk first)
qemu-system-x86_64 -machine q35 -cpu qemu64 -m 512 -enable-kvm \
  -drive file=forest-disk.raw,format=raw,index=0,media=disk \
  -boot order=c,menu=on -vga std -serial stdio

uname -a
df -hT

Hardware path: write the same ISO to USB with dd (DD mode in Rufus on Windows — ISO mode breaks the ForeB sector layout), disable Secure Boot, boot the one-time boot menu, then run forinstall. Full walkthroughs: Install on a VM · Install on Real Hardware.

4. Choosing a filesystem

forinstall offers ext4 (journaling, default) and ext2 (no journaling); the manual path and mkfs also handle fat32/vfat (needed for UEFI ESPs). Kernel-side maturity differs — pick by use case:

ChoiceLayoutStrengthsLimits
ext4 (default)MBR partition → journaled rootDefault install type; journaling; permissions + fsckKernel ext2/3/4 driver is currently read-only — copy-out to edit from live media
ext2MBR partition → non-journaled rootSimpler, smaller; default for many VM installsNo journal; same read-only kernel driver note as ext4
FAT (FAT16/FAT32)FAT root, ESP-compatibleOnly fully writable kernel filesystem alongside tmpfs; UEFI ESP-readable; portableNo Unix permissions; use only when the disk must be ESP-readable or shared

Rule of thumb: ext4 for installed roots, ext2 for small/simple VM disks, FAT32 only for the EFI System Partition or sticks that must be read by firmware. Details: Filesystems · Disk Tools (fdisk, mkfs, mount, fsck).

5. BIOS vs UEFI paths

PathWhat the firmware loadsWhen to use
BIOS / CSM / LegacyForeB stage1 (MBR + 55AA) → stage2 (LBA 1–16) → stage3 (LBA 17–32) → kernel at sector 48Old boards, or CSM enabled for testing the MBR path
UEFI\EFI\BOOT\BOOTX64.EFI + /forebo/kernel.elf, forebo.cfg, initrd.tar on a FAT ESPModern boards and OVMF VMs; needs writable NVRAM copy per VM

Both paths end in the same Multiboot1 handoff (EAX=0x2BADB002). See BIOS Boot, UEFI Boot, and Configuration.

6. Filesystem setup

Guided partitioning (entire disk) is the default; manual mode asks for root/swap/home paths. The equivalent manual commands:

fdisk /dev/hd0            # MBR table: 1 primary bootable partition
mkfs -t ext4 /dev/hd0p1   # or: mkfs -t ext2 /dev/hd0p1 | mkfs -t fat32 /dev/hd0p1
mount /dev/hd0p1 /mnt
df -h                     # keep ~100–200 MiB free after install

Never pick the installer media (cd0) as the target. If the disk is missing, check storage wiring (IDE vs AHCI vs VirtIO) and the matching ENABLE_DRIVER_* build flag.

7. First boot and post-install

  1. Remove the install media (QEMU: drop -cdrom, -boot order=c; VirtualBox/VMware: disconnect ISO / put HDD-0 first). On UEFI keep the writable per-VM OVMF_VARS file — it now holds BootOrder.
  2. Power on: the ForeB menu should appear from disk. Default entry boots in ~10 s.
  3. Log in as the created user (or root), then smoke-test: uname -a, df -hT, ls /bin | head, ip addr (if networking is enabled).
  4. Snapshot now (QEMU savevm, VirtualBox/VMware snapshot) before experimenting. Live vs persistent vs full USB installs: USB Persistence.

8. Updates, dual-boot, removal

  • Updates: forupdate performs a 10-step offline upgrade from local media with manifest, pre-apply backup, and rollback (root required).
  • Dual-boot: install each OS on its own partition/disk and chain via the firmware boot menu or ForeB entries; back up first.
  • Remove / uninstall: wipe the Forest partitions and restore the previous bootloader (BIOS MBR or UEFI NVRAM entry).

9. Troubleshooting

SymptomLikely causeFix
No boot device / EFI shellBoot order; ISO not connected; no NVRAM entryOptical first for install, disk first after; keep writable OVMF_VARS
Black screen after ForeBWrong display adapter or graphics disabled-vga std / VBoxVGA; check ENABLE_GRAPHICS; try Safe/nofb entry
Kernel panic during installBad image, low RAM, host-built initrdRe-verify image, -m 1024, rebuild with cross-compiler
Disk full during copyTarget too smallMin 512 MiB, 2 GiB recommended; resize and re-partition
Picked the wrong diskcd0 selectedAbort before confirm (zero changes); re-run and pick the empty disk

Full catalog: Troubleshooting · Testing with QEMU.

See Also

← Back to Wiki