<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://buffalo.nas-central.org/w/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Upgrade Debian 5.0 (Lenny) To Debian 6.0 (Squeeze) On Buffalo Linkstation Mini - Revision history</title>
		<link>http://buffalo.nas-central.org/w/index.php?title=Upgrade_Debian_5.0_(Lenny)_To_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.1</generator>
		<lastBuildDate>Sat, 25 May 2013 01:37:31 GMT</lastBuildDate>
		<item>
			<title>Lsuser1985:&amp;#32;Add category `Squeeze`.</title>
			<link>http://buffalo.nas-central.org/w/index.php?title=Upgrade_Debian_5.0_(Lenny)_To_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini&amp;diff=32139&amp;oldid=prev</link>
			<description>&lt;p&gt;Add category `Squeeze`.&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 15:52, 18 January 2013&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Template:Articles|LS-WSGL/R1|Debian|Lenny}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Template:Articles|LS-WSGL/R1|Debian|Lenny&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|Squeeze&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Brick|These instructions may void your warranty.&amp;nbsp; Proceed at your own risk.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Brick|These instructions may void your warranty.&amp;nbsp; Proceed at your own risk.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-21 09:27:31 --&gt;
&lt;!-- diff cache key nascentral_wiki-mwiki_:diff:version:1.11a:oldid:31091:newid:32139 --&gt;
&lt;/table&gt;</description>
			<pubDate>Fri, 18 Jan 2013 15:52:54 GMT</pubDate>			<dc:creator>Lsuser1985</dc:creator>			<comments>http://buffalo.nas-central.org/wiki/Talk:Upgrade_Debian_5.0_(Lenny)_To_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini</comments>		</item>
		<item>
			<title>Rpinchbeck:&amp;#32;Removed screen pipe</title>
			<link>http://buffalo.nas-central.org/w/index.php?title=Upgrade_Debian_5.0_(Lenny)_To_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini&amp;diff=31091&amp;oldid=prev</link>
			<description>&lt;p&gt;Removed screen pipe&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:19, 4 June 2011&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt; Start screen application (if you are disconnected during upgrade, then login again and run &amp;quot;screen -Dr&amp;quot; to resume your session)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt; Start screen application (if you are disconnected during upgrade, then login again and run &amp;quot;screen -Dr&amp;quot; to resume your session)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;echo -e &amp;quot;\n&amp;quot; | &lt;/del&gt;screen&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;nbsp; screen&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt; &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt; &amp;nbsp;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 135:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 135:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Congratulations!&amp;nbsp; Your Buffalo Linkstation Mini should now be running Debian 6.0!'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Congratulations!&amp;nbsp; Your Buffalo Linkstation Mini should now be running Debian 6.0!'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== See Also ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== See Also ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-20 09:32:38 --&gt;
&lt;!-- diff cache key nascentral_wiki-mwiki_:diff:version:1.11a:oldid:31089:newid:31091 --&gt;
&lt;/table&gt;</description>
			<pubDate>Sat, 04 Jun 2011 20:19:02 GMT</pubDate>			<dc:creator>Rpinchbeck</dc:creator>			<comments>http://buffalo.nas-central.org/wiki/Talk:Upgrade_Debian_5.0_(Lenny)_To_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini</comments>		</item>
		<item>
			<title>Rpinchbeck:&amp;#32;Initial draft</title>
			<link>http://buffalo.nas-central.org/w/index.php?title=Upgrade_Debian_5.0_(Lenny)_To_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini&amp;diff=31089&amp;oldid=prev</link>
			<description>&lt;p&gt;Initial draft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Template:Articles|LS-WSGL/R1|Debian|Lenny}}&lt;br /&gt;
