Temporary place

Non release banter
Post Reply
tome
Contributor
Contributor
Posts: 571
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Temporary place

Post#1 by tome » 13 Sep 2015, 14:54

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?

bour59
Samurai
Samurai
Posts: 118
Joined: 29 Dec 2010, 08:10
Distribution: porteus v3.2.2-xfce
Location: France

Re: Temporary place

Post#2 by bour59 » 13 Sep 2015, 15:38

I use this
mount ramdisk /mnt/ramd -t tmpfs -o size=xxxM
xxx is the desired size in Mb
datas available in /mnt/ramd

User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Temporary place

Post#3 by Ed_P » 13 Sep 2015, 22:00

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.
Ed

Bogomips
Full of knowledge
Full of knowledge
Posts: 2563
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: Temporary place

Post#4 by Bogomips » 13 Sep 2015, 22:07

^ /tmp/usm as well?
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Temporary place

Post#5 by Ed_P » 13 Sep 2015, 22:52

Yes. /tmp/usm as well.
Ed

tome
Contributor
Contributor
Posts: 571
Joined: 26 Jun 2013, 14:03
Distribution: x64 Openbox
Location: Poland
Contact:

Re: Temporary place

Post#6 by tome » 14 Sep 2015, 18:24

@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.

User avatar
Ed_P
Contributor
Contributor
Posts: 3319
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Temporary place

Post#7 by Ed_P » 15 Sep 2015, 03:38

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. :(
Ed

Post Reply