r/AlpineLinux • u/Drakmyth • Jul 02 '26
How to force legacy bios install?
I am attempting to install Alpine on a Zotac ZBOX-ID80-PLUS from circa 2011. After much back and forth, I have determined that this device:
- Requires UEFI boot for USB devices (no legacy support)
- Requires legacy BIOS boot for internal drives (no UEFI support)
I am using a USB drive as the installation media, created on Windows with Rufus using alpine-standard-3.24.1-x86_64.iso. I have tried both "MBR+(BIOS or UEFI)" and "GPT+(UEFI non-CSM)" configurations, in both ISO and DD modes. I have no trouble getting into the live USB instance, but it always boots in UEFI mode and thus setup-alpine/setup-disk always uses the UEFI install procedure, even if I try to provide USE_EFI=0.
While I can see the partitions on the internal drive do have the Alpine files I would expect, I cannot get this machine to boot from it. I feel like I've followed every install guide I can find and in desperation tried to get ChatGPT to direct me to a solution, with no avail. I'm this close to throwing this box in the garbage.
What am I missing? What is the secret incantation to installing/configuring a legacy bios boot option from within a UEFI installation medium?
[UPDATE] Success! The solution was to run setup-alpine only up until the disk configuration steps, provide none for all the disk steps, then format the partition manually with fdisk, create the filesystem manually with mkfs.ext4, then run setup-disk -B syslinux -m sys /mnt (with the new filesystem mounted at /mnt) to manually install alpine and the syslinux bootloader. The final piece of the puzzle is that mkfs.ext4 will install in 64-bit mode by default, so I needed to specify -O ^64bit on the mkfs.ext4 call (or I actually used resize2fs -s since I had already created the filesystem) to put the filesystem in 32-bit mode.
1
u/trofch1k Jul 02 '26
Have you tried to enable legacy boot inside BIOS of your PC?
1
u/steverikli Jul 02 '26
A quick look at the
setup-disksscript leads me to think it's not really looking for 0 or 1 (false or true) for USE_EFI; most of the checks are like:if [ -n "$USE_EFI" ]; thenI.e. is the variable set to a value or not. So, this is kind of a longshot, but maybe when you run setup-alpine or setup-disks, try it with
# USE_EFI="" setup-disks <args>You may also want to specify BOOTLOADER (-B) and DISKLABEL since you're trying to workaround default settings detection, but I'd probably try it without those first just to see what happens.
That Zotac looks like an interesting little gadget -- hope it works!
1
u/steverikli Jul 03 '26
Couple other avenues to try...
This may be more involved effort than you want to put into it, and I'm also assuming the little Zotac gadget is capable of such a feat; its BIOS may not allow PXE booting or the nic may not support PXE at all.
2) during setup-alpine, skip the setup-disk step and configure the sysdisk manually
Again, more involved, but if you're comfortable using Linux disk partition tools like parted or cfdisk, it's manageable. The upside is you can control everything that happens, including choice of DISKLABEL and BOOTLOADER.
3) if you can remove the Zotac disk and have another system running Alpine where you can add it as a secondary disk, you could run
setup-disk <args> [diskdev]on the target diskThis #3 idea is somewhat similar to #2, it may be more effort.
I'd probably dig into #2 manual disk configuration. It took me a couple tries to work it out, but I've done manual disk setup for a small server where I wanted a different partition layout than Alpine defaults, and the Alpine wiki and handbook pages and examples were pretty helpful.