<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux Explore &#187; umount</title>
	<atom:link href="https://blog.linuxexplore.com/tag/umount/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Umount a busy partition</title>
		<link>https://blog.linuxexplore.com/2010/04/24/fuser/</link>
		<comments>https://blog.linuxexplore.com/2010/04/24/fuser/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 18:29:49 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[busy partition]]></category>
		<category><![CDATA[fuser]]></category>
		<category><![CDATA[umount]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=212</guid>
		<description><![CDATA[Check &#38; close the applications which are using any mounted partition or folder If you are using a separate partition for your applications, you need to mount that partition to a folder. Then only you can store &#38; run the application. But if you want to umount that partition again, first you need to close&#8230;]]></description>
				<content:encoded><![CDATA[<h2>Check &amp; close the applications which are using any mounted partition or folder</h2>
<p>If you are using a separate partition for your applications, you need to mount that partition to a folder. Then only you can store &amp; run the application. But if you want to umount that partition again, first you need to close all the applications which are using that mounted partition or folder.</p>
<p>To check all the application running from that partition or folder, just issue a simple command:</p>
<pre>fuser -mv</pre>
<p>or</p>
<pre>fuser -mv</pre>
<p>For example:</p>
<pre>fuser -mv /dev/sda1</pre>
<p>or</p>
<pre>fuser -mv /usr/local/bin</pre>
<p>The above commands can show the output as follows:</p>
<pre style="padding-left:150px;">USER        PID ACCESS COMMAND</pre>
<pre>/dev/sda1:         root       2467 .rce. mingetty</pre>
<pre style="padding-left:150px;">root       2476 .rce. mingetty</pre>
<pre style="padding-left:150px;">root       2502 .rc.. kauditd</pre>
<pre style="padding-left:150px;">root       2506 .rce. sshd</pre>
<pre style="padding-left:150px;">root       2509 .rce. bash</pre>
<p>You can also use the following command:</p>
<pre>fuser -mv /dev/sda1 &gt; /tmp/sda1.pids</pre>
<p>It will store the PIDs of all application running from &#8216;/dev/sda1&#8242; partition.</p>
<p>Now you can simply issue the &#8216;kill&#8217; command to close all the applications forcefully.</p>
<pre>kill -9 `cat /tmp/sda1.pids`</pre>
<p>It will free the partition /dev/sda1 to umount.</p>
<p><strong><span style="color:#ff0000;"> WARNING!!!</span></strong></p>
<p>Don’t use this method on active partitions, it can cause the OS failure. But after reboot it may be recovered.<strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2010/04/24/fuser/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
