<?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>WiredRevolution.com &#187; shared filesystem</title>
	<atom:link href="http://www.wiredrevolution.com/tag/shared-filesystem/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Mount a VirtualBox shared folder inside a guest VM</title>
		<link>http://www.wiredrevolution.com/virtualbox/mount-a-virtualbox-shared-folder-inside-a-guest-vm?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mount-a-virtualbox-shared-folder-inside-a-guest-vm</link>
		<comments>http://www.wiredrevolution.com/virtualbox/mount-a-virtualbox-shared-folder-inside-a-guest-vm#comments</comments>
		<pubDate>Thu, 09 Sep 2010 15:42:23 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[access]]></category>
		<category><![CDATA[folder]]></category>
		<category><![CDATA[gid]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[guest additions]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[shared]]></category>
		<category><![CDATA[shared filesystem]]></category>
		<category><![CDATA[uid]]></category>
		<category><![CDATA[vboxsf]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=1235</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/virtualbox-icon.png" width="91" height="100" alt="" title="virtualbox" /><br/>VirtualBox makes it easy to share folders between the host OS and various guest virtual machines, but it can be difficult to remember the exact way to go about mounting the shared folder within a guest VM. Here is the way to do it correctly. First off make sure you have installed VirtualBox guest additions. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/fedora/install-virtualbox-guest-additions-on-fedora-12' rel='bookmark' title='Permanent Link: Install VirtualBox Guest Additions on Fedora 12'>Install VirtualBox Guest Additions on Fedora 12</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/clone-a-virtualbox-guest-vm' rel='bookmark' title='Permanent Link: Clone a VirtualBox Guest VM'>Clone a VirtualBox Guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/virtualbox-icon.png" width="91" height="100" alt="" title="virtualbox" /><br/><p>VirtualBox makes it easy to share folders between the host OS and various guest virtual machines, but it can be difficult to remember the exact way to go about mounting the shared folder within a guest VM. Here is the way to do it correctly.</p>
<p>First off make sure you have installed VirtualBox guest additions.</p>
<p>Switch to root or use sudo.<br />
<code>$ su -</code></p>
<p>Create the directory and mount the shared folder to the mount point of your choice. Use the shared name you assigned to it when you originally created the shared folder, in this case it is &#8220;virtualbox_share&#8221;.<br />
<code># mkdir /media/share<br />
# mount virtualbox_share -t vboxsf /media/share</code></p>
<p>You can have this automatically mounted by adding the following line in <strong>/etc/fstab</strong><br />
<code>virtualbox_share /media/share vboxsf defaults 0 0</code></p>
<p>Unfortunately the share will be owned by root. To make it owned and therefore writeable by a user use the following line instead. Replace the uid and gid with your information.<br />
<code>virtualbox_share /media/share vboxsf defaults,uid=500,gid=500 0 0</code></p>
<p>Here&#8217;s how to find your uid:<br />
<code>id -u username</code></p>
<p>And gid:<br />
<code>id -g username</code></p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/fedora/install-virtualbox-guest-additions-on-fedora-12' rel='bookmark' title='Permanent Link: Install VirtualBox Guest Additions on Fedora 12'>Install VirtualBox Guest Additions on Fedora 12</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/clone-a-virtualbox-guest-vm' rel='bookmark' title='Permanent Link: Clone a VirtualBox Guest VM'>Clone a VirtualBox Guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/setup-ssh-access-between-virtualbox-host-and-guest-vms' rel='bookmark' title='Permanent Link: Setup SSH access between VirtualBox Host and Guest VMs'>Setup SSH access between VirtualBox Host and Guest VMs</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/virtualbox/mount-a-virtualbox-shared-folder-inside-a-guest-vm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share a remote filesystem over SSH</title>
		<link>http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=share-a-remote-filesystem-over-ssh</link>
		<comments>http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh#comments</comments>
		<pubDate>Wed, 25 Mar 2009 12:25:24 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[/etc/fstab]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[fusermount]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[remote filesystem]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[shared filesystem]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SSHFS]]></category>
		<category><![CDATA[sshfs-fuse]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=1028</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>You may already be familiar with NFS and Samba for sharing files over a network. While these are both great distributed filesystem solutions, they require extra configuration and setup overhead in order to get them to work. If you want quick and easy access to a remote filesystem then SSHFS may be your best shot. [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/mount-a-virtualbox-shared-folder-inside-a-guest-vm' rel='bookmark' title='Permanent Link: Mount a VirtualBox shared folder inside a guest VM'>Mount a VirtualBox shared folder inside a guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>You may already be familiar with <strong>NFS</strong> and <strong>Samba</strong> for sharing files over a network. While these are both great distributed filesystem solutions, they require extra configuration and setup overhead in order to get them to work. If you want quick and easy access to a remote filesystem then <strong>SSHFS</strong> may be your best shot.</p>
<p>SSHFS (Secure SHell FileSystem) is a file system for Linux capable of operating on files on a remote computer using just a secure shell login. It is based on sftp (SSH File Transfer Protocol).  Setup is easy on the server side, since most servers support SSH out of the box there is nothing to do.  On the client side, mounting the filesystem is as easy as logging in with SSH. The end user can seamlessly and securely interact with remote files as if they were local to your machine.</p>
<p><strong>Advantages of SSHFS over NFS/Samba</strong>:</p>
<ul>
<li>Utilizes SSH and is therefore very secure.</li>
<li>Allows secure access to remote filesystems outside of your local network.</li>
<li>Requires no special configuration on the server side.</li>
</ul>
<p><strong>Disadvantages</strong>:</p>
<ul>
<li>Slightly slower, although the difference is fairly small.</li>
<li>Does not show filesystem usage statistics.</li>
<li>Requires a user account on the server side.</li>
<li>Not a true distributed file system, single point to point sharing.</li>
</ul>
<p>
<h3>Setup</h3>
<p></p>
<p>The first step is to install SSHFS.</p>
<p>In Ubuntu:</p>
<pre>
$ sudo apt-get install sshfs
</pre>
<p>or in Gentoo:</p>
<pre>
$ sudo emerge -av sshfs-fuse
</pre>
<p>Create the mount point on your local machine. This is where you are going to access the remote filesystem.</p>
<pre>
$ sudo mkdir /mnt/share
</pre>
<p>Your user must have permission to access this mountpoint.</p>
<pre>
$ sudo chown ryan /mnt/share
</pre>
<p>
<h3>Start Sharing</h3>
<p></p>
<p>Now use the sshfs command to mount the remote filesystem. If the username is different on the server you are connecting, use the &#8220;username@host:&#8221; format, otherwise you can simply specify &#8220;host:&#8221;. </p>
<pre>
$ sshfs ryan@fileserver:/remote/share /mnt/share
</pre>
<p>If you are not using keys with SSH you will be prompted for a password.</p>
<pre>
ryan@fileserver's password:
</pre>
<p>Once you are finished you can easily unmount the filesystem.</p>
<p>as regular user:</p>
<pre>
$ fusermount -u /mnt/share
</pre>
<p>or as root:</p>
<pre>
$ sudo umount /mnt/share
</pre>
<p>
<h3>Configuration</h3>
<p></p>
<p>You can add an entry for this share to <strong>/etc/fstab</strong> to make the mounting process more seamless.</p>
<pre>
sshfs#ryan@fileserver:/remote/share /mnt/share fuse user,noauto 0 0
</pre>
<p><strong>user</strong> &#8211; allow any user to mount this share.<br />
<strong>noauto</strong> &#8211; stop the shared directory from being automatically mounted at startup. </p>
<p>If you want it automatically mounted, ensure that your SSH configuration uses keys and not passwords so it doesn&#8217;t ask for a password at startup. Once keys are in use you can safely remove the noauto option.</p>
<p>With fstab updated you can now mount the share as a normal user with this simple mount command. Again, if ssh is configured to use passwords you will still be prompted for one.</p>
<pre>
$ mount /mnt/share
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/securely-copy-remote-files-with-scp' rel='bookmark' title='Permanent Link: Securely copy remote files with scp'>Securely copy remote files with scp</a></li>
<li><a href='http://www.wiredrevolution.com/virtualbox/mount-a-virtualbox-shared-folder-inside-a-guest-vm' rel='bookmark' title='Permanent Link: Mount a VirtualBox shared folder inside a guest VM'>Mount a VirtualBox shared folder inside a guest VM</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/how-to-mount-an-iso-disk-image' rel='bookmark' title='Permanent Link: How to mount an ISO disk image'>How to mount an ISO disk image</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Skip network filesystems when searching with find</title>
		<link>http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=skip-network-filesystems-when-searching-with-find</link>
		<comments>http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find#comments</comments>
		<pubDate>Mon, 19 Jan 2009 16:45:06 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[system administration]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[network filesystem]]></category>
		<category><![CDATA[shared filesystem]]></category>
		<category><![CDATA[xdev]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=932</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/>When you run the find command on the root directory of a system you may want to exclude all network filesystems and confine your search to only your local machine. The benefits of this are obvious as it will save you a great amount of time especially if the mounted filesystem is very large. Luckily [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/search-for-files-with-the-find-command' rel='bookmark' title='Permanent Link: Search for files with the find command'>Search for files with the find command</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/sysadmin_icon.png" width="80" height="94" alt="" title="system administration" /><br/><p>When you run the <strong>find</strong> command on the root directory of a system you may want to exclude all network filesystems and confine your search to only your local machine.  The benefits of this are obvious as it will save you a great amount of time especially if the mounted filesystem is very large.</p>
<p>Luckily the find command provides this ability with the &#8216;<strong>-xdev</strong>&#8216; or &#8216;<strong>-mount</strong>&#8216; options.</p>
<p>For example:</p>
<pre>
$ find / -xdev -name myfile.txt
</pre>
<p>This command will recursively search for myfile.txt starting in your root directory and skip all externally mounted filesystems.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/search-for-files-with-the-find-command' rel='bookmark' title='Permanent Link: Search for files with the find command'>Search for files with the find command</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/disable-ext3-boot-time-check-with-tune2fs' rel='bookmark' title='Permanent Link: Disable ext3 boot-time check with tune2fs'>Disable ext3 boot-time check with tune2fs</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/share-a-remote-filesystem-over-ssh' rel='bookmark' title='Permanent Link: Share a remote filesystem over SSH'>Share a remote filesystem over SSH</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/system-administration/skip-network-filesystems-when-searching-with-find/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

