Partitions: how to increase sda128

Colleagues.

I am running OpenWrt 23.05.3 r23809-234f1a2efa / LuCI openwrt-23.05 branch git-24.364.71483-75d2b84 on x86

My plan is to run auc for firmware upgrade but there is an error that sda128 is too small. It should be at least 1Mb.

Device Start End Sectors Size Type
/dev/sda1 512 33279 32768 16M Linux filesystem
/dev/sda2 33280 125044735 125011456 59.6G Linux filesystem
/dev/sda128 34 511 478 239K BIOS boot

How to increase sda128 on my x86. Should it be at the beginning of the disk or I can shrink sda2 and put sda128 at the end?

Thanks a lot for support.

sda128 isn't meant to be resized.

Post the actual error...

Here is the latest output after the custom build

  • [ -f /builder/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-23.05.5-b395f94dab61-x86-64-generic-ext4-combined-efi.img.gz.boot/efi/boot/bootx64.efi ]
  • mcopy -i /builder/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-23.05.5-b395f94dab61-x86-64-generic-ext4-combined-efi.img.gz.kernel /builder/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-23.05.5-b395f94dab61-x86-64-generic-ext4-combined-efi.img.gz.boot/efi/boot/bootx64.efi ::/efi/boot/
  • dd if=/builder/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-23.05.5-b395f94dab61-x86-64-generic-ext4-combined-efi.img.gz.kernel of=/builder/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-23.05.5-b395f94dab61-x86-64-generic-ext4-combined-efi.img.gz bs=512 seek=512 conv=notrunc
    32768+0 records in
    32768+0 records out
    16777216 bytes (17 MB, 16 MiB) copied, 0.0440054 s, 381 MB/s
  • rm -f /builder/build_dir/target-x86_64_musl/linux-x86_64/tmp/openwrt-23.05.5-b395f94dab61-x86-64-generic-ext4-combined-efi.img.gz.kernel
    /builder/staging_dir/host/bin/grub-bios-setup: warning: Your BIOS Boot Partition is under 1 MiB, please increase its size..
    done
    Invalid argument (22)
    root@OpenWrt:~#

The partition is not located at the end of the disk despite its higher number, which is just an arbitrary index, it could have been numbered 18 or 93.
The partition is located between the last partition table sector (33) and first partition sector (512), and it's size should only matter for booting in bios mode on a non-uefi system.

It seems to me that it is more AUC issue than partitioning.

and I found a solution. On 23.05 auc is replced with owut


It was replaced by owut in main SNAPSHOT and versions later than 23.05. For more on auc , continue on this page; for more on owut , go to the owut page.

