<?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>Roo&#039;s View</title>
	<atom:link href="http://lowtek.ca/roo/feed/" rel="self" type="application/rss+xml" />
	<link>http://lowtek.ca/roo</link>
	<description>A clever tagline should go here</description>
	<lastBuildDate>Thu, 30 May 2013 02:25:20 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Fixing a fake USB flash drive</title>
		<link>http://lowtek.ca/roo/2013/fixing-a-fake-usb-flash-drive/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixing-a-fake-usb-flash-drive</link>
		<comments>http://lowtek.ca/roo/2013/fixing-a-fake-usb-flash-drive/#comments</comments>
		<pubDate>Thu, 30 May 2013 02:25:20 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Gadgets]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1356</guid>
		<description><![CDATA[&#160; A couple of years ago I picked up a conference give-away flash drive (4GB), which at the time seemed like a pretty nice freebie. The trouble was it only every liked to play nice with my Windows machine, Linux would refuse to mount it. The headline photo is the final product, I failed to take [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/05/IMG_2836.jpg"><img class="aligncenter size-full wp-image-1359" alt="IMG_2836" src="http://lowtek.ca/roo/wp-content/uploads/2013/05/IMG_2836.jpg" width="500" height="217" /></a></p>
<p>&nbsp;</p>
<p>A couple of years ago I picked up a conference give-away flash drive (4GB), which at the time seemed like a pretty nice freebie. The trouble was it only every liked to play nice with my Windows machine, Linux would refuse to mount it. The headline photo is the final product, I failed to take a before picture but the leather + snap case on this USB thumb drive was hideous anyway.</p>
<p>Turns out it was a fake, good thing it was free. Still in my typical fashion I didn&#8217;t want to just throw it away, heck I&#8217;m still carrying around the <a href="http://lowtek.ca/roo/2008/mysterious-amd-usb-drive/">mysterious AMD 1GB key</a> I got ages ago. So this bogus 4GB key sat in my work bag for a long while before I finally got to investigating it.</p>
<p>The very first thing I did was use the linux command <code>lsusb</code>, this helped me clue in that there was something wrong (fake) with the drive. I found a <a href="http://forums.hexus.net/help-quick-relief-tech-headaches/153654-guide-fix-hacked-usb-drives.html">forum post</a> that helped me get started down the right path. I got a copy of ChipGenius which told me the following:</p>
<p><code><br />
Description: [I:]USB Mass Storage Device(Generic Flash Disk)</code><br />
<code><br />
Device Type: Mass Storage Device<br />
</code><code><br />
Protocal Version: USB 2.00<br />
Current Speed: High Speed<br />
Max Current: 100mA<br />
</code><code><br />
USB Device ID: VID = 0011 PID = 7788<br />
Serial Number: 874BE199<br />
</code><code><br />
Device Vendor: Generic<br />
Device Name: Mass Storage<br />
Device Revision: 0103<br />
</code><code><br />
Manufacturer: Generic<br />
Product Model: Flash Disk<br />
Product Revision: 8.00<br />
</code><code><br />
Controller Vendor: Alcor Micro<br />
Controller Part-Number: SC708(FC8708)/AU6987 - F/W EC23<br />
Flash ID code: ADD5949A - Hynix H27UAG8T2BTR - 1CE/Single Channel [MLC-8K] -&gt; Total Capacity = 2GB</code><code><br />
</code></p>
<p><code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;">So this felt like progress: it's 2GB and not 4GB as Windows seems to think. Still not bad for free. I then used my camera to get some close up shots of the naked circuit board to confirm the data that the ChipGenius tool dug out.</span></code></p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/05/IMG_2810.jpg"><img class="aligncenter size-full wp-image-1358" alt="IMG_2810" src="http://lowtek.ca/roo/wp-content/uploads/2013/05/IMG_2810.jpg" width="500" height="251" /></a></p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/05/IMG_2806.jpg"><img class="aligncenter size-full wp-image-1357" alt="IMG_2806" src="http://lowtek.ca/roo/wp-content/uploads/2013/05/IMG_2806.jpg" width="500" height="216" /></a></p>
<p>&nbsp;</p>
<p>It was good to see that the values matched, this helped boost my confidence in the ChipGenius tool. I did find some references on the web claiming that sometimes ChipGenius is wrong, so it&#8217;s worth looking at the chips themselves.</p>
<p>Part of the output was also <a href="http://dl.mydigit.net/special/up/alcor.html">a link to a website</a>, yet even with google translate the site left me guessing as to what I wanted to download &#8211; there were a lot of possible options. I choose one near the top <em>&#8220;Series master, the Alcor MPtool AU6987T/6989 Yasukuni, production tools (2011.12.26.00)&#8221; as t</em>he title matches some of the data in the ChipGenius dump. In the end the stability of the site, language barrier and my inability to successfully download anything sent me off down other paths.</p>
<p>I then ended up searching on <a href="http://flashboot.ru/index.php">flashboot.ru</a> with the controller chip number (FC8708) I was able to find and download (with a bit of google translate help) a tool that recognized the drive. The best way to find this tool is searching it&#8217;s name: FC_MpTool_FC8308_FC8508_FC8406_04.02.01.</p>
<p style="text-align: center;"><a href="http://lowtek.ca/roo/wp-content/uploads/2013/05/FC-MpTool.png"><img class="aligncenter  wp-image-1360" alt="FC MpTool" src="http://lowtek.ca/roo/wp-content/uploads/2013/05/FC-MpTool.png" width="500" height="280" /></a></p>
<p>The user interface was mysterious, but clicking on the drive letter started a reformat.. which resulted in a 2GB flash drive. This newly formatted drive was quite happy under Linux.</p>
<p>In terms of performance, I benchmarked copying 7 x ~300MB video files (total 1.9GB) to the stick, this reported ~4.7MB/sec. There were certainly bursty updates in file file progress dialog in Ubuntu. This isn&#8217;t great, but again it was free and it works under Linux. I also tried zeroing the entire drive (<code>$ sudo dd if=/dev/zero of=/dev/sdc</code>) which reported: 2095054848 bytes (2.1 GB) copied, 335.285 s, 6.2 MB/s &#8211; again, not great but good enough.</p>
<p>A bit of heat shrink tubing applied to cover up the bare circuit board and I&#8217;ve got a hack worthy USB key.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2013/fixing-a-fake-usb-flash-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Low cost APC UPS RBC33 replacement</title>
		<link>http://lowtek.ca/roo/2013/cheap-back-ups-1200-xs-rbc33/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=cheap-back-ups-1200-xs-rbc33</link>
		<comments>http://lowtek.ca/roo/2013/cheap-back-ups-1200-xs-rbc33/#comments</comments>
		<pubDate>Sun, 14 Apr 2013 01:01:35 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1333</guid>
		<description><![CDATA[A couple of weeks ago my APC Back-UPS 1200 XS started beeping at me, the battery light was flashing, a clear sign the battery has packed it in. I wasn&#8217;t overly surprised as the unit is quite old (I&#8217;m guessing 8 years? I can&#8217;t recall exactly when I got it) &#8211; you should only really [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2828.jpg"><img class="aligncenter size-full wp-image-1334" alt="IMG_2828" src="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2828.jpg" width="500" height="221" /></a></p>
<p>A couple of weeks ago my <a href="http://www.apc.com/resource/include/techspec_index.cfm?base_sku=BX1200&amp;tab=documentation">APC Back-UPS 1200 XS</a> started beeping at me, the battery light was flashing, a clear sign the battery has packed it in. I wasn&#8217;t overly surprised as the unit is quite old (I&#8217;m guessing 8 years? I can&#8217;t recall exactly when I got it) &#8211; you should only really count on a battery to last 3 to 5 years so it&#8217;s done well for me.</p>
<p>While I don&#8217;t remember exactly when I bought the <a href="http://en.wikipedia.org/wiki/Uninterruptible_power_supply">UPS</a>, I do remember price matching <a href="http://www.futureshop.ca/">FutureShop</a> against <a href="http://www.bestbuy.ca/">BestBuy</a>, the price difference was only $20 but it still made me laugh to do it as they are <a href="http://en.wikipedia.org/wiki/Future_Shop">both owned by the same parent company</a> &#8211; that and the price match gave me an additional 10% off of the difference in savings (yup, a whole $2). The <a href="http://www.apcmedia.com/salestools/KBOK-757JTT/KBOK-757JTT_R0_EN.pdf">manual</a> says I should buy a <a href="http://www.apc.com/resource/include/techspec_index.cfm?base_sku=rbc33">RBC33</a> battery pack, these are nearly the same price I paid for the entire UPS ($99 + tax).</p>
<p>I looked locally and on the web for a reasonably good deal for a replacement battery pack. The prices had quite a range and I could have opted to go for a RBC32 which is cheaper but still nearly the cost of original UPS. In the end I opted to go for the DIY route and just buy compatible batteries and do a swap &#8211; ebay had the best prices, but <a href="http://www.amazon.ca/gp/product/B00BSEMIQG/ref=oh_details_o00_s00_i00?ie=UTF8&amp;psc=1">amazon.ca had a vendor</a> that was almost the same price and I thought I&#8217;d go that route as shipping would be quicker.</p>
<p>The batteries arrived fairly quickly (about a week), faster than I&#8217;d expect from any shipment from the US. The two batteries are an identical size match to the pair that form the APC battery pack. The original battery pack has a wiring harness and the two batteries are stacked with one inverted.</p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2829.jpg"><img class="aligncenter size-full wp-image-1335" alt="IMG_2829" src="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2829.jpg" width="500" height="296" /></a></p>
<p>&nbsp;</p>
<p>The procedure was very simple, it took me under 10 minutes and I was stopping to take pictures as I went along. Start by peeling away the sticker from the side with the cable sticking out &#8211; put it aside if it still is sticky enough to re-use. Fold the batteries so they are side by side. Remove the cables from one battery, then remove the sticker on the other side and separate the batteries. Last remove the harness from the remaining battery.</p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2831.jpg"><img class=" wp-image-1336 alignnone" alt="IMG_2831" src="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2831.jpg" width="200" height="150" /></a><a href="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2832.jpg"><img class=" wp-image-1337 alignnone" alt="IMG_2832" src="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2832.jpg" width="200" height="150" /></a></p>
<p>&nbsp;</p>
<p>Reassembly is a matter of working in reverse. I suggest taking pictures as you go as it is a great way to reference which wire went where, but my photos are a reasonable guide as well. You could also watch <a href="http://www.youtube.com/watch?v=q1IowOyIjdI">this youtube video</a> which covers the battery swap.</p>
<p>My completed battery pack looks a lot like a stock RBC33. If the original stickers don&#8217;t have any stick left, a little duct tape should work well.</p>
<p style="text-align: center;"><a href="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2833.jpg"><img class="size-full wp-image-1338 aligncenter" alt="IMG_2833" src="http://lowtek.ca/roo/wp-content/uploads/2013/04/IMG_2833.jpg" width="500" height="195" /></a></p>
<p style="text-align: left;">The batteries in the original pack were 9Ah and my replacements are only 8Ah, this will affect the runtime of my UPS &#8211; for my needs a few minutes of backup are enough to protect the system, the new battery pack should give me nearly 30 minutes. Generally the power is good in my neighbourhood, and if it is an extended black out we&#8217;re without power for hours.</p>
<p>I&#8217;ve seen a few battery packs from systems at work where the batteries have bulged and are clearly bad, mine actually looked fine so I may try to <a href="http://blog.makezine.com/2013/03/27/how-to-recover-a-sealed-lead-acid-battery/">restore them later</a>. I did also <a href="http://forums.anandtech.com/showthread.php?t=2026013">consider upgrading</a> to sealed marine deep cycle batteries, but the cost was significant and I&#8217;m not convinced of the safety of the solution.</p>
<p>One footnote, I have the UPS plugged into my server and use <a href="http://www.apcupsd.com/">apcupsd</a> to monitor the status. When the old battery had failed and the UPS was beeping my logs filled with the following:</p>
<p><code>2013-04-07 23:20:49 -0400 Battery reattached.<br />
2013-04-07 23:20:11 -0400 Battery disconnected.<br />
2013-04-07 23:20:11 -0400 Battery reattached.<br />
2013-04-07 23:19:07 -0400 Battery disconnected.</code></p>
<p>Occasionally the beeping would stop (and I assume the logging) but in a short while it would resume beeping (and logging).</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2013/cheap-back-ups-1200-xs-rbc33/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Repair Acer AspireOne 532H Netbook Screen</title>
		<link>http://lowtek.ca/roo/2013/repair-screen-acer-aspire-one-532h-nav50/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=repair-screen-acer-aspire-one-532h-nav50</link>
		<comments>http://lowtek.ca/roo/2013/repair-screen-acer-aspire-one-532h-nav50/#comments</comments>
		<pubDate>Thu, 21 Feb 2013 02:59:02 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1316</guid>
		<description><![CDATA[The Acer AspireOne 10.1&#8243; netbook is a handy secondary computer to have around. It&#8217;s quite capable of browsing the web, email and viewing photos. Most casual users could likely happily use it as their primary machine. Tablets have all but killed this market, I&#8217;m hopeful that the Google Chromebook will bring help back this form [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2767.jpg"><img class="aligncenter size-full wp-image-1317" alt="IMG_2767" src="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2767.jpg" width="500" height="268" /></a>The <a href="http://support.acer.com/acerpanam/netbook/2010/Acer/Aspire/AspireOneAO532h/AspireOneAO532hsp2.shtml">Acer AspireOne 10.1&#8243; netbook</a> is a handy secondary computer to have around. It&#8217;s quite capable of browsing the web, email and viewing photos. Most casual users could likely happily use it as their primary machine. <a href="http://en.wikipedia.org/wiki/Tablet_computer">Tablets</a> have all but killed this market, I&#8217;m hopeful that the <a href="http://en.wikipedia.org/wiki/Chromebook">Google Chromebook</a> will bring help back this form factor.</p>
<p>Unfortunately being a secondary computer means that it gets left around (on the floor) and stepped on. This was the sad fate of this particular <a href="http://en.wikipedia.org/wiki/Netbook">netbook</a>. It turns out that replacement screens are relatively inexpensive making it well worth fixing. First step was to boot the netbook connected to an external monitor to confirm the resolution of the panel and make sure nothing else was wrong. Armed with that, and a <a href="http://www.acerparts.ca/acer-aspire-one-532h-series-10.1-glossy-lcd-screen.html?gclid=COP2t7SWo7UCFaI-MgodwnQAhA">compatibility list</a>  I was able to find a good price for one from a Canadian seller <a href="http://www.ebay.ca/itm/320817576070">on ebay</a>. Shipping was very fast and the screen came well packaged: boxed and inside a padded envelope.</p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2769.jpg"><img class="aligncenter size-full wp-image-1318" alt="IMG_2769" src="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2769.jpg" width="500" height="214" /></a></p>
<p>Disassembly is quite easy, this <a href="http://www.youtube.com/watch?v=mlpgiR1fRmo">YouTube video</a> covers it quite well. Below you&#8217;ll find some photos and my notes on the process.</p>
<p>(...)<br/>Read the rest of <a href="http://lowtek.ca/roo/2013/repair-screen-acer-aspire-one-532h-nav50/">Repair Acer AspireOne 532H Netbook Screen</a> (424 words)</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2013/repair-screen-acer-aspire-one-532h-nav50/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>DIY Repair Nikon Bayonet Mount</title>
		<link>http://lowtek.ca/roo/2013/diy-fix-nikon-18-55-vr-mount/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=diy-fix-nikon-18-55-vr-mount</link>
		<comments>http://lowtek.ca/roo/2013/diy-fix-nikon-18-55-vr-mount/#comments</comments>
		<pubDate>Tue, 12 Feb 2013 02:19:37 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[DIY]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1308</guid>
		<description><![CDATA[Nothing is quite as sad as a broken bit of equipment. Sadder still when it&#8217;s a fairly expensive component and repair costs at a shop are hundreds of dollars. This Nikon DX AF-S 18-55 VR lens took a kid + dog caused tumble to the ceramic floor, it was mounted on the camera and the impact [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2784.jpg"><img class="aligncenter size-full wp-image-1310" alt="IMG_2784" src="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2784.jpg" width="500" height="204" /></a></p>
<p>Nothing is quite as sad as a broken bit of equipment. Sadder still when it&#8217;s a fairly expensive component and repair costs at a shop are hundreds of dollars. This <a href="http://www.henrys.com/24037-NIKON-DX-AF-S-18-55-VR-F3-5-5-6.aspx">Nikon DX AF-S 18-55 VR</a> lens took a kid + dog caused tumble to the ceramic floor, it was mounted on the camera and the impact busted the plastic mounting tabs (if you look closely at the picture above you can see the busted tabs).</p>
<p>On the bright side, if the tabs hadn&#8217;t given way something else might have taken more impact and broken. By carefully holding the lens on the camera it was possible to verify that it appeared to still be working fine.. if only it would stay mounted. Glue might have worked, but I wasn&#8217;t brave enough to slap a little glue onto an expensive lens. A few calls to local camera shops left me a bit shocked at the cost of repairs, it was not worth repairing as a new lens was almost the same price. What I found interesting was that even buying the parts from a local shop wasn&#8217;t an easy option, it seems <a href="http://slashdot.org/story/13/02/04/1755203/the-only-lonely-protester-at-ces-video">Nikon is making it</a> <a href="http://ifixit.org/1349/how-nikon-is-killing-camera-repair/">more difficult</a> for repair shops to get parts.</p>
<p>I did find some reasonable <a href="http://naterhomeprojects.blogspot.ca/2010/05/fixing-broken-nikon-18-55-vr-bayonet.html">web</a> <a href="http://www.gmtruckhq.com/off-topic/how-fix-broken-nikon-dslr-lens-mounts-3271.html">resources</a> out there giving step-by-step information on replacing the mount. You can also pick up the required part <a href="https://www.google.ca/search?q=site:ebay.ca+nikon+bayonet+mount">via ebay</a>. It turns out you can order the part directly from Nikon as well. Their <a href="http://en.nikon.ca/About-Nikon/Contact-Us.page">email support</a> was responsive within 24hrs, and I was able to call them directly with a credit card and have it shipped to me in a couple of days.</p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2781.jpg"><img class="aligncenter size-full wp-image-1309" alt="IMG_2781" src="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2781.jpg" width="500" height="149" /></a>So with the correct part in hand, it was time to take things apart. I used both #0 and #00 Phillips screwdriver bits, my fingers and patience. I&#8217;ll avoid duplicating the instructions <a href="http://www.gmtruckhq.com/off-topic/how-fix-broken-nikon-dslr-lens-mounts-3271.html">found</a> <a href="http://naterhomeprojects.blogspot.ca/2010/05/fixing-broken-nikon-18-55-vr-bayonet.html">elsewhere</a> and simply provide a few comments on my experience:</p>
<ul>
<li><span style="line-height: 13px;">The screws are very, very small. You&#8217;ll want to work in a brightly lit area with care not to lose any.</span></li>
<li>When reassembling and I was reaching with my fingers to get the tab with the electrical contacts from where it rested &#8220;inside&#8221; the lens, I managed to get a fingerprint on the lens. Using more caution you can avoid my mistake.</li>
<li>I messed up the first reassembly, the bayonet part of the new mounting ring needs to be in the &#8216;right&#8217; place. Refer to the photo below: At about 10 o&#8217;clock there is a small metal pin. The bayonet should be clockwise side of that (say 11 o&#8217;clock). Everything fit, but the lens didn&#8217;t operate correctly on the camera.</li>
<li>Those metal rings, you don&#8217;t want to move them if possible. The good news is that three of the screws you take out fit down through those rings, making it relatively easy to get lined back up if you move them a bit.</li>
</ul>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2786.jpg"><img class="aligncenter size-full wp-image-1311" alt="IMG_2786" src="http://lowtek.ca/roo/wp-content/uploads/2013/02/IMG_2786.jpg" width="500" height="351" /></a></p>
<p>I&#8217;d never done this type of repair before and I was done well under an hour total. The second re-assembly was 15mins tops. Total cost: $10 + $15 shipping direct from <a href="http://en.nikon.ca/index.page">Nikon Canada</a>. If you opt for the <a href="http://www.ebay.ca/">ebay</a> route, you may need to transfer the bayonet metal part from the original as most of them only offer the plastic ring &#8211; the official part is complete.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2013/diy-fix-nikon-18-55-vr-mount/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add drive to RAID5 on Ubuntu</title>
		<link>http://lowtek.ca/roo/2012/add-volum-to-raid5-on-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-volum-to-raid5-on-ubuntu</link>
		<comments>http://lowtek.ca/roo/2012/add-volum-to-raid5-on-ubuntu/#comments</comments>
		<pubDate>Mon, 31 Dec 2012 03:16:47 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1303</guid>
		<description><![CDATA[Some time ago I migrated from a RAID1 setup to RAID5, this was on the minimum 3 drives. At some point this summer I spotted a good deal on a matching 1TB drive to what I had in my array and bought it. My purchase sat in my desk drawer for a month (or two) [...]]]></description>
				<content:encoded><![CDATA[<p>Some time ago I migrated <a href="http://lowtek.ca/roo/2011/how-to-migrate-from-raid1-to-raid5/">from a RAID1 setup to RAID5</a>, this was on the minimum 3 drives. At some point this summer I spotted a good deal on a matching 1TB drive to what I had in my array and bought it. My purchase sat in my desk drawer for a month (or two) then I finally got around to installing it into the server. At least another couple of months went by until I got to adding it to my array &#8211; it turns out to be really simple and I&#8217;m kicking myself for dragging my feet.</p>
<p>With any hardware upgrade (specifically drives) it&#8217;s a good idea to capture what the system thinks things look like before you make any changes. For the most part Ubuntu talks about <a href="https://help.ubuntu.com/community/UsingUUID">UUIDs</a> for drives, but a couple of places (at least in my install) use the <code>/dev/sd*#</code> names and can trip you up when you shuffle hardware around. Capturing the drive assignments is simply a matter of:</p>
<p><code>$ sudo fdisk -l | grep ^/dev</code></p>
<p>Post hardware installation I was surprised at how much of a shuffle the <code>/dev/sd*#</code>&#8216;s changed around. I was glad I had a before and after capture of the data, it also let me identify the new drive pretty easily.</p>
<p>Early in my notes I have <em>&#8220;could it be this simple?&#8221;</em> and a link to the <a href="https://raid.wiki.kernel.org/index.php/Growing">kernel.org wiki on RAID</a>. It turns out that yes, it really is that simple &#8212; but you do need to follow the steps carefully. I did also find an <a href="http://ubuntuforums.org/showthread.php?t=517282">Ubuntu Forum post</a> that was a good read for background too.</p>
<p>The new drive I had temporarily used on an OSX system to do some recovery work, so <a href="http://manpages.ubuntu.com/manpages/precise/man8/fdisk.8.html">fdisk</a> wasn&#8217;t very happy about working with the drive that had a <a href="http://en.wikipedia.org/wiki/GUID_Partition_Table">GUID partition table</a> (GPT). It turns out <a href="http://manpages.ubuntu.com/manpages/precise/man8/parted.8.html">parted</a> was happy to work with the volume and let me even change it back into something fdisk could work with.</p>
<p>I puzzled over the fact that this new drive wanted to start at 2048 instead of 63, I was initially under the incorrect assumption this had something to do with the GPT setup that I hadn&#8217;t been able to fix. Consider two basically identical volumes (old followed by new)</p>
<p><code>$ sudo fdisk -l /dev/sdb</code></p>
<p><code>Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes<br />
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / <strong>512 bytes</strong><br />
I/O size (minimum/optimal): <strong>512 bytes / 512 bytes</strong><br />
Disk identifier: 0x00000000</code></p>
<p><code>Device Boot Start End Blocks Id System<br />
/dev/sdb1 <strong>63</strong> 1953520064 976760001 83 Linux</code></p>
<p><code>$ sudo fdisk -l /dev/sdc</code></p>
<p><code>Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes<br />
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors<br />
Units = sectors of 1 * 512 = 512 bytes<br />
Sector size (logical/physical): 512 bytes / <strong>4096 bytes</strong><br />
I/O size (minimum/optimal): <strong>4096 bytes / 4096 bytes</strong><br />
Disk identifier: 0x00000000<br />
</code><br />
<code>Device Boot Start End Blocks Id System<br />
/dev/sdc1 <strong>2048</strong> 1953525134 976761543+ 83 Linux</code></p>
<p>I&#8217;ve highlighted the key differences in bold, you can see the physical sector size is 4096 vs. 512 and that is the reason for the different start position. Ok, diversion over &#8211; let&#8217;s actually follow the <a href="https://raid.wiki.kernel.org/index.php/Growing">wiki</a> and get this drive added to the RAID array.</p>
<p>Start by looking at what we have:</p>
<p><code>$ cat /proc/mdstat<br />
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]<br />
md_d3 : active raid5 sdf1[1] sdd1[0] sdb1[2]<br />
1953519872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]</code></p>
<p>So, my RAID5 array is <code>/dev/md_d3</code>, and I know my new drive is <code>/dev/sdc1</code> after my parted/fdisk adventure above.</p>
<p><code>$ sudo mdadm --add /dev/md_d3 /dev/sdc1</code></p>
<p>Now we look at mdstat again and it shows we have a spare. This is honestly what I should have at least done with the drive immediately after installing it &#8211; having a spare lets the RAID array fail over to the spare drive with no administrator intervention.</p>
<p><code>$ cat /proc/mdstat<br />
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]<br />
md_d3 : active raid5 sdc1[3](S) sdf1[1] sdd1[0] sdb1[2]<br />
1953519872 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]</code></p>
<p>Next we grow the array across the new device</p>
<p><code>$ sudo mdadm --grow --raid-devices=4 /dev/md_d3</code></p>
<p>You can peek at <code>/proc/mdstat</code> from time to time (or use the <a href="http://manpages.ubuntu.com/manpages/precise/man1/watch.1.html">watch</a> command) to monitor progress. This may take a while.</p>
<p>Once this is done, don&#8217;t forget to modify <code>/etc/mdadm/mdadm.conf</code> as per the <a href="https://raid.wiki.kernel.org/index.php/Growing">wiki</a>: <em>&#8220;To make mdadm find your array edit /etc/mdadm.conf and correct the num-devices information of your Array&#8221;</em></p>
<p>At this point we now have our data spread across more drives, but don&#8217;t have a larger volume. We need to resize the volume to take advantage of the new space. It&#8217;s recommended you do the resize with the RAID5 volume unmounted (offline). I set about to do this and hit problems unmounting the volume: this turned out to be <a href="http://en.wikipedia.org/wiki/Samba_(software)">samba</a> holding on to the volume, turning that service off fixed things.</p>
<p>Then I hit a show stopper, the <a href="http://manpages.ubuntu.com/manpages/precise/en/man8/resize2fs.8.html">resize2fs</a> command failed:</p>
<p><code>$ sudo resize2fs -p /dev/md_d3<br />
resize2fs 1.42 (29-Nov-2011)<br />
resize2fs: Device or resource busy while trying to open /dev/md_d3<br />
Couldn't find valid filesystem superblock.</code></p>
<p>Huh? This is something I&#8217;ll one day sort out I suppose, but it really beats me what is going on here. You can resize RAID5 while it&#8217;s online too, it&#8217;s slower and a bit scarier, but it works.</p>
<p><code>$ sudo resize2fs /dev/md_d3<br />
resize2fs 1.42 (29-Nov-2011)<br />
Filesystem at /dev/md_d3 is mounted on /stuff; on-line resizing required<br />
old_desc_blocks = 117, new_desc_blocks = 175<br />
Performing an on-line resize of /dev/md_d3 to 732569952 (4k) blocks.</code></p>
<p>This was followed by a few moments of terror as I realized that I was doing this over a SSH connection &#8211; <a href="http://serverfault.com/questions/440313/resize2fs-get-status-after-ssh-connection-interrupted">what if the connection is lost?</a> Next time I&#8217;ll use screen, or nohup the process.</p>
<p>It was neat to watch the free space on the drive creep upwards. It was running at about 1Gb every 2 seconds. Once this finishes, you&#8217;re done. My RAID volume went from 1.9T to 2.8T with the new drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2012/add-volum-to-raid5-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Dell Inspiron 1525 repair</title>
		<link>http://lowtek.ca/roo/2012/how-to-dell-inspiron-1525-repair/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-dell-inspiron-1525-repair</link>
		<comments>http://lowtek.ca/roo/2012/how-to-dell-inspiron-1525-repair/#comments</comments>
		<pubDate>Thu, 29 Nov 2012 02:37:36 +0000</pubDate>
		<dc:creator>Roo</dc:creator>
				<category><![CDATA[DIY]]></category>
		<category><![CDATA[How To]]></category>

		<guid isPermaLink="false">http://lowtek.ca/roo/?p=1293</guid>
		<description><![CDATA[As the &#8220;computer guy&#8221; in the family from time to time a repair job will land on my doorstep. This was an older Dell Inspiron 1525 laptop that wasn&#8217;t booting anymore. This time it wasn&#8217;t some horrible virus that had eaten a system file, but the hard drive starting to fail (something I verified by [...]]]></description>
				<content:encoded><![CDATA[<p>As the &#8220;<a href="http://theoatmeal.com/comics/computers">computer guy</a>&#8221; in the family from time to time a repair job will land on my doorstep. This was an older <a href="http://en.wikipedia.org/wiki/Dell_Inspiron_1525">Dell Inspiron 1525</a> laptop that wasn&#8217;t booting anymore. This time it wasn&#8217;t some horrible virus that had eaten a system file, but the hard drive starting to fail (something I verified by booting a <a href="http://www.ubuntu.com/download/help/create-a-usb-stick-on-ubuntu">Live USB version of Ubuntu</a>).</p>
<p>The very first thing you need to do at any sign of hard drive failure is run a complete backup. If you really care about some of the data, then I suggest you start with the bits you really care about (photos) and work your way outwards to a full backup. Don&#8217;t be shy about &#8220;wasting&#8221; backup drive space, this might be the last hour (or minutes) of functioning drive. I make this comment from experience watching a full backup stop due to total drive failure part way through the photo directories after successfully backing up a bunch of system files.</p>
<p>You can (as I have) try <a href="https://help.ubuntu.com/community/DataRecovery">gddrescue</a> or similar recover tools once you&#8217;ve done what you can with the drive in terms of backup. This might get you a little bit more data, but these tools are in my opinion last ditch efforts to salvage failing media. You can try the <a href="http://lifehacker.com/5515337/save-a-failed-hard-drive-in-your-freezer-redux">freezer trick</a>, or even <a href="http://computer-forensics.sans.org/blog/2009/09/30/the-failed-hard-drive-the-toaster-oven-and-a-little-faith">warming the drive up</a> but don&#8217;t count on them working. It&#8217;s worth repeating: <strong>nothing beats regular backups</strong> &#8211; unless it&#8217;s automatic nightly incremental backups with off-site replication.</p>
<p>Replacing the failed drive is simply a matter of finding the <a href="http://book-lab.ru/pdf/DELL-INSPIRON/service_manual_for_DELL_Inspiron_1525.pdf ">manual</a>, and <a href="http://www.canadacomputers.com/product_info.php?cPath=15_1086_215_217&amp;item_id=024478">buying a matching drive</a>. If this were my personal system I&#8217;d be tempted to upgrade to a <a href="http://en.wikipedia.org/wiki/Ssd">SSD</a>, but there is still a big price difference. I booted from the Live USB Ubuntu for the first boot after install, this let me check the hardware was good to go and to peek at the <a href="http://en.wikipedia.org/wiki/S.M.A.R.T.">SMART</a> data. It was interesting to see that the SMART data says power cycles=4, I guess they really do test the drives at the factory.</p>
<p>Installing using the Dell Windows install disks went smoothly, the driver installation steps were annoying and kludgey feeling but not too horrible. Time then crawled to a stand still as I worked my way through the updates from Microsoft, one patch set at a time from 2008 (era of the install media) to present day. Many, many, many reboots later I had a clean install that was fully patched and ready to go back. If you find yourself having to do this more than once in a long while, consider using a more <a href="http://www.pcworld.com/businesscenter/article/239634/how_to_speed_up_windows_7_installs_with_slipstreaming_and_usb.html">advanced technique</a>.</p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2012/11/IMG_2701.jpg"><img class="aligncenter size-full wp-image-1296" title="IMG_2701" src="http://lowtek.ca/roo/wp-content/uploads/2012/11/IMG_2701.jpg" alt="" width="500" height="304" /></a></p>
<p>Well, with the exception of the problem of a missing key. Amazingly the lack of the key didn&#8217;t prevent you from using it &#8211; the &#8216;T&#8217; worked just fine, it just felt very wrong. I quick trip off to ebay and I was able to locate a <a href="http://cgi.ebay.ca/ws/eBayISAPI.dll?ViewItem&amp;item=170906382177">suitable replacement</a>. It turns out I needed a K26 type key, and that the same model had at least four variations. This <a href="http://www.machinaelectronics.com/store/keyboardkeys/Dell_Inspiron_1525">website had a handy guide</a> for selecting the type of key you needed.</p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2012/11/IMG_2703.jpg"><img class="aligncenter size-full wp-image-1295" title="IMG_2703" src="http://lowtek.ca/roo/wp-content/uploads/2012/11/IMG_2703.jpg" alt="" width="500" height="292" /></a></p>
<p>Pictured above is what arrived in the mail. A rubber plunger, a plastic hinge and the key cap. First I needed to pop the hinge off of the key, the blade from my swiss army knife did the job worked well. Then I had to puzzle a bit over which way the hinge was supposed to go on the keyboard.</p>
<p><a href="http://lowtek.ca/roo/wp-content/uploads/2012/11/IMG_2705.jpg"><img class="aligncenter size-full wp-image-1294" title="IMG_2705" src="http://lowtek.ca/roo/wp-content/uploads/2012/11/IMG_2705.jpg" alt="" width="501" height="254" /></a></p>
<p>I hope the picture above helps others understand how it is supposed to fit on the keyboard &#8211; it was the image I had hoped to find on the internet when I was trying to figure it out. Some of the  youtube videos show using needle nose pliers to do the installation, I found that my fingernails did the job. One the hinge in on, simply plop the rubber plunger in the middle &#8211; large base down as pictured in the arrive in the mail shot. The key cap will just snap on when placed on top and pressed down &#8211; work the top first, then the bottom.</p>
<p>Replacing the missing key was very satisfying,  not very expensive and the improvement was both cosmetic and functional.</p>
]]></content:encoded>
			<wfw:commentRss>http://lowtek.ca/roo/2012/how-to-dell-inspiron-1525-repair/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
