Page 1 of 1

Temporary place

Posted: 13 Sep 2015, 14:54
by tome
What is the best place for temporary files? I don't want to store anything on hard-drive, but in RAM. So after reboot everything should be lost even if I use changes= cheatcode. /mnt/live/memory/tmp? /run?

Re: Temporary place

Posted: 13 Sep 2015, 15:38
by bour59
I use this
mount ramdisk /mnt/ramd -t tmpfs -o size=xxxM
xxx is the desired size in Mb
datas available in /mnt/ramd

Re: Temporary place

Posted: 13 Sep 2015, 22:00
by Ed_P
tome wrote:What is the best place for temporary files? I don't want to store anything on hard-drive, but in RAM. So after reboot everything should be lost even if I use changes= cheatcode.
/tmp works. I use the changes= cheatcode and everything there is gone on next boot.

Re: Temporary place

Posted: 13 Sep 2015, 22:07
by Bogomips
^ /tmp/usm as well?

Re: Temporary place

Posted: 13 Sep 2015, 22:52
by Ed_P
Yes. /tmp/usm as well.

Re: Temporary place

Posted: 14 Sep 2015, 18:24
by tome
@Ed_P
Everything is gone after reboot because you use changes=EXIT: cheatcode (see /etc/changes-exit.conf), but it is saved for plain changes= cheatcode.

bour59 solution is fine, without defined size (mount ramdisk /mnt/ramd -t tmpfs) it is probably the same as it would be /run/newdirectory or /mnt/live/memory/new/directory.
Thanks.

Re: Temporary place

Posted: 15 Sep 2015, 03:38
by Ed_P
tome wrote:@Ed_P
Everything is gone after reboot because you use changes=EXIT: cheatcode (see /etc/changes-exit.conf), but it is saved for plain changes= cheatcode.
:shock: Sorry tome. :oops: I thought the only difference between the two cheatcodes was timing. :(