This has nothing to do with either auc or owut, the partition sizes are defined in the image that you are flashing. If you have a reason to change the bios boot partition size (I can't think of one, but maybe one exists), you will have to build one from source.

The message you are seeing about "it should be at least 1MB" is bogus and benign, so unless you are having an issue after flashing the device, just ignore it.

Yes, I can not upgrade my router with auc from 23.5.3 to 23.5.5
owut does not exist in opkg lists.

AUC stops in CLI as well as in GUI.
I am able to download custom package but flashing is not successful either.

No ideas what to do next.

This

and then later this

point to the image being the incorrect one for your device. Please show us the output of these three commands:

ubus call system board
uci show attendedsysupgrade
ubus call rpc-sys packagelist

Make sure to enclose the output of each command with three backticks ``` so as to preserve formatting and indentation.

Here are commands output

ubus call system board
{
	"kernel": "5.15.150",
	"hostname": "OpenWrt",
	"system": "AMD GX-415GA SOC with Radeon(tm) HD Graphics",
	"model": "FUJITSU FUTRO S920",
	"board_name": "fujitsu-futro-s920",
	"rootfs_type": "ext4",
	"release": {
		"distribution": "OpenWrt",
		"version": "23.05.3",
		"revision": "r23809-234f1a2efa",
		"target": "x86/64",
		"description": "OpenWrt 23.05.3 r23809-234f1a2efa"
	}
}

uci show attendedsysupgrade

attendedsysupgrade.server=server
attendedsysupgrade.server.url='https://sysupgrade.openwrt.org'
attendedsysupgrade.client=client
attendedsysupgrade.client.upgrade_packages='1'
attendedsysupgrade.client.auto_search='0'
attendedsysupgrade.client.advanced_mode='0'

ubus call rpc-sys packagelist

{
	"packages": {
		"luci-proto-wireguard": "git-24.364.71483-75d2b84",
		"libopenssl": "3.0.15-1",
		"openssh-sftp-server": "9.8p1-1",
		"liblucihttp": "2023-03-15-9b5b683f-1",
		"cgi-io": "2022-08-10-901b0f04-21",
		"luci-lib-base": "git-24.364.71483-75d2b84",
		"mkf2fs": "1.16.0-1",
		"opkg": "2022-02-24-d038e5b6-2",
		"luci-app-opkg": "git-24.364.71483-75d2b84",
		"ubus": "2023-06-05-f787c97b-1",
		"libuci": "2023-08-10-5781664d-1",
		"kmod-ixgbe": "5.15.150-1",
		"rpcd": "2023-07-01-c07ab2f9-1",
		"busybox": "1.36.1-1",
		"ddns-scripts-services": "2.8.2-43",
		"libiwinfo": "2023-07-01-ca79f641-1",
		"luci-lib-ip": "git-24.364.71483-75d2b84",
		"kmod-nft-fib": "5.15.150-1",
		"kmod-nfnetlink": "5.15.150-1",
		"pbr": "1.1.6-22",
		"kmod-crypto-hash": "5.15.150-1",
		"kmod-nf-reject6": "5.15.150-1",
		"bash": "5.2.15-1",
		"luci-mod-system": "git-24.364.71483-75d2b84",
		"openssl-util": "3.0.15-1",
		"kmod-nf-flow": "5.15.150-1",
		"libnl-tiny": "2023-07-27-bc92a280-1",
		"kmod-lib-crc-ccitt": "5.15.150-1",
		"px5g-mbedtls": "10",
		"resize2fs": "1.47.0-2",
		"getrandom": "2022-08-13-4c7b720b-2",
		"openssh-server": "9.8p1-1",
		"bind-host": "9.18.28-1",
		"ucode-mod-ubus": "2024-07-11-1a8a0bcf-3",
		"luci-theme-bootstrap": "git-24.364.71483-75d2b84",
		"kmod-pppoe": "5.15.150-1",
		"libuuid": "2.39-2",
		"luci-lua-runtime": "git-24.364.71483-75d2b84",
		"kmod-pppox": "5.15.150-1",
		"kmod-nf-reject": "5.15.150-1",
		"procd-ujail": "2023-06-25-2db83655-2",
		"base-files": "1554-r23809-234f1a2efa",
		"kmod-nf-nat": "5.15.150-1",
		"kmod-input-core": "5.15.150-1",
		"kmod-crypto-crc32c": "5.15.150-1",
		"ucode-mod-uci": "2024-07-11-1a8a0bcf-3",
		"partx-utils": "2.39-2",
		"libustream-mbedtls": "2023-02-25-498f6e26-1",
		"netifd": "2024-01-04-c18cc79d-2",
		"libf2fs": "1.16.0-1",
		"ddns-scripts": "2.8.2-43",
		"libsmartcols": "2.39-2",
		"kmod-r8169": "5.15.150-1",
		"firewall4": "2023-09-01-598d9fbb-1",
		"zerotier": "1.14.1-1",
		"dnsmasq": "2.90-2",
		"procd": "2023-06-25-2db83655-2",
		"ubusd": "2023-06-05-f787c97b-1",
		"kmod-crypto-acompress": "5.15.150-1",
		"rpcd-mod-ucode": "2023-07-01-c07ab2f9-1",
		"ucode-mod-math": "2024-07-11-1a8a0bcf-3",
		"kmod-lib-crc32c": "5.15.150-1",
		"luci-mod-status": "git-24.364.71483-75d2b84",
		"lsblk": "2.39-2",
		"libmbedtls": "2.28.9-1",
		"kmod-fs-vfat": "5.15.150-1",
		"kmod-nft-nat": "5.15.150-1",
		"luci-app-ddns": "git-24.364.71483-75d2b84",
		"shadow-useradd": "4.8.1-3",
		"luci-app-firewall": "git-24.364.71483-75d2b84",
		"grub2-efi": "2.06-5",
		"libubus": "2023-06-05-f787c97b-1",
		"shadow-groupadd": "4.8.1-3",
		"libmnl": "1.0.5-1",
		"libblkid": "2.39-2",
		"jansson": "2.14-3",
		"grub2-bios-setup": "2.06-5",
		"odhcp6c": "2023-05-12-bcd28363-20",
		"fstools": "2023-02-28-bfe882d5-1",
		"uclient-fetch": "2023-04-13-007d9454-1",
		"uci": "2023-08-10-5781664d-1",
		"grub2": "2.06-5",
		"ucode-mod-fs": "2024-07-11-1a8a0bcf-3",
		"luci-ssl": "git-24.364.71483-75d2b84",
		"losetup": "2.39-2",
		"dropbear": "2022.82-6",
		"curl": "8.7.1-r1",
		"kmod-nls-utf8": "5.15.150-1",
		"libnftnl": "1.2.6-1",
		"kmod-nls-cp437": "5.15.150-1",
		"rpcd-mod-file": "2023-07-01-c07ab2f9-1",
		"mtd": "26",
		"odhcpd-ipv6only": "2023-10-24-d8118f6e-1",
		"procd-seccomp": "2023-06-25-2db83655-2",
		"shadow-usermod": "4.8.1-3",
		"libjson-script": "2023-05-23-75a3b870-1",
		"libiwinfo-data": "2023-07-01-ca79f641-1",
		"ucode": "2024-07-11-1a8a0bcf-3",
		"rpcd-mod-luci": "20240305-1",
		"luci-app-sqm": "git-24.364.71483-75d2b84",
		"kmod-nf-log": "5.15.150-1",
		"sudo": "1.9.14p3-1",
		"parted": "3.6-1",
		"urandom-seed": "3",
		"ipset": "7.17-1",
		"luci-proto-ppp": "git-24.364.71483-75d2b84",
		"libcomerr": "1.47.0-2",
		"luci-mod-admin-full": "git-24.364.71483-75d2b84",
		"ppp": "2.4.9.git-2021-01-04-4",
		"cfdisk": "2.39-2",
		"luci-base": "git-24.364.71483-75d2b84",
		"logd": "2022-08-13-4c7b720b-2",
		"kmod-nf-log6": "5.15.150-1",
		"kmod-tg3": "5.15.150-1",
		"wireguard-tools": "1.0.20210914-2",
		"openssh-keygen": "9.8p1-1",
		"bind-libs": "9.18.28-1",
		"luci-proto-ipv6": "git-24.364.71483-75d2b84",
		"openwrt-keyring": "2022-03-25-62471e69-2",
		"luci-app-attendedsysupgrade": "git-24.364.71483-75d2b84",
		"libext2fs": "1.47.0-2",
		"jshn": "2023-05-23-75a3b870-1",
		"nftables-json": "1.0.8-1",
		"e2fsprogs": "1.47.0-2",
		"kmod-e1000": "5.15.150-1",
		"kmod-ppp": "5.15.150-1",
		"kmod-nft-offload": "5.15.150-1",
		"libopenssl-conf": "3.0.15-1",
		"libss": "1.47.0-2",
		"libjson-c": "0.16-3",
		"uhttpd": "2023-06-25-34a8a74d-2",
		"auc": "0.3.2-1",
		"kmod-nf-conntrack": "5.15.150-1",
		"usign": "2020-05-23-f1f65026-1",
		"libblobmsg-json": "2023-05-23-75a3b870-1",
		"luci-lib-nixio": "git-24.364.71483-75d2b84",
		"ca-bundle": "20230311-1",
		"kmod-forcedeth": "5.15.150-1",
		"libuclient": "2023-04-13-007d9454-1",
		"fping": "5.0-1",
		"kmod-nls-iso8859-1": "5.15.150-1",
		"luci-lib-jsonc": "git-24.364.71483-75d2b84",
		"kmod-amd-xgbe": "5.15.150-1",
		"bind-dig": "9.18.28-1",
		"ucode-mod-html": "1",
		"luci": "git-24.364.71483-75d2b84",
		"fdisk": "2.39-2",
		"luci-light": "git-24.364.71483-75d2b84",
		"kmod-nf-conntrack6": "5.15.150-1",
		"luci-app-pbr": "1.1.6",
		"kmod-lib-lzo": "5.15.150-1",
		"luci-lib-uqr": "git-24.364.71483-75d2b84",
		"ubox": "2022-08-13-4c7b720b-2",
		"kmod-amazon-ena": "5.15.150-1",
		"kernel": "5.15.150-1-e496746edd89318b9810e48e36a8bd9c",
		"kmod-e1000e": "5.15.150-1",
		"rpcd-mod-iwinfo": "2023-07-01-c07ab2f9-1",
		"luci-mod-network": "git-24.364.71483-75d2b84",
		"kmod-nft-core": "5.15.150-1",
		"libucode": "2024-07-11-1a8a0bcf-3",
		"kmod-button-hotplug": "5.15.150-3",
		"kmod-nls-base": "5.15.150-1",
		"uhttpd-mod-ubus": "2023-06-25-34a8a74d-2",
		"fwtool": "2019-11-12-8f7fe925-1",
		"jsonfilter": "2024-01-23-594cfa86-1",
		"liblucihttp-ucode": "2023-03-15-9b5b683f-1",
		"libubox": "2023-05-23-75a3b870-1",
		"kmod-igb": "5.15.150-1",
		"kmod-igc": "5.15.150-1",
		"kmod-bnx2": "5.15.150-1",
		"urngd": "2023-11-01-44365eb1-1",
		"kmod-slhc": "5.15.150-1",
		"rpcd-mod-rrdns": "20170710",
		"ppp-mod-pppoe": "2.4.9.git-2021-01-04-4"
	}
}

I see nothing wrong here. I ran a couple builds using your package list and see no issues on two different ASU servers, and run using both owut and Firmware Selector.

I think your best bet is to do the build using the Firmware Selector (https://firmware-selector.openwrt.org/?version=23.05.5&target=x86%2F64&id=generic) and create a build using the packages listed below (copied out of your list above). Just paste this in after the default package list in the "Customize installed packages" field. Download the "COMBINED-EFI (EXT4)" image, then install it with the standard upgrade tools (not the Attended Sysupgrade tools), keeping defaults.

mkf2fs opkg kmod-ixgbe busybox procd-ujail base-files partx-utils netifd kmod-r8169 firewall4 procd kmod-fs-vfat grub2-bios-setup odhcp6c fstools uclient-fetch uci dropbear mtd odhcpd-ipv6only procd-seccomp urandom-seed ppp logd kmod-tg3 e2fsprogs kmod-e1000 kmod-nft-offload ca-bundle kmod-forcedeth kmod-amd-xgbe kmod-amazon-ena kernel kmod-e1000e kmod-button-hotplug kmod-igb kmod-igc kmod-bnx2 urngd ppp-mod-pppoe auc bash bind-dig bind-host bind-libs cfdisk cgi-io curl ddns-scripts ddns-scripts-services dnsmasq fdisk fping fwtool getrandom grub2 grub2-efi ipset jansson jshn jsonfilter kmod-lib-crc32c kmod-lib-crc-ccitt kmod-lib-lzo kmod-nf-conntrack kmod-nf-conntrack6 kmod-nf-flow kmod-nf-log kmod-nf-log6 kmod-nf-nat kmod-nfnetlink kmod-nf-reject kmod-nf-reject6 kmod-nft-core kmod-nft-fib kmod-nft-nat kmod-nls-base kmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-utf8 kmod-ppp kmod-pppoe kmod-pppox kmod-slhc libustream-mbedtls losetup lsblk luci luci-app-attendedsysupgrade luci-app-ddns luci-app-firewall luci-app-opkg luci-app-pbr luci-app-sqm luci-base luci-lib-base luci-lib-ip luci-lib-jsonc luci-lib-nixio luci-lib-uqr luci-light luci-lua-runtime luci-mod-admin-full luci-mod-network luci-mod-status luci-mod-system luci-proto-ipv6 luci-proto-ppp luci-proto-wireguard luci-ssl luci-theme-bootstrap nftables-json openssh-keygen openssh-server openssh-sftp-server openssl-util openwrt-keyring parted pbr px5g-mbedtls resize2fs rpcd rpcd-mod-file rpcd-mod-iwinfo rpcd-mod-luci rpcd-mod-rrdns rpcd-mod-ucode shadow-groupadd shadow-useradd shadow-usermod sudo ubox ubus ubusd ucode ucode-mod-fs ucode-mod-html ucode-mod-math ucode-mod-ubus ucode-mod-uci uhttpd uhttpd-mod-ubus usign wireguard-tools zerotier

(You can ignore any redundant packages that may be listed above, opkg will handle that just fine.)

I created custom build with my packages included but still can not upgrade

root@OpenWrt:/tmp# sysupgrade -v openwrt-23.05.5-fb452b1b9395-x86-64-generic-ext4-combined-efi.img 
Sat Jan  4 18:42:09 EET 2025 upgrade: Image metadata not present
Sat Jan  4 18:42:09 EET 2025 upgrade: Unable to determine upgrade device
Image check failed.
root@OpenWrt:/tmp#

I used -F to force sysupgrade but it did not happen. I am still running 23.05.3

I believe there is something broken on the device itself, you should probably resort to just reflashing the device from scratch using dd or whatever you used to get OpenWrt on it for the first install. That Unable to determine upgrade device indicates that sysupgrade cannot find the proper disk partitions for some reason, so maybe poking around with parted or fdisk might help, but I'm not hopeful.

Thanks a lot.

I will do new install after release 24 :slight_smile: At the moment it is working and fine for me. It is too much work to upgrade working system with clean install.

1 Like

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