No space left on device

root@TP1043IoT:~# opkg install nmap
Installing nmap (7.70-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/nmap_7.70-1_mips_24kc.ipk
Installing libpcap (1.8.1-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/base/libpcap_1.8.1-1_mips_24kc.ipk
Installing libstdcpp (7.3.0-1) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/packages/libstdcpp_7.3.0-1_mips_24kc.ipk
Installing libpcre (8.41-2) to root...
Downloading http://downloads.openwrt.org/releases/18.06.1/packages/mips_24kc/packages/libpcre_8.41-2_mips_24kc.ipk
Configuring libpcre.
Configuring libstdcpp.
Configuring libpcap.
Collected errors:
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/nmap.list: No space left on device.
 * opkg_install_pkg: Failed to extract data files for nmap. Package debris may remain!
 * opkg_install_cmd: Cannot install package nmap.
 * opkg_conf_write_status_files: Can't open status file //usr/lib/opkg/status: No space left on device.
root@TP1043IoT:~# opkg remove nmap libpcap libstdcpp libpcre 
No packages removed.
root@TP1043IoT:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                 2560      2560         0 100% /rom
tmpfs                    13916       676     13240   5% /tmp
/dev/mtdblock3            4288      4220        68  98% /overlay
overlayfs:/overlay        4288      4220        68  98% /
tmpfs                      512         0       512   0% /dev

What can I do to free space?

Get a router with more flash (preferably since you seem to have a tplink 1043v1(?)) and/or use extroot

1 Like

There isn't a very graceful way to recover from this, it is best to reformat the overlay entirely and start over.

nmap is huge.

1 Like

Ok, I feared this. After a reboot I see:

Your JFFS2-partition seems full and overlayfs is mounted read-only.
Please try to remove files from /overlay/upper/... and reboot!

i try to wait for a 3rd Archer C7 when the price is falling.

root@TP1043IoT:/overlay/upper/sbin# umount /overlay && firstboot && reboot
umount: can't unmount /overlay: Resource busy
root@TP1043IoT:/overlay/upper/sbin# ls
ntpd
root@TP1043IoT:/overlay/upper/sbin# opkg remove ntpd
Removing package ntpd from root...
rm: can't remove '/etc/rc.d/S65ntpd': Read-only file system
rm: can't remove '/etc/rc.d/K65ntpd': Read-only file system
ln: /usr/sbin/ntpd: Read-only file system
Your JFFS2-partition seems full and overlayfs is mounted read-only.
Please try to remove files from /overlay/upper/... and reboot!

How do I set the filesystem to rw so I can do a firstboot?

Thanks, I tried this:

root@TP1043IoT:/overlay/upper/sbin# ls -la ntpd 
-rwxr-xr-x    1 root     root        502412 Aug 16 07:18 ntpd

root@TP1043IoT:/overlay/upper/sbin# rm ntpd

root@TP1043IoT:/overlay/upper/sbin# reboot

root@TP1043IoT:~# umount /overlay && firstboot && reboot
This will erase all settings and remove any installed packages. Are you sure? [N/y]
y
/dev/mtdblock3 is not mounted
/dev/mtdblock3 will be erased on next mount
root@TP1043IoT:~# Connection to 192.168.179.54 closed by remote host.
Connection to 192.168.179.54 closed.

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