OpenELEC Forum
{solved] tmpfs size - Printable Version

+- OpenELEC Forum (https://forum.openelec.tv)
+-- Forum: Generic Forum (https://forum.openelec.tv/forumdisplay.php?fid=5)
+--- Forum: MISCELLANEOUS (https://forum.openelec.tv/forumdisplay.php?fid=23)
+--- Thread: {solved] tmpfs size (/showthread.php?tid=64386)



tmpfs size - prono - 05-18-2013

Hello,

I'm not really a linux guy so excuse my noob question.

Does anybody have an idea how to avoid this error:

Code:
XXXXX/etc # vdr.start
cp: write error: No space left on device
/storage/.xbmc/addons/service.multimedia.vdr-addon/bin/vdr.start: line 136: cannot create temp file for here-document: No space left on device
I was able to narrow down the issue to the fact that I have a large file that needs to be processed by xmltv2vdr on startup but I need this fuctionality.

If i do a df i get:

Code:
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 1554188 106944 1447244 7% /dev
/dev/sda1 177487 116708 51615 69% /flash
/dev/sda2 307468416 16284372 275565484 6% /storage
/dev/loop0 106752 106752 0 100% /
tmpfs 622400 0 622400 0% /dev/shm
tmpfs 10240 10240 0 100% /var

Is there a way to increase the size of the tmpfs ? I think this is the root cause of my issue.

Thank you


tmpfs size - ultraman - 05-18-2013

From packages/sysutils/busybox/init.d/01_mount-filesystem
Code:
mount -n -t tmpfs -o size=10m tmpfs /var
You can see the size of /var is 10 MB. You can increase this only if compile image yourself.
The other option would be to make some symbolic link from /storage to /var to appropriate folder where vdr is saving files. Or to mount some folder over.


tmpfs size - prono - 05-18-2013

I tried the symlink option but once i restart the symlinks are removed. I need to see if there is some way to do the symlink automatically at startup.


tmpfs size - ultraman - 05-18-2013

prono, do that in autostart.sh.


{solved] tmpfs size - prono - 05-18-2013

thank you, that worked.

For others that needs this:

I added to autostart.sh

Code:
( mv /var/tmp /var/tmp2;
ln -s /storage/extra/tmp /var/tmp;
)&