No space left on device

Issue: When trying to install a package, you get the error message No space left on device

Root cause: Too little space available on your device's flash. (happens easily on devices with only 4MB flash or 8MB flash)

By removing packages you installed after flashing OpenWrt onto your Router (e.g. packages installed via opkg install or the Software page in LuCI).

  • You can remove such packages via opkg remove or via the Software page in LuCI.
    • If there is package debris left over from a partial installation, still occupying valuable space, and which can not easily be removed by hand and opkg remove, try removing the package debris via script.
  • You cannot remove packages on the SquashFS partition, which is included in the image you flashed.

This happens easily with recent firmware on 4MB/8MB Flash devices. To address this, you can press-fit an OpenWrt image into this small flash by building your own image tailored to your requirements, with only the packages you need:

  • via Attended Sysupgrade in LuCI (if you have luci-app-attendedsysupgrade installed), by selecting from the version menu the same version that is currently installed (marked with [installed])
  • If you need even more space for package installation, you probably want Extroot.
  • If you just want simple USB storage for e.g. pictures, video, music, see Using storage devices.
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
  • Last modified: 2023/02/25 12:26
  • by tmomas