<?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>Christians Blog &#187; Home Network</title>
	<atom:link href="http://doktormadsen.dk/wp/category/home-network/feed/" rel="self" type="application/rss+xml" />
	<link>http://doktormadsen.dk/wp</link>
	<description>Stuff about stuff</description>
	<lastBuildDate>Fri, 20 Jan 2012 17:28:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linkstation on Linux</title>
		<link>http://doktormadsen.dk/wp/2010/06/linkstation-on-linux/</link>
		<comments>http://doktormadsen.dk/wp/2010/06/linkstation-on-linux/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 11:28:36 +0000</pubDate>
		<dc:creator>chr_madsen</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Home Network]]></category>

		<guid isPermaLink="false">http://doktormadsen.dk/wp/?p=48</guid>
		<description><![CDATA[A brief mini-HOWTO on how to mount Buffalo Linkstation on Ubuntu Linux.]]></description>
			<content:encoded><![CDATA[<p>I got myself a Buffalo Linkstation (NAS) and got some Linux experiences with it the tough way. Especially I&#8217;ve had my share of learning, man&#8217;ing when trying to mount this beast. So I hope that sharing this will help somebody getting an easy experience.</p>
<p><em>This is based on a live Ubuntu 10.04. Linux is not officially supported by Buffalo and what you do is on your own risk.<br />
</em></p>
<h2>Prerequisites</h2>
<p>To be able to mount, you need the smbfs package as it contains mount.cifs:<br />
<span style="background-color: #ff99cc"></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo apt-get install smbfs</div></div>
<p></span></p>
<h2>Mounting Linkstation</h2>
<p>We need to ensure that some important things are in place when mounting</p>
<p><span style="background-color: #ffff00"><strong>The IP address is 192.168.1.36 and the shared directory is &#8220;share&#8221;</strong></span></p>
<p>First argument is</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">//192.168.1.36/share</div></div>
<p>. Remember the leading double slash or it will fail.</p>
<p><strong><span style="background-color: #ffff00">We would like to mount at /media/linkstation</span></strong><br />
Second argument is</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/media/linkstation</div></div>
<p>. Remember to create the directory.</p>
<p><strong><span style="background-color: #ffff00">The charset must be correct. Otherwise, &#8220;Røde Mor&#8221; becomes &#8220;R├╕de Mor&#8221;</span></strong><br />
use options</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">iocharset=utf8,codepage=cp437</div></div>
<p>. Don&#8217;t ask me why, but I guess that it has something to do with the codepage that Windows uses</p>
<p><span style="background-color: #ffff00"><strong>The user/group must match be &#8220;ubuntu&#8221; (default is root)</strong></span><br />
use options</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">uid=999,gid=999</div></div>
<p>. &#8220;999&#8243; is looked up in</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/etc/passwd</div></div>
<p>.</p>
<p><strong><span style="background-color: #ffff00">Linkstation shall use the guest account and avoid password</span></strong><br />
option</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">guest</div></div>
<p>now, the full command line becomes</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;span style=&quot;background-color: #ff99cc&quot;&gt;sudo mount.cifs //192.168.1.36/share /media/linkstation -oguest,uid=999,gid=999,iocharset=utf8,codepage=cp437&lt;/span&gt;</div></div>
<p>Remember the -o or the options will be silently ignored :pinch:</p>
<p>Now, the Linkstation is nicely mounted and the file names are encoded correctly. To unmount, simply type</p>
<p><span style="background-color: #ff99cc"></p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo unmount /media/linkstation</div></div>
<p></span></p>
<p><em>Happy Linkstation&#8217;ing!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://doktormadsen.dk/wp/2010/06/linkstation-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

