Openwrt is now on squashfs after sysupgrade

A PCEngines APU2C4 I haven't used in a while had v21-something of OpenWrt installed.
So I read that I can use sysupgrade on the downloaded image to upgrade to the currently latest stable version. Done and done.

The apu has a 16GB SSD installed.
Previously I had about 15GB left, now it boots from squashfs and has 0 free.

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 4.3M      4.3M         0 100% /rom
tmpfs                     1.9G     72.0K      1.9G   0% /tmp
/dev/loop0               88.0M     85.0K     81.0M   0% /overlay
overlayfs:/overlay       88.0M     85.0K     81.0M   0% /
/dev/sda1                15.7M      5.6M      9.8M  36% /boot
/dev/sda1                15.7M      5.6M      9.8M  36% /boot
tmpfs                   512.0K         0    512.0K   0% /dev

How do I not use squashfs, but the the whole disk again?

squashfs /rom is always read only.

familiarize yourself with the diff between ext4 and squashfs.

https://openwrt.org/docs/guide-user/installation/openwrt_x86
https://openwrt.org/docs/guide-user/advanced/expand_root
https://openwrt.org/docs/guide-user/additional-software/extroot_configuration

1 Like

Ok I just did

sysupgrade https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-23.05.5-x86-64-generic-ext4-combined.img.gz

but now

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                98.3M     16.7M     79.6M  17% /
tmpfs                     1.9G     72.0K      1.9G   0% /tmp
/dev/sda1                15.7M      5.6M      9.8M  36% /boot
/dev/sda1                15.7M      5.6M      9.8M  36% /boot
tmpfs                   512.0K         0    512.0K   0% /dev

So I guess I have to resize the rootfs, and I did, doing this:
https://openwrt.org/docs/guide-user/advanced/expand_root

And it's all good

df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                14.7G     18.3M     14.7G   0% /
tmpfs                     1.9G     72.0K      1.9G   0% /tmp
/dev/sda1                15.7M      5.6M      9.8M  36% /boot
/dev/sda1                15.7M      5.6M      9.8M  36% /boot
tmpfs                   512.0K         0    512.0K   0% /dev
1 Like

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