<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3ASetting_up_a_RAM_drive_on_Raspberry_Pi</id>
	<title>Talk:Setting up a RAM drive on Raspberry Pi - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=Talk%3ASetting_up_a_RAM_drive_on_Raspberry_Pi"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Talk:Setting_up_a_RAM_drive_on_Raspberry_Pi&amp;action=history"/>
	<updated>2026-09-19T21:14:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=Talk:Setting_up_a_RAM_drive_on_Raspberry_Pi&amp;diff=6903&amp;oldid=prev</id>
		<title>Trixwood at 16:23, 20 August 2016</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=Talk:Setting_up_a_RAM_drive_on_Raspberry_Pi&amp;diff=6903&amp;oldid=prev"/>
		<updated>2016-08-20T16:23:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I found a page on extending the &amp;quot;life&amp;quot; of the SDcard, here: http://www.makeuseof.com/tag/extend-life-raspberry-pis-sd-card/&lt;br /&gt;
&lt;br /&gt;
The minimal suggestion is much alike the one made here, to move the tmp to RAM, but the size of RAM is much bigger.&lt;br /&gt;
Instead of 1MB it suggests moving it to 100MB.&lt;br /&gt;
&lt;br /&gt;
tmpfs /tmp tmpfs defaults,noatime,nosuid,size=100m 0 0&lt;br /&gt;
&lt;br /&gt;
But also to move the log file to RAM... and even more...&lt;br /&gt;
&lt;br /&gt;
tmpfs /tmp tmpfs defaults,noatime,nosuid,size=100m 0 0&lt;br /&gt;
tmpfs /var/tmp tmpfs defaults,noatime,nosuid,size=30m 0 0&lt;br /&gt;
tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m 0 0&lt;br /&gt;
tmpfs /var/run tmpfs defaults,noatime,nosuid,mode=0755,size=2m 0 0&lt;br /&gt;
tmpfs /var/spool/mqueue tmpfs defaults,noatime,nosuid,mode=0700,gid=12,size=30m 0 0&lt;br /&gt;
&lt;br /&gt;
Thats your opinion?&lt;br /&gt;
Do you think its smart of to allocate over 262MB of memory of a small Rapsberry PI for this?&lt;br /&gt;
&lt;br /&gt;
Or should we move into use of a USB memory stick instead. More complex, bus more robust.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
==/var/tmp : &amp;quot;Temporary files preserved between system reboots&amp;quot;==&lt;br /&gt;
&lt;br /&gt;
The Filesystem Hierarchy Standard (FHS) states the following:&lt;br /&gt;
  /var/tmp : &amp;quot;Temporary files preserved between system reboots&amp;quot;&lt;br /&gt;
             (see: [https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard#Directory_structure WikiPedia] or [http://www.pathname.com/fhs/pub/fhs-2.3.html#VARTMPTEMPORARYFILESPRESERVEDBETWEE FHS 2.3 /var/tmp])&lt;br /&gt;
  &lt;br /&gt;
  /tmp     : &amp;quot;Programs must not assume that any files or directories in /tmp are preserved between invocations of &lt;br /&gt;
              the program&amp;quot; and &amp;quot;... it is recommended that files and directories located in /tmp be deleted &lt;br /&gt;
              whenever the system is booted&amp;quot;&lt;br /&gt;
             (see: [http://www.pathname.com/fhs/pub/fhs-2.3.html#TMPTEMPORARYFILES FHS 2.3 /tmp])&lt;br /&gt;
&lt;br /&gt;
So should this page not advise to enable tmpfs for /tmp instead of /var/tmp?&lt;br /&gt;
&lt;br /&gt;
==Prefered way to mount /tmp as a tmpfs ([https://www.domoticz.com/wiki/Setting_up_a_RAM_drive_on_Raspberry_Pi RAMdrive])==&lt;br /&gt;
There are preferred mechanisms in Debian / Raspbian to mount /tmp as a tmpfs (RAMdrive):&lt;br /&gt;
* On Wheezy add add/change a line with &amp;lt;code&amp;gt;RAMTMP=yes&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;/etc/default/tmpfs&amp;lt;/code&amp;gt; (or &amp;lt;code&amp;gt;/etc/default/rcS&amp;lt;/code&amp;gt; if the former has no effect). (see [https://www.raspbian.org/RaspbianFAQ#No_space_left_on_device.2C_but_I_have_plenty_of_free_space_on_my_SD_card._What_do_I_do.3F RaspbianFAQ] or [http://www.unixlore.net/cgi-bin/man/man2html?tmpfs+5 the tmpfs man page])&lt;br /&gt;
* On Jessie enable the systemd unit &amp;lt;code&amp;gt;tmp.mount&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;sudo  systemctl enable tmp.mount&amp;lt;/code&amp;gt;. (see [https://www.google.com/search?q=tmp.mount+tmpfs+systemd+debian+jessie Google, i could not find a good reference to systemd tmp.mount])&lt;br /&gt;
&lt;br /&gt;
[[Category:Raspberry Pi]] &lt;br /&gt;
&lt;br /&gt;
Best wishes, &lt;br /&gt;
Mick&lt;br /&gt;
&lt;br /&gt;
--[[User:Mick|Mick]] ([[User talk:Mick|talk]]) 23:32, 18 March 2016 (CET)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Domoticz]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Setup]]&lt;br /&gt;
[[Category:Raspberry Pi]]&lt;/div&gt;</summary>
		<author><name>Trixwood</name></author>
	</entry>
</feed>