<?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=7686&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Unmount CIFS shares before shutdown]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7686</link>
		<description><![CDATA[The most recent posts in [SOLVED] Unmount CIFS shares before shutdown.]]></description>
		<lastBuildDate>Thu, 12 Feb 2026 20:43:06 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Unmount CIFS shares before shutdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=62120#p62120</link>
			<description><![CDATA[<p>Please excuse me for reopening this thread.</p><p>I reinstalled Devuan Exclaibur 6.1 today.<br />I installed openRC as the init system.</p><p>To unmount my cifs shares during shutdown, I followed the exact same advice given in this post, which worked great last time.<br />After logging in as root with sudo su, I ran the following:</p><div class="codebox"><pre><code>nano /etc/init.d/cifsdown.sh</code></pre></div><p>I filled this script with the following:</p><div class="codebox"><pre><code>#!/bin/sh

umount -l /home/user/Data
umount -l /home/user/NAS
umount -l /home/user/Storage

exit</code></pre></div><p>All mount points are available in my home directory.</p><p>Then I executed the following commands:</p><div class="codebox"><pre><code>chmod +x /etc/init.d/cifsdown.sh
ln -s /etc/init.d/cifsdown.sh /etc/rc0.d/K01cifsdown.sh
ln -s /etc/init.d/cifsdown.sh /etc/rc0.d/K06cifsdown.sh</code></pre></div><p>Despite all this, the system still takes at least 3 minutes to shut down.</p><p>Does anyone have any idea why unmounting the CIFS shares isn&#039;t working this time?</p><p>Thanks in advance for your help.</p><p>greets<br />Roberto</p>]]></description>
			<author><![CDATA[dummy@example.com (Roberto)]]></author>
			<pubDate>Thu, 12 Feb 2026 20:43:06 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=62120#p62120</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Unmount CIFS shares before shutdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60821#p60821</link>
			<description><![CDATA[<p>Hi guys,</p><p>thank you for your help.<br />The tip from Dutch_Master has solved my problem.</p><p>Regards<br />Roberto</p>]]></description>
			<author><![CDATA[dummy@example.com (Roberto)]]></author>
			<pubDate>Mon, 22 Dec 2025 18:26:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60821#p60821</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Unmount CIFS shares before shutdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60776#p60776</link>
			<description><![CDATA[<p>Rename the script cifsdown.sh, copy to /etc/init.d, give it executable rights like you already did then create a symlink in /etc/rc0.d Make sure the sym-link in /etc/rc0.d is named K01cfisdown.sh <strong><em>DO NOT</em></strong> deviate from that name, as the order of shutting down services is important.</p><p>Alternatively, execute the following line by line:</p><div class="codebox"><pre><code>sudo su #only if you use sudo, otherwise just use su instead
mv /etc/NetworkManager/dispatcher.d/pre-down.d/umount.sh /etc/init.d/cifsdown.sh
chmod +x /etc/init.d/cifsdown.sh
ln -s /etc/init.d/cifsdown.sh /etc/rc0.d/K01cifsdown.sh</code></pre></div><p>You can use cp instead of mv to keep a copy in the original location. That&#039;s the difference between cp and mv: cp leaves a copy, mv (move) doesn&#039;t. Make sure you disable the script left there before rebooting:</p><div class="codebox"><pre><code>chmod -x /etc/NetworkManager/dispatcher.d/pre-down.d/umount.sh</code></pre></div><p>HTH!</p>]]></description>
			<author><![CDATA[dummy@example.com (Dutch_Master)]]></author>
			<pubDate>Sun, 21 Dec 2025 13:44:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60776#p60776</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Unmount CIFS shares before shutdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60775#p60775</link>
			<description><![CDATA[<p>Do you really want that script to exit before the unmounting has completed?<br />If not, then don&#039;t use &quot;-l&quot; as umount option.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 21 Dec 2025 13:36:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60775#p60775</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Unmount CIFS shares before shutdown]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=60773#p60773</link>
			<description><![CDATA[<p>I am using Devuan Excalibur and I have mounted various CIFS shares in fstab at startup.<br />Now I want to unmount these shares before shutdown.</p><p>I created the folders Data and Storage in my home directory as mountpoint for theses shares.</p><p>I tried this with the following simple script:</p><div class="codebox"><pre><code>#!/bin/sh

umount -l /home/user/Data
umount -l /home/user/Storage

exit</code></pre></div><p>I saved this script in the folder /etc/NetworkManager/dispatcher.d/pre-down.d and then made it executable with the command</p><div class="codebox"><pre><code>sudo chmod +x /etc/NetworkManager/dispatcher.d/pre-down.d/umount.sh</code></pre></div><p>Nevertheless, it takes about 3 minutes for the system to shut down.</p><p>Thank you in advance for your help an tips.</p><p>Regards<br />Roberto</p>]]></description>
			<author><![CDATA[dummy@example.com (Roberto)]]></author>
			<pubDate>Sun, 21 Dec 2025 12:41:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=60773#p60773</guid>
		</item>
	</channel>
</rss>
