<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Remounting embedded filesystem]]></title><description><![CDATA[<p dir="auto">As I understand it the correct way to remount the file system of a NanoBSD install in order to add packages or edit a file from the CLI is to use.</p>
<pre><code>/etc/rc.conf_mount_rw
then
/etc/rc.conf_mount_ro
</code></pre>
<p dir="auto">That has worked for me fine. However I, and many others, have run into a problem.<br />
I'm running a Watchguard Firebox and in order to use the LCD there is a tar ball consisting of a special driver and an install script. The script works like so:</p>
<pre><code>mount -u -w /

Copy the stuff across and fix the permissions.

mount -u -r /
</code></pre>
<p dir="auto">This was all fine upto Beta4. However recent snapshots have a problem. It seems that having run the mount command, via the script, rc.conf_mount_rw (or ro) is no longer able to function.</p>
<pre><code>
[2.0-BETA5][root@pfSense.localdomain]/lib(48): mount -u -r /
[2.0-BETA5][root@pfSense.localdomain]/lib(49): mount -p
/dev/ufs/pfsense0       /                       ufs     ro              1 1
devfs                   /dev                    devfs   rw              0 0
/dev/md0                /tmp                    ufs     rw              2 2
/dev/md1                /var                    ufs     rw              2 2
/dev/ufs/cf             /cf                     ufs     rw              1 1
devfs                   /var/dhcpd/dev          devfs   rw              0 0
[2.0-BETA5][root@pfSense.localdomain]/lib(50): /etc/rc.conf_mount_rw
[2.0-BETA5][root@pfSense.localdomain]/lib(51): mount -p
/dev/ufs/pfsense0       /                       ufs     ro              1 1
devfs                   /dev                    devfs   rw              0 0
/dev/md0                /tmp                    ufs     rw              2 2
/dev/md1                /var                    ufs     rw              2 2
/dev/ufs/cf             /cf                     ufs     rw              1 1
devfs                   /var/dhcpd/dev          devfs   rw              0 0
[2.0-BETA5][root@pfSense.localdomain]/lib(52):

</code></pre>
<p dir="auto">Any thoughts? Is this the expected behavior?</p>
<p dir="auto">At the moment I'm reworking the script but I'd love to know why it suddenly became broken.</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/topic/30477/remounting-embedded-filesystem</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 20:46:56 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/30477.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Feb 2011 02:14:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Remounting embedded filesystem on Wed, 30 Mar 2011 15:13:03 GMT]]></title><description><![CDATA[<p dir="auto">Can I just add a note here?</p>
<p dir="auto">I loaded the <strong>pfSense-2.0-RC1-1g-i386-20110226-1633-nanobsd.img.gz</strong> to a 1GB flash and it seems that the file system for this was r/w after boot.</p>
<p dir="auto">I then proceeded to upgrade, which went OK and loaded the latest update.</p>
<p dir="auto">However, after rebooting with the latest update the file system is still r/w.</p>
<p dir="auto">When I loaded a latest base image from snapshots, then the file system was r/o.</p>
<p dir="auto">Can someone explain why my updated 1GB nano build is still r/w - it's essentially the same build at the latest base version.</p>
<p dir="auto">Cheers,</p>
<p dir="auto">JD</p>
]]></description><link>https://forum.netgate.com/post/272788</link><guid isPermaLink="true">https://forum.netgate.com/post/272788</guid><dc:creator><![CDATA[jdamnation]]></dc:creator><pubDate>Wed, 30 Mar 2011 15:13:03 GMT</pubDate></item><item><title><![CDATA[Reply to Remounting embedded filesystem on Fri, 11 Feb 2011 16:47:51 GMT]]></title><description><![CDATA[<p dir="auto">Good to know I'm not toasting my CF card(s).<br />
Self inflicted damage does seems to be a reoccurring problem for me.  ::) I doubt this will help though!</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/265301</link><guid isPermaLink="true">https://forum.netgate.com/post/265301</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Fri, 11 Feb 2011 16:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to Remounting embedded filesystem on Fri, 11 Feb 2011 14:00:14 GMT]]></title><description><![CDATA[<p dir="auto">I opened a ticket for this:<br />
http://redmine.pfsense.org/issues/1279</p>
<p dir="auto">Though honestly in the grand scheme of things there really isn't much risk here unless it's self-inflicted. :-)</p>
<p dir="auto">The system itself doesn't try to write without first doing the rw switch anyhow, any processes that try to write out data constantly are using /tmp and/or /var which are RAM disks. There aren't any system processes that are really held at bay by the ro/rw switch. Not sure 100% about all the packages but the base system itself should be fine.</p>
]]></description><link>https://forum.netgate.com/post/265279</link><guid isPermaLink="true">https://forum.netgate.com/post/265279</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Fri, 11 Feb 2011 14:00:14 GMT</pubDate></item><item><title><![CDATA[Reply to Remounting embedded filesystem on Thu, 10 Feb 2011 23:04:57 GMT]]></title><description><![CDATA[<p dir="auto">This is defininately broken.</p>
<pre><code>
[2.0-BETA5][root@pfSense.localdomain]/tmp(24): mount -p
/dev/ufs/pfsense0       /                       ufs     rw              1 1
devfs                   /dev                    devfs   rw              0 0
/dev/md0                /tmp                    ufs     rw              2 2
/dev/md1                /var                    ufs     rw              2 2
/dev/ufs/cf             /cf                     ufs     rw              1 1
devfs                   /var/dhcpd/dev          devfs   rw              0 0
[2.0-BETA5][root@pfSense.localdomain]/tmp(25): /etc/rc.conf
rc.conf_mount_ro* rc.conf_mount_rw*
[2.0-BETA5][root@pfSense.localdomain]/tmp(25): /etc/rc.conf_mount_ro
[2.0-BETA5][root@pfSense.localdomain]/tmp(26): mount -p
/dev/ufs/pfsense0       /                       ufs     rw              1 1
devfs                   /dev                    devfs   rw              0 0
/dev/md0                /tmp                    ufs     rw              2 2
/dev/md1                /var                    ufs     rw              2 2
/dev/ufs/cf             /cf                     ufs     rw              1 1
devfs                   /var/dhcpd/dev          devfs   rw              0 0

