<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=6983&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6983</link>
		<description><![CDATA[The most recent posts in [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?.]]></description>
		<lastBuildDate>Sat, 13 Sep 2025 18:02:41 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=57993#p57993</link>
			<description><![CDATA[<p>Hello, only now i can rejoin the forum. I&#039;ve installed OpenRc (therefore i removed sysvinit) - keeping runit as process supervisor -: now everything works well, including filesystems unmounting.</p>]]></description>
			<author><![CDATA[dummy@example.com (francesco)]]></author>
			<pubDate>Sat, 13 Sep 2025 18:02:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=57993#p57993</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54587#p54587</link>
			<description><![CDATA[<p>Note that the scripts don&#039;t do anything at start, so your &quot;# Default-Start:&#160; 2 3 4 5&quot; are without effects.</p><p>Also, <span class="bbc">umountroot</span> doesn&#039;t actually unmount the root filesystem, but it remounts the filesytem root as read-only, and that should be enough to usually avoid fsck on boot-up.</p><p>And, I&#039;m sure you wouldn&#039;t want unmounting to be done upon &quot;S s 1&quot;, and you should restore the normal &quot;# Default-Stop: 0 6&quot;.</p><p>It appears you are using <span class="bbc">runit</span> rather than <span class="bbc">sysvinit</span>? If that&#039;s the case I wonder if you have set up it&#039;s start/stop configuration to execute those scripts? I believe it&#039;s done differently from the sysvinit setup although many sysvinit scripts may be used with runit.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 22 Feb 2025 14:55:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54587#p54587</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=54584#p54584</link>
			<description><![CDATA[<p>Hello again, i edited umountfs script (same as for umountnfs.sh and umountroot):</p><p>#! /bin/sh<br />### BEGIN INIT INFO<br /># Provides:&#160; &#160; &#160; &#160; &#160; umountfs<br /># Required-Start:<br /># Required-Stop:&#160; &#160; &#160;umountroot<br /># Default-Start:&#160; &#160; &#160;2 3 4 5<br /># Default-Stop:&#160; &#160; &#160; S s 1 0 6<br /># Short-Description: Turn off swap and unmount all local file systems.<br /># Description:<br />### END INIT INFO</p><p>And still nothing (filesystems won&#039;t unmount); so i installed runit, runit-helper, runit-run and runit-services in order to have runit integrated in sysv (maybe it&#039;s useless in this case, but i&#039;ll give it a try). So i read the instructions on smarden.org (<a href="https://smarden.org/runit/useinit#sysv" rel="nofollow">https://smarden.org/runit/useinit#sysv</a>), which say to add runsvdir-start; so i edited /etc/inittab:</p><p>#runit-sysv maintscript -- BEGIN<br />SV:123456:respawn:/sbin/runsvdir-start<br />#runit-sysv maintscript -- END</p><p>But: i couldn&#039;t find runsvdir-start in /sbin, nor in /usr/bin, /bin and /usr/sbin... Has the file been removed from runit&#039;s package?</p>]]></description>
			<author><![CDATA[dummy@example.com (francesco)]]></author>
			<pubDate>Sat, 22 Feb 2025 13:18:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=54584#p54584</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53596#p53596</link>
			<description><![CDATA[<p>For reference, here&#039;s what mine look like (using sysvinit). I think they look the same as what GlennW posted, except I put the files in alphabetical order.<br /><strong>Note that it uses Default-Stop, not Default-Start.</strong></p><div class="codebox"><pre><code>#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountfs
# Required-Start:
# Required-Stop:     umountroot
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Turn off swap and unmount all local file systems.
# Description:
### END INIT INFO</code></pre></div><div class="codebox"><pre><code>#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountroot
# Required-Start:
# Required-Stop:
# Should-Stop:       halt reboot kexec
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Mount the root and /usr filesystems read-only.
### END INIT INFO</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Mon, 23 Dec 2024 22:20:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53596#p53596</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53593#p53593</link>
			<description><![CDATA[<p>Sorry again, i&#039;ve just messed up the whole matter. To put it simply: umountfs and umountroot don&#039;t unmount filesystems at shutdown/reboot (therefore resulting in a filesystem recovering at each boot - so if i want to avoid recovering i have to switch to runlevel 1 and unmount filesystems read-only before shutdown/reboot every time [all done via sysrq] -): i&#039;ve setted these services in runlevels 2,3,4,5 without success (no unmounting at all); then i&#039;ve tried runlevels 0,6 and still nothing. I&#039;ve also tries runlevel S and again all runlevels (both services setted on 1,2,3,4,5,0,6 and S). Still nothing.</p>]]></description>
			<author><![CDATA[dummy@example.com (francesco)]]></author>
			<pubDate>Mon, 23 Dec 2024 21:51:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53593#p53593</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53581#p53581</link>
			<description><![CDATA[<p>Sorry, i meant &quot;Default-Start&quot;.</p>]]></description>
			<author><![CDATA[dummy@example.com (francesco)]]></author>
			<pubDate>Sun, 22 Dec 2024 11:40:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53581#p53581</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53580#p53580</link>
			<description><![CDATA[<p>Hello again, i&#039;ve setted 0 and 6 on &quot;Default-Stop&quot; but i still doesn&#039;t unmount the filesystems:<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; <br />#! /bin/sh<br />### BEGIN INIT INFO<br /># Provides:&#160; &#160; &#160; &#160; &#160; umountfs<br /># Required-Start:<br /># Required-Stop:&#160; &#160; &#160;umountroot<br /># Default-Start:&#160; &#160; &#160; &#160; 0 6<br /># Default-Stop:<br /># Short-Description: Turn off swap and unmount all local file systems.<br /># Description:<br />### END INIT INFO</p><p>#! /bin/sh<br />### BEGIN INIT INFO<br /># Provides:&#160; &#160; &#160; &#160; &#160; umountroot<br /># Required-Start:<br /># Required-Stop:<br /># Should-Stop:&#160; &#160; &#160; &#160;halt reboot kexec<br /># Default-Start:&#160; &#160; &#160; 0 6<br /># Default-Stop:<br /># Short-Description: Mount the root and /usr filesystems read-only.<br />### END INIT INFO</p><p>#! /bin/sh<br />### BEGIN INIT INFO<br /># Provides:&#160; &#160; &#160; &#160; &#160; umountnfs<br /># Required-Start:<br /># Required-Stop:&#160; &#160; &#160;umountfs<br /># Should-Stop:&#160; &#160; &#160; &#160;$network $portmap nfs-common<br /># Default-Start:&#160; &#160; &#160; 0 6<br /># Default-Stop:<br /># Short-Description: Unmount all network filesystems except the root fs.<br /># Description:&#160; &#160; &#160; &#160;Also unmounts all virtual filesystems (proc,<br />#&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; devpts, usbfs, sysfs) that are not mounted at the<br />#&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; top level.<br />### END INIT INFO</p>]]></description>
			<author><![CDATA[dummy@example.com (francesco)]]></author>
			<pubDate>Sun, 22 Dec 2024 11:39:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53580#p53580</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53557#p53557</link>
			<description><![CDATA[<p>Hi, Not sure if this will help, but on my open-rc system both of those files have no start and stop is 0 and 6</p><p>/etc/init.d/umountroot</p><div class="codebox"><pre><code>#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountroot
# Required-Start:
# Required-Stop:
# Should-Stop:       halt reboot kexec
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Mount the root and /usr filesystems read-only.
### END INIT INFO

---snip---</code></pre></div><p>added /etc/init.d/umountnfs.sh</p><div class="codebox"><pre><code>#! /bin/sh
### BEGIN INIT INFO
# Provides:          umountnfs
# Required-Start:
# Required-Stop:     umountfs
# Should-Stop:       $network $portmap nfs-common
# Default-Start:
# Default-Stop:      0 6
# Short-Description: Unmount all network filesystems except the root fs.
# Description:       Also unmounts all virtual filesystems (proc,
#                    devpts, usbfs, sysfs) that are not mounted at the
#                    top level.
### END INIT INFO</code></pre></div><p>I added the header for the files because they have different deps... (should stop)</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Sat, 21 Dec 2024 21:50:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53557#p53557</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Which runlevel for umountfs and umountroot (via sysv-rc-conf)?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=53555#p53555</link>
			<description><![CDATA[<p>Hello everybody, i&#039;ll get straigth to the point: i need umountfs and umountroot unmounting the filesystem at shutdown and reboot, so i&#039;ve setted them both on 0 and 6, but it doesn&#039;t work, since at every boot the system recovers the journal. Please can someone help me? Many thanks!</p>]]></description>
			<author><![CDATA[dummy@example.com (francesco)]]></author>
			<pubDate>Sat, 21 Dec 2024 21:19:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=53555#p53555</guid>
		</item>
	</channel>
</rss>
