Looking for Help with Resizing Partitions on X86 Build

Hi

I have a N100 mini pc with a 256GB SSD with Openwrt (openwrt-24.10.5-x86-64-generic-squashfs-combined-efi)

Everything went fine along until i tried to run the https://ncbase.net/notes/openwrt-persistent-repartitioning

After the reboots and leaving it for approx 10 mins or so i could not access the config at all
I connected a screen and there were I/O Errors

I could Ping the device but not access it vis SSH or luci

I could enter failsafe but couldn't do anything as it just gave an I/O error when i tried any command

I have tried this twice now and its been the same both times

I'm back up and running now as luckily it takes no time to reinstall but i really want to extend the disk size so i can use adguard home etc

Does anyone have any ideas on this ?
I am going to try a different SSD tomorrow but i have checked the one i am using and it checks out fine so i really don't think its that.

Thanks in advance

Tried replacing root=xxx with root=/dev/nvme0n0p2 in grub ?

But is sounds like the resize failed or it wouldn't have been able to find the rootfs.

It's also safer to resize an ext4 than a squashfs.

That is 3rd party site. You can specify overlay size via attended sysupgrade conf.

Thanks for the replies ,

I linked that site but i also tried the official site way and had the same error

https://openwrt.org/docs/guide-user/advanced/expand_root

So if i start again would you recommend i use a ext4 image rather than squashfs ?

Recommendation would be to use ASU or OWUT to make the rootfs partition 1GB.

Then use rest for whatever, but keep in mind it's going to be lost during every "flash“, so you'll have to recreate it by hand afterwards.

If you use ASU/OWUT, image format doesn't matter.

Who said anything about ext4? You can use Windows and ntfs if you like.

Examine /etc/config/attendedsysupgrade and set rootfs size to 1024. Once upgrade is done add more partition(s) after it

1 Like

Is there specific reason to use squashfs instead of ext4? I also have miniPC with NVMe disk and have always used ext4. It is proper file system for a x86 with lot of storage and is easy to resize afterwards.

You have fsck.ext4 on ext4 itself and with lots of poweroffs it will not boot one day.

1 Like

Thanks all

i tried again using the ext4 image but the script just did not work so i went back to squashfs

so in the end I did what brada4 said and set the rootfs to 1024 and did a attendedsysupgrade
using the squashfs image which after reading seems a lot less prone to damage if the power is lost.

1gb partition is more than enough and i now have it up and running with adgaurd etc

So thanks for the advice

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