</code></pre>
<p dir="auto">The Dec 17th Beta4 snapshot was fine. By Jan 13th Beta5 rc.conf_mount had stopped working.<br />
I guess there isn't anything writing to the cf card anyway but still.</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/265201</link><guid isPermaLink="true">https://forum.netgate.com/post/265201</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Thu, 10 Feb 2011 23:04:57 GMT</pubDate></item><item><title><![CDATA[Reply to Remounting embedded filesystem on Thu, 10 Feb 2011 21:18:27 GMT]]></title><description><![CDATA[<p dir="auto">Hmm, it should be r/o. Not sure what might be leaving it r/w.</p>
]]></description><link>https://forum.netgate.com/post/265179</link><guid isPermaLink="true">https://forum.netgate.com/post/265179</guid><dc:creator><![CDATA[jimp]]></dc:creator><pubDate>Thu, 10 Feb 2011 21:18:27 GMT</pubDate></item><item><title><![CDATA[Reply to Remounting embedded filesystem on Thu, 10 Feb 2011 11:44:10 GMT]]></title><description><![CDATA[<p dir="auto">I reflashed my CF card with pfSense-2.0-BETA5-1g-i386-20110209-1815-nanobsd.img.gz.</p>
<p dir="auto">Having done nothing but setup my interfaces I am seeing this:</p>
<pre><code>[2.0-BETA5][root@pfSense.localdomain]/root(1): mount -p
/dev/ufs/pfsense0       /                       ufs     rw              1 1
devfs                   /dev                    devfs   rw              0 0
/dev/md0                /tmp                    ufs     rw              2 2
/dev/md1                /var                    ufs     rw              2 2
/dev/ufs/cf             /cf                     ufs     rw              1 1
devfs                   /var/dhcpd/dev          devfs   rw              0 0

</code></pre>
<p dir="auto">Is this right? Everything is mounted R/W by default. I thought that the flash card was supposed to be R/O to prevent excessive writes.  ???</p>
<p dir="auto">Steve</p>
]]></description><link>https://forum.netgate.com/post/265092</link><guid isPermaLink="true">https://forum.netgate.com/post/265092</guid><dc:creator><![CDATA[stephenw10]]></dc:creator><pubDate>Thu, 10 Feb 2011 11:44:10 GMT</pubDate></item></channel></rss>