Skip to content

v000000a/windows-to-arch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

windows-to-arch

Experimental tool that allows installing a full Arch Linux system directly from a running Windows installation, followed by repurposing the original Windows partition into btrfs.

Warning

This software is highly experimental and carries significant risk.

It modifies the disk partition table, creates a new boot entry in the Windows Boot Manager, and permanently removes the original Windows installation.

Use only if you fully understand the risks and have backups of important data.

Requirements

  • Windows 10 or 11 (64-bit)
  • Administrator privileges
  • BitLocker must be disabled on the system drive
  • Secure Boot is strongly recommended to be disabled in BIOS/UEFI
  • At least 15 GB of free space on the C: drive

Build and Usage

  1. Compile the program:
    g++ stage1.cpp -o stage1.exe
    or you may compile the program statically:
    g++ -static -static-libgcc -static-libstdc++ stage1.cpp -o stage1.exe
  2. Run as administrator:
    stage1.exe
  3. After the program finishes, run as administrator:
    stage2.bat
  4. Reboot, enter boot menu and select "Arch Linux"

Features

  1. Choice of Arch Linux mirror during setup
  2. Automatic EFI partition detection
  3. Full Arch Linux installation via pacstrap
  4. Repurposes the original Windows partition into btrfs

Notes

  1. If the system fails to boot after reboot, disable Secure Boot in BIOS/UEFI.
  2. Recovery of the original Windows installation is not supported after completion.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors