<?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>BUFFALO TS-HTGL Archives - DemonPenguins Brain</title>
	<atom:link href="https://brain.demonpenguin.co.uk/tag/buffalo-ts-htgl/feed/" rel="self" type="application/rss+xml" />
	<link>https://brain.demonpenguin.co.uk/tag/buffalo-ts-htgl/</link>
	<description>Random Mumblings</description>
	<lastBuildDate>Fri, 07 Dec 2018 13:40:52 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://i0.wp.com/brain.demonpenguin.co.uk/wp-content/uploads/2018/12/DP_favicon.png?fit=20%2C32&#038;ssl=1</url>
	<title>BUFFALO TS-HTGL Archives - DemonPenguins Brain</title>
	<link>https://brain.demonpenguin.co.uk/tag/buffalo-ts-htgl/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">102551891</site>	<item>
		<title>There be Buffalo here&#8230;</title>
		<link>https://brain.demonpenguin.co.uk/2010/03/there-be-buffalo-here/</link>
					<comments>https://brain.demonpenguin.co.uk/2010/03/there-be-buffalo-here/#comments</comments>
		
		<dc:creator><![CDATA[dpadmin]]></dc:creator>
		<pubDate>Tue, 02 Mar 2010 11:12:22 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[tech talk]]></category>
		<category><![CDATA[Buffalo TeraStation]]></category>
		<category><![CDATA[BUFFALO TS-HTGL]]></category>
		<category><![CDATA[HS-DHTGL]]></category>
		<category><![CDATA[Live]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[Pro]]></category>
		<guid isPermaLink="false">https://brain.demonpenguin.co.uk/?p=90</guid>

					<description><![CDATA[<p>The battle to get nfs working on a Buffalo TeraStation Live by updating it's firmware to the Pro version</p>
<p>The post <a href="https://brain.demonpenguin.co.uk/2010/03/there-be-buffalo-here/">There be Buffalo here&#8230;</a> appeared first on <a href="https://brain.demonpenguin.co.uk">DemonPenguins Brain</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">I have had a Buffalo TeraStation Live for several years now, and have always been a bit irritated that I have had to use SMB for mounting the share to my linux boxes (pretty much all of my boxes!). I managed a while ago to install a version of nfs on the box which however was only version 2 so I hit the maximum file size limit of 2GB, a bit of a pain when I have a lot of files over that size.</p>
<p style="text-align: justify;">I was hunting around the web the other day &#8211; as I do on occasion 🙂 &#8211; when I came across <a href="http://forum.buffalo.nas-central.org/viewtopic.php?f=22&amp;t=20431">this thread</a>.</p>
<p style="text-align: justify;">&#8220;A-ha!&#8221; I thinks to me-self! So the TeraStation Pro is essentially the same hardware with different software on it! Not only that the Pro has nfs on it properly!</p>
<p style="text-align: justify;">I duly went and downloaded the latest pro version of the firmware, unzipped it and edited the ini file to:</p>
<pre>[Application]
Title = BUFFALO TS-HTGL Updater Ver.1.33
WaitReboot = 360
WaitFormat = 300
[Target]
ProductID = 0x00002006
Name = HS-DHTGL

[Flags]
VersionCheck = 0

[SpecialFlags]
Debug=1
</pre>
<p style="text-align: justify;">Now run the firmware update! (<em>Note to self, do not have any web sessions open, or be logged in via ssh or telnet whilst doing this or it will be slow and will fail!</em>) This worked a charm, had to turn the machine back on a couple of times as the firmware updated. I logged back into the web front end and went about setting up the nfs options, then mounted them on one of the linux boxes. Have a poke around &#8211; yup all my files are visible, but hang-on a sec, what&#8217;s this? The file owners were all over the place, not what I was expecting.</p>
<p>OK</p>
<pre>chown blah:blah *</pre>
<p style="text-align: justify;">Permission denied! Damn! Time to crack the box again!</p>
<pre>java -jar acp_commander.jar -t 192.168.0.100 -o</pre>
<p style="text-align: justify;">followed by a telnet into the box. Have a look at</p>
<pre>/etc/exports</pre>
<p style="text-align: justify;">and see that the options on the shares are:</p>
<pre>rw,sync,all_squash,anonuid=99,anongid=99,no_subtree_check</pre>
<p style="text-align: justify;">well, that&#8217;s not what I want! SO I edit the options to</p>
<pre>rw,sync,no_root_squash,no_subtree_check</pre>
<p>and</p>
<pre>exportfs -ra</pre>
<p style="text-align: justify;">remount the share, and all works as expected!</p>
<p style="text-align: justify;">Well sort of. As soon as any change is made on the web fronted the nfs server is restarted and the options magically change back to their defaults!</p>
<p>Damn!</p>
<p style="text-align: justify;">OK time to find where the file is being generated from! So looking at</p>
<pre>/etc/init.d/nfs.sh</pre>
<p style="text-align: justify;">we see the usual startup type stuff and lo and behold there is a line that reads</p>
<pre>nas_configgen -c nfs</pre>
<p style="text-align: justify;">Right well I&#8217;ll change that I thought, should only be a script file, but alas it is a binary, so one small change in the script after the offending line:</p>
<pre>perl -pi -w -e \
's/rw,sync,all_squash,anonuid=99,anongid=99,\
no_subtree_check/rw,sync,no_root_squash, \
no_subtree_check/g;' /etc/exports</pre>
<p style="text-align: justify;">&#8211; thanks to &#8220;The Book of Pete&#8221; means that the changes I want are applied to the</p>
<pre>/etc/exports</pre>
<p style="text-align: justify;">file after it is written to the system, and root can go mad with permissions and I can at last start running some backup scripts that will maintain ownership of files as I want it to! After all the box is only for my use on my LAN and not available to the public at large!</p>
<p>The post <a href="https://brain.demonpenguin.co.uk/2010/03/there-be-buffalo-here/">There be Buffalo here&#8230;</a> appeared first on <a href="https://brain.demonpenguin.co.uk">DemonPenguins Brain</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://brain.demonpenguin.co.uk/2010/03/there-be-buffalo-here/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">90</post-id>	</item>
	</channel>
</rss>
