Change /tmp size [answered]
asked 2016-12-05 21:43:29 +0300
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hi,
I need to grow the /tmp filesystem a little, how can I do that ?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
asked 2016-12-05 21:43:29 +0300
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hi,
I need to grow the /tmp filesystem a little, how can I do that ?
these days, /tmp is mounted usually on tmpfs. Tmpfs is RAM-based (https://en.wikipedia.org/wiki/Tmpfs) and default allocation is usually 1/2 RAM. Its a max and if is less data on the filesystem, only that part of RAM would be used.
You can in theory increase /tmp by increasing its allocation in RAM (see tmpfs mount options). However, beware that you might get too little RAM for other applications.
Alternative is to make subdir in /home and use that instead of /tmp in your programs.
There are many other alternatives that you could consider, its too many to list here and they would depend on your specific needs.
@rinigus You are right and I know about tmpfs already.
On my ubuntu there an explicit "tmpfs" mount line for "/tmp" but here have I nothing in my Jolla fstab :
$ grep /tmp /etc/fstab
$
I just wonder how it works if it not explicitly mounted via a fstab description line.
SebM ( 2016-12-06 10:17:27 +0300 )editIts mounted by systemd during boot, so you have to look for systemd configs. But I think if you start even approaching to consuming 1/2 of your phone RAM, you maybe in trouble. Unless you have a phone with lots of it (3GB is a max for full-blown SFOS at present due to the non-finished 64-bit ports). I wouldn't risk to get to 1GB RAM consumption even with 2GB RAM phones - your apps may start to get killed.
You can probably make a /home/tmp dir and use that for this purpose. No mount is necessary then, just adjust permissions and point your program over there (might need to modify its source).
rinigus ( 2016-12-06 10:32:25 +0300 )editThis thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2016-12-05 21:43:29 +0300
Seen: 284 times
Last updated: Dec 06 '16
\SDCARD\ folder which Android apps use should be visible when you plug your phone into PC [released]
Recommended file system type & partitioning scheme for the microSD card? [answered]
Support UDF for MicroSD filesystem. [released]
file access between Sailfish / Android
Don't recognize connecting Jolla to my PC (via USB) [duplicate]
you could mount a different partition/file on said mount point
till ( 2016-12-05 22:42:00 +0300 )editThat's a good workaround but I don't a spare filesystem to do that.
My option is to grow /tmp FS,
On my Ubuntu, there is a "/etc/fstab" line for that but I don't see a "/tmp" in my "fstab" on my Jolla and still "/tmp" is there.
I wonder how it works.
SebM ( 2016-12-06 08:51:28 +0300 )edit