<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / Read only raspberry pi OS and RexCore]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=228&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=228"/>
	<updated>2016-10-04T18:28:50Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=228</id>
	<entry>
		<title type="html"><![CDATA[Re: Read only raspberry pi OS and RexCore]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1008#p1008"/>
		<content type="html"><![CDATA[<p>Hi Hubert,</p><p>thank you for sharing your interesting thoughts. You already pointed out the key things which one should be aware of.<br />A solution depends on your exact needs - do you want pure Read only file system with temporary storage or do you need to store some persistent data? (SGSLP, Archives, ...).</p><p>First, let&#039;s solve the temporary / persistent storage issue and the Read only setup will follow.</p><p><strong>Temporary storage can be achieved as follows:</strong></p><ol class="decimal"><li><p>Edit fstab: </p><div class="codebox"><pre><code>sudo nano /etc/fstab</code></pre></div></li><li><p>Add the line: </p><div class="codebox"><pre><code>none      /rex/rexcore/ramdisk        tmpfs      size=10M          0        0</code></pre></div></li><li><p>Save and reboot.</p></li><li><p>Redirect all your temporary data to &quot;/rex/rexcore/ramdisk&quot; folder.</p></li></ol><p><strong>Persistent storage:</strong><br />My approach is to create a new Read write partition of desired volume (500 MB or so depending on the purpose):</p><ol class="decimal"><li><p>Insert SD card into Linux based PC with installed &quot;gparted&quot; (I&#039;m pretty sure there must be a way how to shrink the partition directly in the Raspberry but the use of external Linux PC was easier for me) </p><div class="codebox"><pre><code>apt-get install gparted</code></pre></div></li><li><p>Shrink /root partition to fit the desired volume.</p></li><li><p>Create ext4 primary partition.</p></li><li><p>Insert the SD card back to Raspberry Pi and start it.</p></li><li><p>Create folder where to mount the new partition </p><div class="codebox"><pre><code>mkdir /rex/arc</code></pre></div></li><li><p>Edit fstab: </p><div class="codebox"><pre><code>sudo nano /etc/fstab</code></pre></div></li><li><p>Add the line: </p><div class="codebox"><pre><code>/dev/mmcblk0p3  /rex/arc        ext4    defaults        0       2</code></pre></div></li><li><p>Save and reboot.</p></li><li><p>Redirect all your temporary data to &quot;/rex/arc&quot; folder.</p></li></ol><p>Read only file system can be done for example according to the tutorial you already mentioned.<br />I was inspired by this tutorial: <a href="http://www.matteomattei.com/web-kiosk-with-raspberry-pi-and-read-only-sd/" rel="nofollow">http://www.matteomattei.com/web-kiosk-w … d-only-sd/</a><br />(if you don&#039;t need to use Chromium browser in &quot;kiosk mode&quot; you can focus only on Chapter &quot;Make the SD read-only&quot;)</p><p>Hope that this can act as a source of new ideas on &quot;How to make Raspberry Pi read-only with REX Control System&quot;.<br />I will be happy to answer all your questions.</p><p>Regards, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2016-10-04T18:28:50Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1008#p1008</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Read only raspberry pi OS and RexCore]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=1007#p1007"/>
		<content type="html"><![CDATA[<p>Hi there,</p><p>here is nice art about making Raspbian (or other Raspberry Pi OS) read only:<br /><a href="http://hallard.me/raspberry-pi-read-only/" rel="nofollow">http://hallard.me/raspberry-pi-read-only/</a></p><p>I was wondering if making read only system when using RexCore will be achievable?<br />Logging - that&#039;s for sure will be problematic. But any others?<br />When RexCore is writing something to the filesystem? When using SGSLP block - right?<br />Any other?</p><p>Of course before uploading new code to the raspberry it is necessary to switch to read/write mode.</p><br /><p>Regards<br />Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2016-10-04T15:56:58Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=1007#p1007</id>
	</entry>
</feed>
