Dual boot
Dual Boot Guide: Windows + AxOS
Section titled “Dual Boot Guide: Windows + AxOS”How to do a full dual boot installation with Windows 11 and AxOS (Windows 10 should work as well).
System Requirements: Check here Minimum disk space: 10 GB (but 50 GB or more is strongly recommended for a smoother experience)
Step 0: Before You Begin
Section titled “Step 0: Before You Begin”I will skip the steps for flashing AxOS to a USB. Please make sure you’ve already created a bootable USB by following this guide.
Step 1: Create Free Space on Your Disk
Section titled “Step 1: Create Free Space on Your Disk”We need to shrink an existing partition to make room for AxOS.
Windows
Section titled “Windows”- Press
Win + X→ choose Disk Management or PressWin + R, typediskmgmt.msc, and hit Enter. - In the Disk Management window:
- Right-click on a partition with enough free space (e.g. your D: drive)
- Click “Shrink Volume”
- Enter how much you want to shrink (in MB). For example,
50000for 50 GB - Click “Shrink”
This will create unallocated space which we’ll use to install AxOS.
- Open a terminal.
- Type in
lsblk -fto see all the partitions. - In the
lsblk -foutput:- Decide what partition you want to shrink.
- You can choose the root partition (/) to make room for AxOS.
- You’ll need to shrink the partition using a Live USB and a tool like GParted.
→ Don’t worry, we cover this in more detail in Step 4.
Step 2: Boot into AxOS from USB
Section titled “Step 2: Boot into AxOS from USB”- Reboot your computer
- Enter your BIOS/UEFI menu
- Select your bootable USB device
- Boot to AxOS
Step 3: Verify Free Space in AxOS
Section titled “Step 3: Verify Free Space in AxOS”Once inside the live AxOS, open the terminal (Win + Enter) and run:
sudo parted -lThis will list all available disks and their partitions.
Look for something like:
Unallocated space: 50GBOr run:
sudo parted -l | grep "Unallocated"Note: Take note of your disk’s name — it could be something like:
/dev/sda/dev/nvme0n1We’ll use that name in the next step.
Step 4: Create Partitions with gdisk
Section titled “Step 4: Create Partitions with gdisk”We’ll now use gdisk to manually create two partitions:
- One for the EFI System (
/boot/efi) - One for the Linux Root (
/)
Replace yourdiskname below with your actual disk name (e.g. /dev/sda or /dev/nvme0n1).
sudo gdisk /dev/yourdisknameInside gdisk:
Section titled “Inside gdisk:”- Press
nto create a new partition - Press
Enterto accept default partition number - Press
Enterto accept default first sector - Type
+512M→ this creates a 512MB partition - Type
EF00→ this sets it as an EFI System partition
EFI partition done!
Create the Root Partition (/):
Section titled “Create the Root Partition (/):”- Press
nagain - Press
Enterfor all prompts (partition number, first/last sector, partition type) - Type
wand pressEnterto write changes
Confirm with
yif asked.
We’ve now created two partitions.
⚠️ The partition names depend on your disk:
- If your disk is
/dev/sda, partitions will be/dev/sda1,/dev/sda2, etc.- If your disk is
/dev/nvme0n1, partitions will be/dev/nvme0n1p1,/dev/nvme0n1p2, etc. (Note the “p” before the number of partition)
Step 5: Mount the Partitions
Section titled “Step 5: Mount the Partitions”Mount the Root Partition (Linux filesystem):
Section titled “Mount the Root Partition (Linux filesystem):”sudo mount /dev/nvme0n1p2 /mntCreate and Mount EFI Directory:
Section titled “Create and Mount EFI Directory:”sudo mkdir -p /mnt/boot/efi
sudo mount /dev/nvme0n1p1 /mnt/boot/efiAdjust disk and partition names and numbers as needed.
Now we’re ready to launch the installer.
Step 6: Launch the AxOS Installer
Section titled “Step 6: Launch the AxOS Installer”- Open the AxOS Install application from the menu.
- Proceed through the installation.
- When you get to “Installation disk and partitioning”, choose Manual Partitioning.
Configure the Mount Points:
Section titled “Configure the Mount Points:”-
For the EFI partition:
- Set FAT32 format
- Set mount point to
/boot/efi
-
For the Linux root partition:
- Set ext4 format (ext4 is an example, but it’s also recommended)
- Set mount point to
/
- Continue through the installer
- Once installation finishes, reboot
Adjust disk and partition names and numbers as needed.
Step 8: Configure GRUB to Detect Windows
Section titled “Step 8: Configure GRUB to Detect Windows”After rebooting into AxOS:
1. Open a terminal and edit the GRUB config:
Section titled “1. Open a terminal and edit the GRUB config:”sudo nano /etc/default/grub2. Find this line:
Section titled “2. Find this line:”GRUB_DISABLE_OS_PROBERChange it to:
GRUB_DISABLE_OS_PROBER=falseSave and Exit Nano:
- Press
Ctrl + O(to save)- Press
Enter(to confirm filename)- Press
Ctrl + X(to exit)
3. Detect Windows:
Section titled “3. Detect Windows:”sudo os-proberIf it returns your Windows installation, proceed.
Step 9: Generate GRUB Config
Section titled “Step 9: Generate GRUB Config”Choose the appropriate command depending on your system:
BIOS Systems:
Section titled “BIOS Systems:”sudo grub-mkconfig -o /boot/grub/grub.cfgUEFI Systems:
Section titled “UEFI Systems:”sudo grub-mkconfig -o /boot/efi/EFI/grub/grub.cfg⚠️ If you are not sure what to choost stick to BIOS System.
Final Step: Reboot
Section titled “Final Step: Reboot”Now reboot your system:
sudo reboot nowYou should now see the GRUB boot menu, with both AxOS and Windows listed.