&lt;br /&gt;
{{Brick|These instructions may void your warranty.  Proceed at your own risk.}}&lt;br /&gt;
&lt;br /&gt;
[[Image:LS_WSGL.jpg|thumb|right|Linkstation Mini]]&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
The following process upgrades an existing installation of [http://en.wikipedia.org/wiki/Debian Debian] 5.0 on a [[:Category:LS-WSGL/R1|Buffalo Linkstation Mini]] (model LS-WSxxxxGL/R1) to Debian 6.0 (Squeeze) with the Debian [http://en.wikipedia.org/wiki/Linux_kernel Linux] kernel (version 2.6.32-31).&lt;br /&gt;
'''No disassembly required.'''&lt;br /&gt;
Here is how the process works:&lt;br /&gt;
# Update package sources&lt;br /&gt;
# Upgrade distribution&lt;br /&gt;
# Install new kernel&lt;br /&gt;
# Restart device&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
# Buffalo LinkStation Mini models LS-WSxxxxGL/R1 running Debian 5.0 ('''LS-WSXxxxxTL/R1 models will not work''')&lt;br /&gt;
#* This process was tested with model LS-WS1.0TGL/R1, but other models may work as well&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
&amp;lt;b&amp;gt;&lt;br /&gt;
Note: Do not attempt to execute the following commands as a single script.&lt;br /&gt;
Instead, copy and paste each block of commands into a shell window and monitor the resulting output for errors&lt;br /&gt;
&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Warning|&amp;lt;b&amp;gt;These instructions might not work depending on how you have configured your Debian installation.  &lt;br /&gt;
Many problems may occur including failure to start the network interface (rendering the device unreachable).  &lt;br /&gt;
You may need to disassemble the device and mount the hard drives in another computer to correct any problems that occur.  &lt;br /&gt;
Proceed at your own risk.&amp;lt;/b&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Assign IP Address of device to environment variable&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 IP_ADDRESS=192.168.1.77&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Use SSH to login as root&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 ssh root@${IP_ADDRESS}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Change package source to Debian 6 repository (replace lenny with squeeze in /etc/apt/sources.list)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 SED_FILE='/etc/apt/sources.list'&lt;br /&gt;
 SED_SEARCH='(\s)(lenny)(\s|/)'&lt;br /&gt;
 SED_REPLACE='\1squeeze\3'&lt;br /&gt;
 sed -r &amp;quot;s~${SED_SEARCH}~${SED_REPLACE}~&amp;quot; -i &amp;quot;${SED_FILE}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Update package lists (from Debian 6.0 repository)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 apt-get update&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Install screen package (to recover from possible disconnect during upgrade)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 apt-get -q -y install screen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Start screen application (if you are disconnected during upgrade, then login again and run &amp;quot;screen -Dr&amp;quot; to resume your session)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 echo -e &amp;quot;\n&amp;quot; | screen&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Install packages to support upgrade process&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 apt-get -q -y install apt aptitude dpkg&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Upgrade to Debian 6 (when prompted with questions, choose default answers)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 apt-get -q -y dist-upgrade&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Workaround bug in Debian 6 (/etc/network/run links to /dev/shm/network, but directory is missing, which prevents network interfaces from starting)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 mv /etc/network/run run.original&lt;br /&gt;
 mkdir /etc/network/run&lt;br /&gt;
 touch /etc/network/run/ifstate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Install custom kernel (Debian 6.0 kernel 2.6.32-31)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 cd /&lt;br /&gt;
 wget http://downloads.buffalo.nas-central.org/Users/rpinchbeck/lsmini/debian/6.0/kernel-2.6.32-31-debian-lsmini.tar.gz&lt;br /&gt;
 tar --extract --verbose --same-permissions --gzip --file kernel-2.6.32-31-debian-lsmini.tar.gz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Wait for RAID synchronization to complete&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 while egrep -iq '(recovery)|(resync)' /proc/mdstat; do&lt;br /&gt;
     clear&lt;br /&gt;
     cat /proc/mdstat&lt;br /&gt;
     sleep 5&lt;br /&gt;
 done&lt;br /&gt;
 clear&lt;br /&gt;
 cat /proc/mdstat&lt;br /&gt;
 sync&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Restart device&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 sync; reboot; logout&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Congratulations!  Your Buffalo Linkstation Mini should now be running Debian 6.0!'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Install_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini|Install Debian 6.0 (Squeeze) On Linkstation Mini]]&lt;br /&gt;
* [[Revert Buffalo Linkstation Mini To Stock Firmware]]&lt;br /&gt;
* [[Install_Debian_5.0_(Lenny)_On_Buffalo_Linkstation_Mini|Install Debian 5.0 (Lenny) On Linkstation Mini]]&lt;br /&gt;
* [[Install_Ubuntu_9.04_(Jaunty_Jackalope)_On_Buffalo_Linkstation_Mini|Install Ubuntu 9.04 On Linkstation Mini]]&lt;br /&gt;
* [[LS_Mini:_Install_Gentoo|Install Gentoo On Linkstation Mini]]&lt;br /&gt;
* [[GenLink for ARM9]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
* [http://www.debian.org Debian website]&lt;br /&gt;
* [http://www.debian-administration.org/articles/426 Installing new Debian systems using debootstrap]&lt;br /&gt;
* [http://buffalo-nas-hacking.googlecode.com Custom initrd which boots from /dev/md13]&lt;/div&gt;</description>
			<pubDate>Sat, 04 Jun 2011 18:29:31 GMT</pubDate>			<dc:creator>Rpinchbeck</dc:creator>			<comments>http://buffalo.nas-central.org/wiki/Talk:Upgrade_Debian_5.0_(Lenny)_To_Debian_6.0_(Squeeze)_On_Buffalo_Linkstation_Mini</comments>		</item>
	</channel>
</rss>