<?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>mount filesystem linux Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/mount-filesystem-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 21 Jun 2018 20:43:03 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to Mount/Unmount a File System in Linux</title>
		<link>https://www.osradar.com/how-to-mount-unmount-a-file-system-in-linux/</link>
					<comments>https://www.osradar.com/how-to-mount-unmount-a-file-system-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Thu, 26 Apr 2018 14:06:58 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[mount filesystem]]></category>
		<category><![CDATA[mount filesystem linux]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=2778</guid>

					<description><![CDATA[<p>&#8211;blocLinux is a really powerful system in case of the storage management. Because of all the systems, it has to go through, Linux ensures the top-notch security of all the OS in the world. If you connect a SATA/PATA or SCSI device, you can’t access it directly. You have to manually mount the filesystem to [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-mount-unmount-a-file-system-in-linux/">How to Mount/Unmount a File System in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>&#8211;blocLinux is a really powerful system in case of the storage management. Because of all the systems, it has to go through, Linux ensures the top-notch security of all the OS in the world. If you connect a SATA/PATA or SCSI device, you can’t access it directly. You have to manually mount the filesystem to get access to it. Now, let’s take a look how to mount the filesystem.</p>
<h3>Mounting a filesystem</h3>
<p>At first, connect the device to your Linux system. We&#8217;ll be using &#8220;hwinfo&#8221; for this purpose. This tool is available in Ubuntu, Fedora, and OpenSUSE.</p>
<pre>sudo apt install hwinfo</pre>
<p><img loading="lazy" class="size-full wp-image-2782 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/04/install-hwinfo.png" alt="" width="979" height="335" srcset="https://www.osradar.com/wp-content/uploads/2018/04/install-hwinfo.png 979w, https://www.osradar.com/wp-content/uploads/2018/04/install-hwinfo-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/install-hwinfo-768x263.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/install-hwinfo-696x238.png 696w" sizes="(max-width: 979px) 100vw, 979px" /></p>
<p>Identify the disk by running the following command:</p>
<pre>hwinfo --block --short</pre>
<p><img loading="lazy" class="size-full wp-image-2780 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/04/list-connected-devices.png" alt="" width="975" height="291" srcset="https://www.osradar.com/wp-content/uploads/2018/04/list-connected-devices.png 975w, https://www.osradar.com/wp-content/uploads/2018/04/list-connected-devices-300x90.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/list-connected-devices-768x229.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/list-connected-devices-696x208.png 696w" sizes="(max-width: 975px) 100vw, 975px" /></p>
<p>Now, run this command to mount the file system:</p>
<pre>sudo mount /dev/sdb</pre>
<p>Generally, you don’t have to specify the file system type as Linux will automatically understand the file system type. In the case of above command, you can also specify the mount point for the drive. For example, running command will mount the “/dev/sdb” as “/data”.</p>
<pre>sudo mount /dev/sdb /data</pre>
<p>Before using other options, you need to understand the structure of “mount”.</p>
<pre>mount [-t file_system_type] [-o mount_options] device mount_point_directory</pre>
<p>There are several available options with “mount” command.</p>
<ul>
<li><strong>remount</strong> – Unmounts and mounts a file system. It’s really useful if you have made changes in the “/etc/fstab” file. Use this command to apply the changes.</li>
<li><strong>exec</strong>, <strong>noexec</strong> – You can define whether any executable can be run from the file system or not.</li>
<li><strong>ro</strong>, <strong>rw</strong> – You can make sure whether the file system will be read-only (<strong>ro</strong>) or writable (<strong>rw</strong>).</li>
</ul>
<h3>Unmounting the file system</h3>
<p>After using the file system, it’s better to unmount it again if you’re not using. Use this command:</p>
<pre>sudo umount /dev/sdb</pre>
<p>You can also use the mount point for unmounting the file system.</p>
<pre>sudo umount /data</pre>
<p>If you get an error like the directory is being used by other apps, use this command to identify the processes that are accessing the file system at the time.</p>
<h3>Force-unmounting the file system</h3>
<p>In some scenario, the kernel sees the file system as “busy”, no matter whatever you do. In that case, forced unmounting is the only option. Use this command for force-unmount:</p>
<pre>umount -f /dev/sdb</pre>
<p>This should be used as a last resort and you&#8217;re sure of it.</p>
<h3>List mounted file systems</h3>
<p>If you’re interested in finding out all the available (mounted) file systems, run this command:</p>
<pre>mount</pre>
<p><img loading="lazy" class="size-full wp-image-2781 aligncenter" src="https://www.osradar.com/wp-content/uploads/2018/04/all-mounted-file-systems.png" alt="" width="980" height="668" srcset="https://www.osradar.com/wp-content/uploads/2018/04/all-mounted-file-systems.png 980w, https://www.osradar.com/wp-content/uploads/2018/04/all-mounted-file-systems-300x204.png 300w, https://www.osradar.com/wp-content/uploads/2018/04/all-mounted-file-systems-768x523.png 768w, https://www.osradar.com/wp-content/uploads/2018/04/all-mounted-file-systems-218x150.png 218w, https://www.osradar.com/wp-content/uploads/2018/04/all-mounted-file-systems-696x474.png 696w, https://www.osradar.com/wp-content/uploads/2018/04/all-mounted-file-systems-616x420.png 616w" sizes="(max-width: 980px) 100vw, 980px" /></p>
<p>Enjoy!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-mount-unmount-a-file-system-in-linux/">How to Mount/Unmount a File System in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-mount-unmount-a-file-system-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
