Temporary place
-
- Contributor
- Posts: 676
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Temporary place
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?
You have mind and feelings. Be wise and clever.
-
- Samurai
- Posts: 183
- Joined: 29 Dec 2010, 08:10
- Distribution: porteus v5.0-xfce K5.19.7
- Location: France
Re: Temporary place
I use this
mount ramdisk /mnt/ramd -t tmpfs -o size=xxxM
xxx is the desired size in Mb
datas available in /mnt/ramd
mount ramdisk /mnt/ramd -t tmpfs -o size=xxxM
xxx is the desired size in Mb
datas available in /mnt/ramd
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Temporary place
/tmp works. I use the changes= cheatcode and everything there is gone on next boot.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.
Ed
-
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
Re: Temporary place
^ /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
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB
-
- Contributor
- Posts: 676
- Joined: 26 Jun 2013, 14:03
- Distribution: x64 Openbox
- Location: Russia is causing the immense damage to humanity
- Contact:
Re: Temporary place
@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.
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.
You have mind and feelings. Be wise and clever.
- Ed_P
- Contributor
- Posts: 8369
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Re: Temporary place
Sorry tome. I thought the only difference between the two cheatcodes was timing.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.
Ed