Installing packages to TMP

Hey guys,
long story short i’ve wr940n it has low storage.
i don’t have any storage to install anything.
so i was thinking the only option i have is to use samba or CIFS by installing them to the ram.
and then everything else would be on a server.

i’ve changed the conf to option overlay_root /tmp
but everytime i try to install any package from the ui interface i get those errors

Collected errors:
 * wfopen: //usr/lib/opkg/info/kmod-nls-base.control: Read-only file system.
 * wfopen: //usr/lib/opkg/info/kmod-nls-base.postinst: Read-only file system.
 * wfopen: //usr/lib/opkg/info/kmod-nls-base.prerm: Read-only file system.
 * wfopen: /lib/modules/4.9.120/nls_base.ko: Read-only file system.
 * pkg_write_filelist: Failed to open //usr/lib/opkg/info/kmod-nls-base.list: Read-only file system.
 * opkg_install_pkg: Failed to extract data files for kmod-nls-base. Package debris may remain!
 * opkg_install_cmd: Cannot install package cifsmount.

But i did try to install through ssh using opkg install package_name -d ram
it does install without any problems but the thing is i can’t find the package in startup, and i’ve searched for any other way to start an installed package didnt have much luck

Waiting for one of the following Solutions

  • fix the errors while installing from the UI interface
  • start installed package using ssh

Your device also has very little RAM, prohibiting its use for anything larger.

1 Like

but it does have 14 mb available, and as i mentioned when i try to install using ssh it works perfectly, but there’s no way to startup the package

Your total RAM size is 32 MB, which is marginal at best. Yes, tmpfs by default assigns half of your RAM size for each tmpfs mount, that doesn't mean you can actually use that much (if you're lucky, you may have 4-6 MB free RAM at most on your device, less when running larger services).

all i need is 1 mb :D, do you know anyway to get that to work?