<?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>Phuket Information Technology Blog</title>
	<atom:link href="http://www.phuket-data-wizards.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phuket-data-wizards.com/blog</link>
	<description>Thailand Data Recovery News, Phuket IT, Wired and Wireless Networks and other computer stuff</description>
	<lastBuildDate>Wed, 28 Sep 2011 12:24:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Warning: 3BB installs routers with WEP encryption</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/09/28/warning-3bb-installs-routers-with-wep-encryption/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/09/28/warning-3bb-installs-routers-with-wep-encryption/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 12:22:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quality Control]]></category>
		<category><![CDATA[3BB]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[WEP]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[WPA]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=518</guid>
		<description><![CDATA[Warning to all 3BB customers: 3BB routinely installs ADSL routers (recently Huawei) where wireless is protected by a WEP key.  It only takes a few minutes for a skilled IT person on a vacation to break into a WEP-protected network just for fun from the house or cafe nearby. Dangers: if you have shared unprotected [...]]]></description>
			<content:encoded><![CDATA[<p>Warning to all 3BB customers: 3BB routinely installs ADSL routers (recently Huawei) where wireless is protected by a WEP key.  It only takes a few minutes for a skilled IT person on a vacation to break into a WEP-protected network just for fun from the house or cafe nearby.<br />
Dangers: if you have shared unprotected content within your network it will be accessible to such person. If he will carry some malicious activity using ADSL connection belonging to you, activity might be attributed to you. Just think about the implications of someone downloading child porn or plotting a terrorist attack using your connection!<br />
Don&#8217;t say &#8220;nobody have a reason to hack me&#8221;, upgrade you security to WPA at least, or WPA2 if it&#8217;s supported by your router and wireless adapter. Use a good password that cannot be found in any dictionary. For a power user it only takes a couple of minutes to make the settings right.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/09/28/warning-3bb-installs-routers-with-wep-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SpeedTest vs. DSLReports Analysis</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/09/17/speedtest-vs-dslreports-analysis/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/09/17/speedtest-vs-dslreports-analysis/#comments</comments>
		<pubDate>Sat, 17 Sep 2011 07:21:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quality Control]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[DSLReports]]></category>
		<category><![CDATA[Phuket Internet Speed]]></category>
		<category><![CDATA[SpeedTest]]></category>
		<category><![CDATA[true]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=493</guid>
		<description><![CDATA[I decided to do a little check on this article: http://www.phuketgazette.net/archives/articles/2011/article10972.html Update: details for SpeedTest.net are for Los Angeles as well now. SpeedTest.net Latency Get http://ndt.dhspeedtest.com/flash/speedtest/latency.txt?x=&#60;some sort of timestamp&#62; (this request repeats 10 times) Last-Modified: Fri, 28 Jul 2006 23:31:21 GMT Download Speed Download in 1 thread http://ndt.dhspeedtest.com/flash/speedtest/random750x750.jpg Download in 2 threads http://ndt.dhspeedtest.com/flash/speedtest/random750x750.jpg Note: URL is for Los Angeles [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to do a little check on this article:<br />
<a href="http://www.phuketgazette.net/archives/articles/2011/article10972.html">http://www.phuketgazette.net/archives/articles/2011/article10972.html</a></p>
<p><strong>Update: details for SpeedTest.net are for Los Angeles as well now.</strong></p>
<h3>SpeedTest.net</h3>
<h5>Latency</h5>
<p>Get http://ndt.dhspeedtest.com/flash/speedtest/latency.txt?x=&lt;some sort of timestamp&gt; (this request repeats 10 times)</p>
<p><span style="color: #993300;">Last-Modified: Fri, 28 Jul 2006 23:31:21 GMT</span></p>
<h5>Download Speed</h5>
<ul>
<li>Download in 1 thread http://ndt.dhspeedtest.com/flash/speedtest/random750x750.jpg</li>
<li>Download in 2 threads http://ndt.dhspeedtest.com/flash/speedtest/random750x750.jpg</li>
</ul>
<p>Note: URL is for Los Angeles server</p>
<h5>Upload Speed</h5>
<ul>
<li>Upload in 2 threads 29705 bytes of random data</li>
<li>Upload in 2 threads 29705 bytes of random data</li>
<li>Upload in 2 threads 95251 byte of random data</li>
<li>Upload in 2 threads 95251 byte of random data</li>
</ul>
<p>Note: the download and upload patterns differ for different locations!</p>
<h3>DSLReports</h3>
<h5>Latency</h5>
<p>Get http://www.dslreports.com/ft?c=gd&amp;o=records&amp;limit=4&amp;f=myuid</p>
<p><span style="color: #993300;">Cache-Control: no-cache, max-age=0</span></p>
<h5>Download Speed</h5>
<ul>
<li>Downloading http://dslreports.linkline.com/SpeedTests/random750x750.jpg?x=0.928372583817691</li>
<li>Downloading http://dslreports.linkline.com/SpeedTests/random500x500.jpg?x=0.663370833266526</li>
</ul>
<p>Note: URL is for Los Angeles server</p>
<h5>Upload Speed and Compression Check</h5>
<ul>
<li>Uploading 100009 bytes of zeros</li>
<li>Uploading 50009 bytes of random data</li>
<li>Uploading 100009 bytes of random data</li>
</ul>
<h3>Conclusions</h3>
<p>Upload and download speed differences are most likely not related to any caching; data downloaded and uploaded is random. Numbers are different because DSLReports uses single thread and SpeedTest.net uses 2-4 threads. One question remains: do both sites do any checksumming on the downloaded data to assure it is really what their servers send them or it&#8217;s a stale copy from some cache?</p>
<p>Latency: SpeedTest server does not put the proper Cache-Control: directives in the reply, therefore the latency measurement is more likely to be affected by caching. DSLReports put the proper directive in the reply but that does not mean the latency result cannot be faked intentionally by the ISP proxy. It is possible to configure a proxy server to always use cached result for a given URL, ignoring directives from a Web server; but in that case the proxy would not be RFC2616-compliant anymore.</p>
<blockquote>
<h3><a id="sec13.3">RFC2616, 13.3</a> Validation Model</h3>
<p>When a cache has a stale entry that it would like to use as a response to a client&#8217;s request, it first has to check with the origin server (or possibly an intermediate cache with a fresh response) to see if its cached entry is still usable.</p></blockquote>
<p>Please note what for the latency measurement the content returned is not important; if proxy complies with RFC2616 it MUST check the resource on the original server before returning the resource and this means HTTP &#8220;ping&#8221; value would be about right (it will consist of round-trip time from the client to the proxy + round-trip time from proxy to the original server).</p>
<p>On the other hand, if the proxy is not RFC2616 compliant, I do not see any advantage of DSLReports over SpeedTest.net; it seems that DSLReports latency can be faked as well if ISP wishes to do so.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/09/17/speedtest-vs-dslreports-analysis/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LCD TV and Monitor Repair</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/09/09/lcd-tv-and-monitor-repair/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/09/09/lcd-tv-and-monitor-repair/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 08:41:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Promotion]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[LED]]></category>
		<category><![CDATA[power on]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[Samsung]]></category>
		<category><![CDATA[TV]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=488</guid>
		<description><![CDATA[Since we started our LCD repair service, we fixed several dozens of monitors and LCD TVs, mostly Samsungs. The most common failure is a power-on problem. It usually starts like the monitor/TV does not power on immediately and needs more and more time to warm up; at the end it does not power up at [...]]]></description>
			<content:encoded><![CDATA[<p>Since we started our LCD repair service, we fixed several dozens of monitors and LCD TVs, mostly Samsungs. The most common failure is a power-on problem. It usually starts like the monitor/TV does not power on immediately and needs more and more time to warm up; at the end it does not power up at all, screen stays dark and only the power LED is blinking on some models. Other models with the same failure power on just fine but the backlight brightness flickers. The price for the repair of this problem usually varies from 1000 to 1500 baht.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/09/09/lcd-tv-and-monitor-repair/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mobile Number Porting from True Move to AIS</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/09/09/mobile-number-porting-from-true-move-to-ais/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/09/09/mobile-number-porting-from-true-move-to-ais/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 06:11:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quality Control]]></category>
		<category><![CDATA[ais]]></category>
		<category><![CDATA[Consumer Protection Board]]></category>
		<category><![CDATA[MNP]]></category>
		<category><![CDATA[mobil number portability]]></category>
		<category><![CDATA[true move]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=483</guid>
		<description><![CDATA[I am battling for almost a month already with both True Move and AIS to port my number. The porting request was rejected already 3 times with the reason sent by SMS from AIS: &#8230;your name or your mobile phone number is incorrect&#8230; What exactly is incorrect is unknown and AIS representative claims the True [...]]]></description>
			<content:encoded><![CDATA[<p>I am battling for almost a month already with both True Move and AIS to port my number. The porting request was rejected already 3 times with the reason sent by SMS from AIS: &#8230;your name or your mobile phone number is incorrect&#8230;<br />
What exactly is incorrect is unknown and AIS representative claims the True Move do not give this information to them. Also AIS representative spoke directly to True Move call center (but only after I insisted they do it) to verify all contact details. The result &#8211; another rejection! The True representative said on the phone what if AIS sends the name in the request like &#8220;JOHN DOE&#8221; but it&#8217;s recorded in the True database as &#8220;John Doe&#8221;, they will reject the request. Same if it&#8217;s &#8220;Mr. John Doe against &#8220;Mr.John Doe&#8221; it will be rejected as well! And this has nothing to do with the computer unable to match the records &#8211; it&#8217;s the live person who makes the decision. Also it seems the name on file in True Move is kept in more than one location, so it&#8217;s possible that your name is spelled right in their main database  and wrong on the invoice they sent you!<br />
I&#8217;ve sent the complaint regarding this case to the <a href="http://www.ocpb.go.th/">Office of the Consumer Protection Board</a> by email listed on the bottom of their main page and I hope the people experiencing the same difficulties will do it as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/09/09/mobile-number-porting-from-true-move-to-ais/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phuket electronics recycling &#8211; win the prize!</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/09/06/phuket-electronics-recycling-win-the-prize/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/09/06/phuket-electronics-recycling-win-the-prize/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 15:33:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Phuket IT Events]]></category>
		<category><![CDATA[Useful Resources]]></category>
		<category><![CDATA[e-waste]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[Phuket]]></category>
		<category><![CDATA[recycling]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=480</guid>
		<description><![CDATA[Phuket News tells us about the new way to recycle your electronic trash. You can even win the prize for that! The project has a Facebook page. I wonder what they are going to do with the item #84001 though&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.thephuketnews.com/wp-post.php?id=26672">Phuket News tells us about the new way to recycle your electronic trash</a>. You can even win the prize for that!<br />
The project has a <a href="https://www.facebook.com/WEEE.CAN.DO">Facebook page</a>. I wonder what they are going to do with the item #84001 though&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/09/06/phuket-electronics-recycling-win-the-prize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>True Cable (DOCSIS) Internet Hardware</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/09/05/true-cable-docsis-internet-hardware/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/09/05/true-cable-docsis-internet-hardware/#comments</comments>
		<pubDate>Mon, 05 Sep 2011 11:23:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quality Control]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cable]]></category>
		<category><![CDATA[docsis]]></category>
		<category><![CDATA[hardward]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[true]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=477</guid>
		<description><![CDATA[The hardware we saw so far: Cisco EPC2325 Motorola Surfboard SB6120E Warning: IP address you will get on WAN interface is from private ip address range (10.x.x.x)! Therefore no port forwarding would be possible (probably the most common use for it on the island is remote access to the CCTV recorders and IP cameras); problems [...]]]></description>
			<content:encoded><![CDATA[<p>The hardware we saw so far:</p>
<ul>
<li><a href="http://www.cisco.com/web/consumer/support/modem_DPC2325.html">Cisco EPC2325</a></li>
<li><a href="http://www.motorola.com/Consumers/US-EN/Consumer-Product-and-Services/Cable-Modems-and-Gateways/SURFboard-Cable-Modem-SB6120-US-EN">Motorola Surfboard SB6120E</a></li>
</ul>
<p>Warning: IP address you will get on WAN interface is from <a href="http://en.wikipedia.org/wiki/Private_network">private ip address range</a> (10.x.x.x)! Therefore no port forwarding would be possible (probably the most common use for it on the island is remote access to the CCTV recorders and IP cameras); problems with VPN  etc&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/09/05/true-cable-docsis-internet-hardware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ZTE MF180 (AIS branded)</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/08/31/zte-mf180-ais-branded/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/08/31/zte-mf180-ais-branded/#comments</comments>
		<pubDate>Wed, 31 Aug 2011 06:21:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quality Control]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[ais]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mf180]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[sharing]]></category>
		<category><![CDATA[wireless]]></category>
		<category><![CDATA[zte]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=474</guid>
		<description><![CDATA[Just tested ZTE MF180 3G modem provided by AIS with our 3G  sharing wireless router. Download speed ~ 2.5 Mbps, upload ~ 400kbps (to Prince of Songkla University, Phuket). Works under Ubuntu Linux too.]]></description>
			<content:encoded><![CDATA[<p>Just tested <a href="http://www.zte.co.nz/main/MF180.htm">ZTE MF180</a> 3G modem provided by AIS with our 3G  sharing wireless router. Download speed ~ 2.5 Mbps, upload ~ 400kbps (to Prince of Songkla University, Phuket). Works under Ubuntu Linux too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/08/31/zte-mf180-ais-branded/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>AIS 3G on Phuket</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/07/17/ais-3g-on-phuket/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/07/17/ais-3g-on-phuket/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 10:05:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Phuket IT Events]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[ais]]></category>
		<category><![CDATA[Phuket]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=453</guid>
		<description><![CDATA[It seems AIS intends to deploy 3G connectivity island-wide from July 28.]]></description>
			<content:encoded><![CDATA[<p>It seems AIS intends to deploy 3G connectivity island-wide from July 28.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/07/17/ais-3g-on-phuket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TOT problems with HTTPS traffic</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/07/17/tot-problems-with-https-traffic/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/07/17/tot-problems-with-https-traffic/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 04:10:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quality Control]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[TOT]]></category>
		<category><![CDATA[web site]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=447</guid>
		<description><![CDATA[Since July 17 secure web sites work very slowly on TOT ADSL connection. Looks like the problem is Thailand-wide: http://www.thaivisa.com/forum/topic/483338-tot-blocking-access-to-secure-web-sites/ It is definitely not blocking, but perhaps traffic shaping gone wrong? We noticed all the other sites are loading a lot slower, and HTTPS protocol is very sensitive to the packet loss&#8230;]]></description>
			<content:encoded><![CDATA[<p>Since July 17 secure web sites work very slowly on TOT ADSL connection. Looks like the problem is Thailand-wide:<br />
<a href="http://www.thaivisa.com/forum/topic/483338-tot-blocking-access-to-secure-web-sites/">http://www.thaivisa.com/forum/topic/483338-tot-blocking-access-to-secure-web-sites/<br />
</a>It is definitely not blocking, but perhaps traffic shaping gone wrong? We noticed all the other sites are loading a lot slower, and HTTPS protocol is very sensitive to the packet loss&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/07/17/tot-problems-with-https-traffic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Matching Linux ata numbers to the device names</title>
		<link>http://www.phuket-data-wizards.com/blog/2011/07/16/matching-linux-ata-numbers-to-the-device-names/</link>
		<comments>http://www.phuket-data-wizards.com/blog/2011/07/16/matching-linux-ata-numbers-to-the-device-names/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 11:13:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Data Recovery]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[ata]]></category>
		<category><![CDATA[device name]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[raid recovery]]></category>
		<category><![CDATA[raid5]]></category>

		<guid isPermaLink="false">http://www.phuket-data-wizards.com/blog/?p=440</guid>
		<description><![CDATA[Many thanks to Dirk Tilger for the information on his blog. I am just providing the more manageable commands to type Recently we had to recover data from a 8-drive soft-RAID5 on Linux. It had 3 devices failed out of 8. 2 of the drives just had some bad sectors on them. The problem is, [...]]]></description>
			<content:encoded><![CDATA[<p>Many thanks to Dirk Tilger for the <a href="http://miriup.de/index.php?option=com_content&amp;view=article&amp;id=84%3Amapping-linux-kernel-ata-errors-to-a-device&amp;catid=8%3Alinux&amp;Itemid=25&amp;lang=en">information on his blog</a>. I am just providing the more manageable commands to type <img src='http://www.phuket-data-wizards.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Recently we had to recover data from a 8-drive soft-RAID5 on Linux. It had 3 devices failed out of 8. 2 of the drives just had some bad sectors on them. The problem is, the Linux kernel reports errors on the device as ata channel numbers, for example as &#8220;ata1.00&#8243;. All 8 drives were the same model, the serial number is not reported via dmesg, so how to know the device name (like /dev/sda) that is causing these error messages?</p>
<p>The command</p>
<pre>grep '[0-9]' /sys/class/scsi_host/host{0..9}/unique_id</pre>
<p>will provide output like this:</p>
<pre>/sys/class/scsi_host/<span style="color: #0000ff;">host0</span>/unique_id:<span style="color: #0000ff;">1</span>
/sys/class/scsi_host/<span style="color: #0000ff;">host1</span>/unique_id:<span style="color: #0000ff;">2</span>
/sys/class/scsi_host/<span style="color: #0000ff;">host2</span>/unique_id:<span style="color: #0000ff;">0</span>
/sys/class/scsi_host/<span style="color: #0000ff;">host3</span>/unique_id:<span style="color: #0000ff;">0</span>
/sys/class/scsi_host/<span style="color: #0000ff;">host4</span>/unique_id:<span style="color: #0000ff;">3</span>
/sys/class/scsi_host/<span style="color: #0000ff;">host5</span>/unique_id:<span style="color: #0000ff;">4</span>
/sys/class/scsi_host/<span style="color: #0000ff;">host6</span>/unique_id:<span style="color: #0000ff;">5</span>
/sys/class/scsi_host/<span style="color: #0000ff;">host7</span>/unique_id:<span style="color: #0000ff;">6</span></pre>
<p>so we can match the unique id used in kernel error messages to the host number. Then the command:</p>
<pre>ls -l /sys/block/sd*</pre>
<p>Will show us which device name belongs to which host number:</p>
<pre>/sys/block/sda -&gt; ../devices/pci0000:00/0000:00:13.2/usb1/1-6/1-6:1.0/host2/target2:0:0/2:0:0:0/block/sda
/sys/block/sdb -&gt; ../devices/pci0000:00/0000:00:13.2/usb1/1-8/1-8:1.0/host3/target3:0:0/3:0:0:0/block/sdb
/sys/block/sdc -&gt; ../devices/pci0000:00/0000:00:12.0/<span style="color: #0000ff;">host6</span>/target6:0:0/6:0:0:0/block/<span style="color: #0000ff;">sdc</span>
/sys/block/sdd -&gt; ../devices/pci0000:00/0000:00:13.2/usb1/1-8/1-8:1.0/host3/target3:0:0/3:0:0:1/block/sdd
/sys/block/sde -&gt; ../devices/pci0000:00/0000:00:13.2/usb1/1-8/1-8:1.0/host3/target3:0:0/3:0:0:2/block/sde
/sys/block/sdf -&gt; ../devices/pci0000:00/0000:00:13.2/usb1/1-8/1-8:1.0/host3/target3:0:0/3:0:0:3/block/sdf
/sys/block/sdg -&gt; ../devices/pci0000:00/0000:00:12.0/<span style="color: #0000ff;">host7</span>/target7:0:0/7:0:0:0/block/<span style="color: #0000ff;">sdg</span></pre>
<p>From these two outputs we can see that the unique id 6 maps to host7, and host7 maps to /dev/sdg. And finally, with the command:</p>
<pre>hdparm -i /dev/sdg</pre>
<pre>/dev/sdg:
 Model=ST3500418AS, FwRev=CC34, SerialNo=6VM2KSFD</pre>
<p>we can find the serial number of the drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phuket-data-wizards.com/blog/2011/07/16/matching-linux-ata-numbers-to-the-device-names/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

