Documentation
Disk Preparation
Installation steps 1-5: Boot the live environment and prepare your disk. See Installation for an overview.
Section
1. Boot the Live Environment
Boot from the LevitateOS ISO (see Getting Started). You'll be dropped into a root shell.
NOTE
ls /sys/firmware/efi/efivars If /sys/firmware/efi/efivars doesn't exist, you booted in legacy BIOS mode. LevitateOS requires UEFI. Reboot and select UEFI boot in your firmware settings.
loadkeys us timedatectl set-ntp true Section
WiFi Connection (Optional)
Installation is fully offline - no network required. Skip this if using Ethernet or don't need network access.
iwctl device list iwctl station wlan0 connect YOUR_NETWORK Section
2. Identify Target Disk
lsblk -d -o NAME,SIZE,MODEL,TRAN OUTPUT
NAME SIZE MODEL TRAN nvme0n1 2T Samsung 990 PRO 2TB nvme nvme1n1 1T WD Black SN850X 1TB nvme sda 4.0T Seagate Barracuda sata
This guide uses /dev/sda as an example. Replace with your actual device. Most modern systems use NVMe (/dev/nvme0n1) - partitions are named nvme0n1p1, nvme0n1p2, etc.
Section
3. Partition the Disk
WARNING: This will erase all data on the disk. We'll create the default A/B layout:
WARNING
WARNING
| Partition | Size | Type | Mount |
|---|---|---|---|
| /dev/sda1 | 1 GB | EFI System | /boot |
| /dev/sda2 | 64 GB | Linux filesystem | / (system-a) |
| /dev/sda3 | 64 GB | Linux filesystem | (system-b) |
| /dev/sda4 | Remainder | Linux filesystem | /var |
fdisk /dev/sda Inside fdisk, enter these commands:
g Create new GPT partition table n New partition (EFI) 1 Partition number Enter Default first sector +1G Size (room for multiple kernels) t Change partition type 1 EFI System n New partition (system-a) 2 Partition number Enter Default first sector +64G Size (slot A) n New partition (system-b) 3 Partition number Enter Default first sector +64G Size (slot B) n New partition (var) 4 Partition number Enter Default first sector Enter Use remaining space w Write changes and exit Verify with lsblk /dev/sda. For NVMe drives, partitions are named /dev/nvme0n1p1, /dev/nvme0n1p2, etc.
Section
4. Format Partitions
mkfs.fat -F32 -n EFI /dev/sda1 mkfs.ext4 -L system-a /dev/sda2 mkfs.ext4 -L system-b /dev/sda3 mkfs.ext4 -L var /dev/sda4 WARNING
root=LABEL=system-a, slot B boots with root=LABEL=system-b. Persistent data lives in /var (label var); user homes live under /var/home. Section
5. Mount Filesystems
mount /dev/sda2 /mnt mkdir -p /mnt/boot
mount /dev/sda1 /mnt/boot mkdir -p /mnt/var
mount /dev/sda4 /mnt/var Leave system-b unmounted for now. It will be used as the inactive slot for atomic updates.
Continue to Base System (steps 6-9).