Forgot which version of x86/64 I installed

Need to update my firmware but I forget which disk image of x86/64 In installed ( ext4-combined-efi.img.gz etc)
All I see when I look up release info is OpenWrt 23.05.5 r24106-10cc5fcd00'

Is there a way to see which disk image file was installed?

Thanks in advance

Idk if there's a straight command to find that. What router do you have? Check "Status" > "Overview" or use ubus call system board command

I'm curious why would you use ext4? Squshfs is better optimized for NAND flash gates also doesn't wear out disk.

To upgrade firmware use owut Upgrade Tool or manually https://firmware-selector.openwrt.org/

Update: After doing some test try ls /sys/firmware/efi if it shows ls: /sys/firmware/efi: No such file or directory then the image you installed could be combined.img.gz
If shows a list of files, dirs then it's efi.img.gz

Thanks for the reply.

Below is what was output using the command you suggested.

config_table      esrt              fw_vendor         runtime-map
efivars           fw_platform_size  runtime           systab

btw, this is running on a Zotac mini pc

If that's the output of ls /sys/firmware/efi then it's most likely combined-efi.img.gz

So, do you recommend using squashfs-combined-efi.img.gz instead?

If you're using something like a SSD, ext4 is what I recommend. The squashfs options are really for flash memory.

1 Like

try the following command line, it shows you the partition type of each partition:

df -T

As of now I was trying to find image for zotac mini-pc but just couldn't find it anywhere. I've no clue about your setup but seems like you're using generic x86 OpenWrt builds which works on most x86-based generic hardware. Maybe wait for someone else qualified enough to answer your question.
More info: [OpenWrt Wiki] OpenWrt on x86 hardware (PC / VM / server)

Thanks for all the replies.

Yes, ssd so pretty sure I used ext4.
Output of df -T

Filesystem           Type       1K-blocks      Used Available Use% Mounted on
/dev/root            squashfs        4352      4352         0 100% /rom
tmpfs                tmpfs        1928268        84   1928184   0% /tmp
/dev/loop0           ext4       117464126     13802 112445660   0% /overlay
overlayfs:/overlay   overlay    117464126     13802 112445660   0% /
/dev/sda1            vfat           16334      6274     10060  38% /boot
/dev/sda1            vfat           16334      6274     10060  38% /boot
tmpfs                tmpfs            512         0       512   0% /dev

Looks like squashfs to me

1 Like

I noticed that too after I posted :rofl:

So looks like I need to switch to ext4-combined-efi.img.gz

1 Like

Advantage is that ext4 is ext4 so you can write to it and it's not a RO filesystem. Also, if needed, you can pull the SSD out and mount the partitions like any other. Just my opinion.

Also, more flexible for installing packages & direct modifications. Writes directly without managing an overlay unlike in squashfs gives a better write performance. Only downside is ext4 doesn't support failsafe mode & factory reset. Glad this is solved.

Thanks again for all the replies.
This is why I switched from OpenSense to OpenWRT :+1:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.