If the goal is to retain the existing bootloader, first determine whether your file is organized as a "full disk" or as a "single file system". The 25.12.6 x86/64 generic-ext4-rootfs.img.gz contains only the root file system. If you treat it as a full disk image and write it starting from the disk beginning, it will overwrite the existing boot data.
Can identify the image without touching the disk
On a Linux workstation, download the official files and verify the checksums. Replace the file names with your specific version. The output of the command will be a new file in the current directory. First, confirm that no file with the same name exists in the directory.
gzip -dc openwrt-25.12.6-x86-64-generic-ext4-rootfs.img.gz > rootfs-inspect.img
file rootfs-inspect.img
blkid -p rootfs-inspect.img
When this site reads the file, after decompression it amounts to 109,051,904 bytes. Starting from the file header, at offset 1,080, the ext4 magic number is detected; at offset 510, two bytes are zero. In contrast, for the ext4-combined version, the value at offset 510 is 55 aa. The partition table contains two non-zero starting positions. The presence of a signature alone is insufficient to determine the layout; it must be evaluated in conjunction with file system detection and partition table analysis.
Do you still need anything else besides retaining the original boot?
Even if only the target root partition is replaced, the partition identifiers referenced by the bootloader, the kernel and module versions in the boot partition, and those in the root filesystem must match. First, verify lsblk -f, the root= kernel command line, and the partition identifiers in a disk copy. If the origin of the kernel update cannot be established or the target partition cannot be confirmed, halt at this image inspection step. Acceptance must include a cold boot of the copy, mounting the expected root partition, and identifying the management network interface; if this fails, revert to the original boot disk.
Reference
- OpenWrt Wiki
- OpenWrt 25.12.6 x86/64 Image List and Checksums
- OpenWrt x86 boot partition and root partition combination
Related guide · OpenWrt x86 combined images: choosing ext4 or SquashFS for recovery
Comments