Skip to content
Contents
GuidesOpenWrt

OpenWrt x86 combined images: choosing ext4 or SquashFS for recovery

By analyzing the partition data and mount results from two official x86/64 combined images, select an appropriate root file system suitable for daily modifications and restoration.

The same x86 machine can have two images both named with "combined". Both can include the boot portion and the root partition, differing only in where the modifications are applied. For systems that directly maintain a writable root partition, ext4 is a suitable choice; for systems that wish to separate the original firmware files from daily changes and require clearing the writable layer to restore factory settings, SquashFS should be evaluated first.

What's the difference between the two files?

We read two traditional BIOS combined images of OpenWrt 25.12.6 x86/64. In both files, the second partition begins at byte 17,301,504: the SquashFS version shows hsqs at this offset, while the ext4 version displays 53 ef at a position 1,080 bytes after this offset. This offset is specific to the files in this comparison; other versions or EFI images require reexamination of the partition table.

Confirm on the running machine

cat /proc/mounts | awk '$2 == "/" || $2 == "/rom" || $2 == "/overlay"'
df -h /

Read the filesystem type from the third column. A SquashFS layout can typically distinguish between read-only base and merged writable root; seeing new values after configuration changes does not imply that the original firmware file has been rewritten. The ext4 root directly preserves modifications. Its recovery requires its own backup, snapshot, or reinstallation path and cannot be restored by simply clearing the Overlay.

Save a recognizable hostname in the backup system, verify it after reboot, and then restore the configuration or disk snapshot prepared in advance. Acceptance criteria must include successful login, correct management address, and readable original configuration. A router currently in operation does not need to perform a factory reset for the purpose of identifying the image.

Should you choose combined or combined-efi?

Check the CPU architecture and boot mode separately. On a running Linux system, uname -m showing x86_64 identifies the running kernel architecture. A value of 64 in /sys/firmware/efi/fw_platform_size indicates a 64-bit EFI boot. If the file is absent, check firmware settings and boot records before assuming the machine requires legacy BIOS.

We inspected the 25.12.6 x86/64 squashfs-combined-efi.img.gz image. The decompressed disk has a GPT. Its first partition contains FAT16 and EFI/BOOT/BOOTX64.EFI. The second starts with hsqs. Check the full release filename against its published hash. The UEFI boot method and the choice between ext4 and SquashFS are separate decisions.

openwrt-25.12.6-x86-64-generic-squashfs-combined-efi.img.gz

The read-only inspection found a 638976-byte boot file. Check that your machine permits this boot mode. For a new installation, keep the original disk and try a spare. If boot fails, restore the original disk and boot entry. openwrt-25.12.6-x86-64-generic-squashfs-combined-efi.img.gz

Reference

Related guide · Does an OpenWrt x86 ext4-rootfs image include the boot partition and MBR?

Explore hardware

Comments