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:
forinstallinstaller (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.
| State | Runs From | Survives Reboot? | Needs Install Media? |
|---|---|---|---|
| Live ISO/USB | RAM + ISO/USB | No (except persistent overlay) | Yes |
| Installed (internal disk / full USB) | Internal disk / target USB | Yes — full system + user data | No |
Install Paths
Pick the path that matches your goal:
| Path | Best For | What You Get | Start Here |
|---|---|---|---|
| VM try | Safe first look, development, testing | Forest OS in QEMU / VirtualBox / VMware, snapshots, no hardware risk | Quick-Start, Install-VM |
| Real hardware | Daily use or hardware validation on a PC | Forest OS on internal HDD/SSD/NVMe, native drivers | Install-Guide-UEFI or Install-Guide-BIOS, Requirements |
| Persistent USB | Portable live session that remembers changes | Live USB + writable overlay (settings/files persist, kernel stays live) | USB-Persistence, Filesystems-Choosing |
| Full USB | Fully portable installed system | Complete 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:
| Step | Action | What You Do |
|---|---|---|
| 1. Backup | Protect existing data | Back up anything important on the target machine; confirm power + network |
| 2. Media | Prepare boot media | Download ISO, verify checksum, flash to USB (or attach ISO to VM) |
| 3. Boot | Boot the live session | Select USB/ISO in boot menu (BIOS/UEFI), try Forest OS live, check hardware |
| 4. Install | Run the installer | Launch forinstall, choose disk, filesystem, and bootloader location (BIOS vs UEFI) |
| 5. First boot | Reboot into installed system | Remove media, boot from internal disk/USB, log in, run post-install setup |
Installation Guides
All sibling pages in this section:
| Page | Covers |
|---|---|
| Requirements | Minimum/recommended hardware, firmware settings, supported devices |
| Quick-Start | Fastest path: VM try in ~10 minutes |
| Backup | Pre-install data protection |
| Partitioning | MBR/GPT layouts, ForeB sectors |
| Filesystem Setup | mkfs, mount, fstab wiring |
| Install-Guide-BIOS | Legacy BIOS install walkthrough (MBR, 3-stage ForeB) |
| Install-Guide-UEFI | UEFI install walkthrough (GPT, ESP, secure-boot notes) |
| Dual-Boot | Alongside another OS |
| First-Boot | First boot after install: login, network, display check |
| Post-Install | Users, packages (pac), drivers, updates |
| Updates | Offline updates with forupdate, rollback |
| Remove / Uninstall | Wipe partitions, restore bootloader |
| Filesystems-Choosing | Choosing FAT / ext2/3/4 and partition layout |
| Troubleshooting | Boot failures, missing disks, bootloader repair |
| FAQ | Common installation questions |
Related existing pages:
Next Steps
- Read Requirements.
- If new: follow Quick-Start.
- Then pick Install-Guide-BIOS or Install-Guide-UEFI for your machine.
- Finish with First-Boot and Post-Install.
- Stuck? See Troubleshooting and FAQ.
Contents
- What installing means
- Install paths
- 5-step summary
- Installation guides
- Next steps
- Detail: installation at a glance
- Detail: requirements
- Detail: quick-start — fastest path
- Detail: choosing a filesystem
- Detail: BIOS vs UEFI paths
- Detail: filesystem setup
- Detail: first boot and post-install
- Detail: updates, dual-boot, removal
- 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
| What | Minimum | Recommended |
|---|---|---|
| CPU | x86 / x86_64, 1 vCPU | 2 vCPU + KVM on VMs |
| RAM | 256 MiB | 512 MiB – 1024 MiB (full userspace + X11) |
| Target disk | 512 MiB | 2 GiB+ (Full install ~2 GB, Minimal ~500 MB) |
| Install media | forebo.iso hybrid ISO; USB stick ≥ 256 MiB (all data erased) | |
| Display | Bochs BGA (-vga std) on QEMU; VBoxVGA on VirtualBox; default SVGA on VMware | |
| Firmware | BIOS/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:
| Choice | Layout | Strengths | Limits |
|---|---|---|---|
| ext4 (default) | MBR partition → journaled root | Default install type; journaling; permissions + fsck | Kernel ext2/3/4 driver is currently read-only — copy-out to edit from live media |
| ext2 | MBR partition → non-journaled root | Simpler, smaller; default for many VM installs | No journal; same read-only kernel driver note as ext4 |
| FAT (FAT16/FAT32) | FAT root, ESP-compatible | Only fully writable kernel filesystem alongside tmpfs; UEFI ESP-readable; portable | No 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
| Path | What the firmware loads | When to use |
|---|---|---|
| BIOS / CSM / Legacy | ForeB stage1 (MBR + 55AA) → stage2 (LBA 1–16) → stage3 (LBA 17–32) → kernel at sector 48 | Old boards, or CSM enabled for testing the MBR path |
| UEFI | \EFI\BOOT\BOOTX64.EFI + /forebo/kernel.elf, forebo.cfg, initrd.tar on a FAT ESP | Modern 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
- Remove the install media (QEMU: drop
-cdrom,-boot order=c; VirtualBox/VMware: disconnect ISO / put HDD-0 first). On UEFI keep the writable per-VMOVMF_VARSfile — it now holdsBootOrder. - Power on: the ForeB menu should appear from disk. Default entry boots in ~10 s.
- Log in as the created user (or
root), then smoke-test:uname -a,df -hT,ls /bin | head,ip addr(if networking is enabled). - Snapshot now (QEMU
savevm, VirtualBox/VMware snapshot) before experimenting. Live vs persistent vs full USB installs: USB Persistence.
8. Updates, dual-boot, removal
- Updates:
forupdateperforms 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
| Symptom | Likely cause | Fix |
|---|---|---|
| No boot device / EFI shell | Boot order; ISO not connected; no NVRAM entry | Optical first for install, disk first after; keep writable OVMF_VARS |
| Black screen after ForeB | Wrong display adapter or graphics disabled | -vga std / VBoxVGA; check ENABLE_GRAPHICS; try Safe/nofb entry |
| Kernel panic during install | Bad image, low RAM, host-built initrd | Re-verify image, -m 1024, rebuild with cross-compiler |
| Disk full during copy | Target too small | Min 512 MiB, 2 GiB recommended; resize and re-partition |
| Picked the wrong disk | cd0 selected | Abort before confirm (zero changes); re-run and pick the empty disk |
Full catalog: Troubleshooting · Testing with QEMU.
See Also
- Install on a VM — QEMU/VirtualBox/VMware walkthrough
- Install on Real Hardware — USB install, firmware setup, post-install
- USB Persistence — live vs persistent vs full USB install
- Installer —
forinstall+forupdatereference - Disk Tools —
fdisk,mkfs,mount,fsck - Filesystems — FAT vs ext2/3/4 vs ISO9660/UDF status
- Boot Menu — entries, keys, themes
- Bootloader Configuration —
forebo.cfgreference - ISO Creation — hybrid ISO / IMG / ESP internals