Expand 100mb disk size on 32gb sd card pi4 openwrt

I am trying to expand my 100mb disk size 32gb sd card on pi4 openwrt but I am getting this error message when trying to run these commands

 opkg install parted losetup resize2fs blkid
Package parted (3.6-r1) installed in root is up to date.
Installing losetup (2.40.2-r1) to root...
Package resize2fs (1.47.0-r2) installed in root is up to date.
Installing blkid (2.40.2-r1) to root...
Collected errors:
 * verify_pkg_installable: Only have 4kb available on filesystem /overlay, pkg losetup needs 140
 * opkg_install_cmd: Cannot install package losetup.
 * verify_pkg_installable: Only have 4kb available on filesystem /overlay, pkg blkid needs 140
 * opkg_install_cmd: Cannot install package blkid.

I am using this method

 mount
/dev/root on / type ext4 (rw,noatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mmcblk0p1 on /boot type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,noatime,mode=600,ptmxmode=000)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,noatime)
bpffs on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,noatime,mode=700)
root@Network:~# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                98.3M     96.3M      4.0K 100% /
tmpfs                     1.9G      2.6M      1.9G   0% /tmp
/dev/mmcblk0p1           63.9M     19.0M     44.8M  30% /boot
tmpfs                   512.0K         0    512.0K   0% /dev

read the error message you're given ?

1 Like

Yes, I am asking how to proceed next. ChatGPT says I need to reflash my SD card with a new OpenWrt image.

I can’t run this script because there is no space left.

# Install packages
opkg update
opkg install parted losetup resize2fs blkid
 
# Download expand-root.sh
wget -U "" -O expand-root.sh "https://openwrt.org/_export/code/docs/guide-user/advanced/expand_root?codeblock=0"
 
# Source the script (creates /etc/uci-defaults/70-rootpt-resize and /etc/uci-defaults/80-rootpt-resize, and adds them to /etc/sysupgrade.conf so they will be re-run after a sysupgrade)
. ./expand-root.sh
 
# Resize root partition and filesystem (will resize partiton, reboot resize filesystem, and reboot again)
sh /etc/uci-defaults/70-rootpt-resize

No you didn't.

Uninstall some package you installed, run the script, reinstall what you uninstalled.

ChatGPT is a f-ing moron.

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