<?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>Joe Fleming dot net &#187; Hardware</title>
	<atom:link href="http://joefleming.net/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://joefleming.net</link>
	<description>what you see is what you get</description>
	<lastBuildDate>Tue, 17 Jan 2012 16:24:55 +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>Atheros AR8131 and Linux</title>
		<link>http://joefleming.net/2010/05/26/atheros-ar8131-and-linux/</link>
		<comments>http://joefleming.net/2010/05/26/atheros-ar8131-and-linux/#comments</comments>
		<pubDate>Wed, 26 May 2010 19:25:49 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Computers & Technology]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://joefleming.net/?p=177</guid>
		<description><![CDATA[A while back I picked up an ECS 945GCD-M motherboard to replace my dead VIA board that was running my RAID server. The board is pretty nice, sitting there completely silent, running 64-bit Ubuntu and packing far more power than the board it was replacing. But it has one glaring problem; the network card on [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I picked up an ECS 945GCD-M motherboard to replace my dead VIA board that was running my RAID server. The board is pretty nice, sitting there completely silent, running 64-bit Ubuntu and packing far more power than the board it was replacing. But it has one glaring problem; the network card on the thing didn&#8217;t work out of the box in Linux. I had been running a cheap USB network card I had laying around, but it was slow and I hated that I couldn&#8217;t get it working. So, I set out to make the onboard Atheros AR8131M chipset work.</p>
<p>Google will give you a plethora of guides for compiling the drivers (<a href="http://ubuntuforums.org/showthread.php?t=1255082">this one is probably the best</a>), but I just couldn&#8217;t get things to load. It was also never clear what version of the drivers I should be trying to run. Most tutorials made reference to 1.0.0.9, some to 1.0.0.10, but the current version (at the time of this writing) is 1.0.1.9. In the end, though, that&#8217;s the version I did manage to get working. Here&#8217;s how I did it:<br />
<span id="more-177"></span></p>
<ul>
<li>Grab the driver from the <del datetime="2011-08-09T18:42:49+00:00"><a href="http://partner.atheros.com/Drivers.aspx">Atheros site</a></del> Dead link, <a href="http://joefleming.net/files/AR81Family-Linux-v1.0.1.9.tar.gz">copy is here</a></li>
<li>Locate the file on your computer, then make a new directory (name it anything, <em>AR8131</em> will work) and move that file there
</li>
<li>Decompress the file</li>
<li>Enter the resulting <em>src</em> directory</li>
</ul>
<p>Once you&#8217;re in there, it&#8217;s time to start that terminal magic! One note; if you&#8217;ve already added another network card to your machine, the Atheros card may be eth1, not eth0. This was the case for me, and I&#8217;ll treat all the instructions here as though that&#8217;s the case for you too. If it&#8217;s not, just change eth1 to eth0.<br />
<code>make &#038;&#038; sudo make install<br />
sudo modprobe atl1e<br />
sudo ifconfig eth1 up<br />
sudo dhclient eth1<br />
</code></p>
<p>At this point, the machine will try to assign an IP address for the card. This may or may not work; for me, it did not. To get mine working, I simply restarted the networking init script. Before that though, let&#8217;s add the following to <em>/etc/network/interfaces</em><br />
<code># The secondary network interface<br />
auto eth1<br />
iface eth1 inet dhcp</code></p>
<p>And lastly, restart the network on the machine (you CAN reboot, but there&#8217;s no need).<br />
<code>sudo /etc/init.d/networking restart</code></p>
<p>At this point, you should have your network card up and running with an IP address assigned by your DHCP server or router. If not, keep hunting I guess, but you should at least be very close!</p>
]]></content:encoded>
			<wfw:commentRss>http://joefleming.net/2010/05/26/atheros-ar8131-and-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Samsung X360 Backlight Control with Ubuntu</title>
		<link>http://joefleming.net/2010/03/30/samsung-x360-backlight-control-with-ubuntu/</link>
		<comments>http://joefleming.net/2010/03/30/samsung-x360-backlight-control-with-ubuntu/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 18:06:19 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Computers & Technology]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[karmic koala]]></category>
		<category><![CDATA[samsung x360]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://joefleming.net/?p=155</guid>
		<description><![CDATA[I recently send my Samsung X360 laptop to the shop. The bearing on the fan had gone bad so I sent it in for warranty replacement. Before I sent it, I thought I would wipe out all my data since a lot of it was work-related and I didn&#8217;t need that information getting out, plus [...]]]></description>
			<content:encoded><![CDATA[<p>I recently send my Samsung X360 laptop to the shop. The bearing on the fan had gone bad so I sent it in for warranty replacement. Before I sent it, I thought I would wipe out all my data since a lot of it was work-related and I didn&#8217;t need that information getting out, plus I didn&#8217;t want to confuse the poor tech with Linux. </p>
<p>When I got it back, I immediately installed Ubuntu&#8217;s most current version, 9.10 (Karmic Koala). I was really impressed with it; even more-so than with 9.04 in fact. But I ran in to a problem when I was setting it all up; I couldn&#8217;t get the backlight adjustment to work.<br />
<span id="more-155"></span><br />
I resorted to the original <a href="http://ubuntuforums.org/showthread.php?t=1031764">Ubuntu Forums article</a> on it but I quickly found that it no longer worked. LVDS and VGA had been replaced with LVDA1 and VGA1, and changing the command still didn&#8217;t work; it complained about something which I no longer remember. But, that error (as well as replies to that thread) lead me to <a href="https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/397617/comments/30">this Launchpad comment</a> about disabling KMS.</p>
<p>Seems KMS is enabled by default for a certain chipset, specifically the Intel i915 chipset. My next questions, of course, were &#8220;what is KMS&#8221; and &#8220;how do I disable it&#8221;? Looking around, I found out that KMS, or Kernel Modesetting, could be disabled <a href="http://www.ubuntu.com/getubuntu/releasenotes/910#No%20Xv%20support%20for%20Intel%2082852/855GM%20video%20chips%20with%20KMS">like so</a>:</p>
<p><code>Edit: /etc/default/grub<br />
Change: GRUB_CMDLINE_LINUX=""<br />
To: GRUB_CMDLINE_LINUX="nomodeset"</code></p>
<p>Then run</p>
<p><code>sudo update-grub</code></p>
<p>Now, reboot and KMS will be disabled. We can now refer back to the original post <a href="http://ubuntuforums.org/showthread.php?t=1031764">here</a>, adding the following to the startup applications (or just running it from the command line each time, you&#8217;re call I guess).</p>
<p><code>xrandr --output LVDS --set BACKLIGHT 102 --set BACKLIGHT_CONTROL legacy --output VGA --auto</code></p>
<p>This still won&#8217;t make the brightness buttons on the keyboard work, but it WILL make xbacklight work. As the article points out, you can then set hotkeys for xbacklight commands.</p>
<p>So what do you lose by disabling KMS? Well, according to <a href="http://fedoraproject.org/wiki/Features/KernelModesetting#Summary">this article</a>, KMS offloads the graphics initialization from X to the kernel, which has some benefits. But, the fact remains that it doesn&#8217;t work on a lot of machines (the Samsung X360, The MacBook and possible MacBook Pro, MSI&#8217;s U90, U100, and U120 netbooks and the Asus EeePC, to name a handful), so for users with this hardware, you don&#8217;t lose anything ;). I&#8217;ve read about some people having success with KMS in newer kernels, but it didn&#8217;t work for me so I&#8217;m not going to bother posting it. I&#8217;m hopeful that this will be fixed when 10.04 (Lucid Lynx) is released, but I haven&#8217;t yet tried the beta release to see.</p>
]]></content:encoded>
			<wfw:commentRss>http://joefleming.net/2010/03/30/samsung-x360-backlight-control-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Living with PulseAudio via PulseAudio Device Chooser</title>
		<link>http://joefleming.net/2010/01/06/living-with-pulseaudio-via-pulseaudio-device-chooser/</link>
		<comments>http://joefleming.net/2010/01/06/living-with-pulseaudio-via-pulseaudio-device-chooser/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 15:30:25 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Computers & Technology]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://joefleming.net/?p=151</guid>
		<description><![CDATA[Telecommuting is a pretty sweet gig with a good number of benefits. To name a few, while I&#8217;m working I can: Toss some laundry in the machine Start my lunch and work while it cooks Sign for packages when they are delivered And that&#8217;s just the tip of the iceberg. However, to make telecommuting possible, [...]]]></description>
			<content:encoded><![CDATA[<p>Telecommuting is a pretty sweet gig with a good number of benefits. To name a few, while I&#8217;m working I can:</p>
<ul>
<li>Toss some laundry in the machine</li>
<li>Start my lunch and work while it cooks</li>
<li>Sign for packages when they are delivered</li>
</ul>
<p>And that&#8217;s just the tip of the iceberg. However, to make telecommuting possible, there are some technologies I simply MST have working. VPN is a big one, so I can get at the computers back in the office. SSH and FTP access is important to manage servers and files. And of course, I need to communicate with people; for that, we use AIM and Skype. Up until recently, it&#8217;s been enough for me to use my Nokia N800 to make my calls back to the office. It&#8217;s no good for chatting with video though, so I needed to set it up on my desktop with my camera and, preferably, my headset.</p>
<p>Simple enough task really; both my Logitech webcam and Plantronics headset work out of the box with Ubuntu (at least in 9.04) with nearly zero configuration required. I just plug them in, tweak Skype quickly and I&#8217;m up and running. However, with the addition of PulseAudio in the more recent version of Ubuntu, this became a little trickier.<br />
<span id="more-151"></span><br />
You see, in the new version of Skype, the ONLY option I have for ANY audio, input or output, is simpley PulseAudio. No control for which device to use for different tasks. Enter <a href="http://0pointer.de/lennart/projects/padevchooser/">padevchooser</a>, short for <strong>PulseAudio Device Chooser</strong>.</p>
<p><img src="http://i.imgur.com/nZASMl.png" alt="padevchooser in action" /></p>
<p>It&#8217;s a pretty sweet application, and you should have no problem installing it since it&#8217;s in the repository (note: I&#8217;ve <a href="https://help.ubuntu.com/community/Medibuntu#Adding%20the%20Repositories">added the Medibunutu repo</a>, and it&#8217;s possible it came from there). Once installed, you simply run it, from the command line, the run dialog, gnome-do or whatever method you choose, and you&#8217;ll get an icon in the notification area. Click on that, choose Volume Control, and you&#8217;re off and running. There are tabs for Playback, Recording, Output Devices, and Input Devices. Any current audio stream will show up in the list in the appropriate tab and you can move them around to different devices. </p>
<p>The easiest way to configure Skype is to place a test call. As soon as you start that call it will show up in the list. Move the &#8220;Skype: Output&#8221; stream to your headset in the Playback tab, do the same for &#8220;Skype: Input&#8221; in the Recording tab and you&#8217;re off and running. All Skype audio is now sent to your headset for easy chatting. I still haven&#8217;t figured out how to make it ring through the speakers and still use the headset for chatting, but this is good enough for now. Padevchooser made living with PulseAudio that much better!</p>
]]></content:encoded>
			<wfw:commentRss>http://joefleming.net/2010/01/06/living-with-pulseaudio-via-pulseaudio-device-chooser/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Sweet New Laptop</title>
		<link>http://joefleming.net/2009/03/11/my-sweet-new-laptop/</link>
		<comments>http://joefleming.net/2009/03/11/my-sweet-new-laptop/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 01:41:16 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Computers & Technology]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://joefleming.net/?p=76</guid>
		<description><![CDATA[I&#8217;ve been considering picking up a new laptop for a while now. My old laptop, an ageing Dell Inspiron 8500, had treated me well for a few years, but I really wanted to change to a more portable machine. The Dell weighed in at around 8 lbs., had a battery that lasted about half an [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been considering picking up a new laptop for a while now. My old laptop, an ageing Dell Inspiron 8500, had treated me well for a few years, but I really wanted to change to a more portable machine. The Dell weighed in at around 8 lbs., had a battery that lasted about half an hour at its best and ran almost too hot to touch at times. </p>
<p>Ultimately, I just wanted a machine that was light, had a long-lasting battery and had a full-size keyboard. The 10-inch netbooks looked like a good buy, but it was difficult to find one that was worth buying. I had been considering the Lenovo S10, and came close to picking one up about a month ago when I found one for just under $300. What stopped me was reading about overheating problems with the machine. I&#8217;ve wanted the MSI Wind since it was announced, but it was always over the $400 mark, which I don&#8217;t think is a reasonable price for that class of machine. All of the other offerings were either overpriced, lacked some key features or had batteries that just weren&#8217;t going to cut it. In most cases, all of these were true.<br />
<span id="more-76"></span><br />
I had also been interested in many of the 13-inch laptops but was often thrown off by their price. They were usually well over the $1,000 mark (sometimes even breaking the $2,000 mark) and I just wasn&#8217;t willing to drop that kind of cash. One fateful day last week, Monday to be exact, <a href="http://aaronstaves.com/" rel="ext">Aaron</a> tipped me off to the reduced price of the Samsung X360 on Amazon&#8217;s Gold Box. It was marked down to $1049 and included a $300 rebate. $749 was a little more than I wanted to spend, but for a laptop of this caliber, it seemed worth considering. Turns out, <a href="http://www.engadget.com/2009/03/02/samsung-x360-ultraportable-dips-below-800-mark/" rel="ext">I wasn&#8217;t alone in that thought</a>. In the end, I jumped on it, as did <a href="http://aaronstaves.com/2009/03/03/out-with-the-mac-in-with-the-samsung/" rel="ext">Aaron</a> and <a href="http://jasonsidabras.com/" rel="ext">Jason</a>.</p>
<p>The machine arrived this past Friday, but sadly, I didn&#8217;t have time to play with it until Sunday. I did have time to open it up and take some pictures though, and man was I happy I went for this deal! The machine looks great and it&#8217;s so small and light that you really have to handle it to believe it.</p>
<p><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1315.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1315-300x225.jpg" alt="img_1315" title="img_1315" width="300" height="225" class="alignnone size-medium wp-image-79" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1316.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1316-300x225.jpg" alt="img_1316" title="img_1316" width="300" height="225" class="alignnone size-medium wp-image-80" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1320.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1320-300x225.jpg" alt="img_1320" title="img_1320" width="300" height="225" class="alignnone size-medium wp-image-81" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1322.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1322-300x225.jpg" alt="img_1322" title="img_1322" width="300" height="225" class="alignnone size-medium wp-image-82" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1323.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1323-300x225.jpg" alt="img_1323" title="img_1323" width="300" height="225" class="alignnone size-medium wp-image-83" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1324.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1324-300x225.jpg" alt="img_1324" title="img_1324" width="300" height="225" class="alignnone size-medium wp-image-84" /></a> </p>
<p>The first thing I did was boot up the Xubuntu Live CD image from a USB drive and wipe out the copy of vista that came with the machine. I swore to never touch vista when it was first released, and I wasn&#8217;t about to go back on my word. So I blew away the partition the machine came with and set it up to install both XP (in the event I ever NEED windows) and Xubuntu.</p>
<p><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1336.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1336-300x225.jpg" alt="img_1336" title="img_1336" width="300" height="225" class="alignnone size-medium wp-image-88" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1344.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1344-300x225.jpg" alt="img_1344" title="img_1344" width="300" height="225" class="alignnone size-medium wp-image-89" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1349.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1349-300x225.jpg" alt="img_1349" title="img_1349" width="300" height="225" class="alignnone size-medium wp-image-90" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1356.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1356-300x225.jpg" alt="img_1356" title="img_1356" width="300" height="225" class="alignnone size-medium wp-image-92" /></a></p>
<p>The only downside was that many of the things that needed to be tweaked to run on the machine I didn&#8217;t know how to do in Xubuntu, so I tried Kubuntu since I read everything worked out of the box on it. In the end, even that turned out to be too much hassle for the moment, so I opted for Ubuntu as I wanted to be using the machine that Monday. I had also planned to install the 64-bit version of XP, but the thing didn&#8217;t want to run properly once installed so I ended opting for the 32-bit version. After all, I wasn&#8217;t really going to be using it that often (if at all) and I was running the 64-bit version of Linux, so I was OK with the decision.</p>
<p><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1397.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1397-300x225.jpg" alt="img_1397" title="img_1397" width="300" height="225" class="alignnone size-medium wp-image-94" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1400.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1400-300x225.jpg" alt="img_1400" title="img_1400" width="300" height="225" class="alignnone size-medium wp-image-95" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1404.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1404-300x225.jpg" alt="img_1404" title="img_1404" width="300" height="225" class="alignnone size-medium wp-image-98" /></a><a href="http://joefleming.net/wp-content/uploads/2009/03/img_1409.jpg"><img src="http://joefleming.net/wp-content/uploads/2009/03/img_1409-300x225.jpg" alt="img_1409" title="img_1409" width="300" height="225" class="alignnone size-medium wp-image-96" /></a></p>
<p>As you can see, I also pulled all the stickers off the front of the machine (relocating all but the vista sticker to the bottom) for a sleeker look. You can also see a size comparison of the new machine with my old 15-incher. Considerably more portable, to say the least. </p>
<p>So far, I&#8217;ve used Skype to make video calls, I&#8217;m running all kinds of flashy Compiz goodies and even with constant use I get just over 4 hours of battery life. It&#8217;s not the perfect machine, but it&#8217;s really, really close, and for the price, I&#8217;ve got no regrets. I&#8217;ll leave the post at that for now until I have some more time to tweak the machine, but so far it&#8217;s running beautifully!</p>
]]></content:encoded>
			<wfw:commentRss>http://joefleming.net/2009/03/11/my-sweet-new-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Drive Failures in RAID-5</title>
		<link>http://joefleming.net/2009/01/29/multiple-drive-failures-in-raid-5/</link>
		<comments>http://joefleming.net/2009/01/29/multiple-drive-failures-in-raid-5/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 18:14:53 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Computers & Technology]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://joefleming.net/?p=51</guid>
		<description><![CDATA[I have a server set up with a RAID-5 array that I use to back up pretty much all of the data I have. Sure I have a bunch of things burned to DVD, but at only 4.3GB a pop, that can very quickly add up to a number of DVDs, and in fact already [...]]]></description>
			<content:encoded><![CDATA[<p>I have a server set up with a RAID-5 array that I use to back up pretty much all of the data I have. Sure I have a bunch of things burned to DVD, but at only 4.3GB a pop, that can very quickly add up to a number of DVDs, and in fact already has. My server is actually an upgraded version of my old machine, running 4 500GB drives in a RAID-5 configuration. Since I&#8217;m cheap and don&#8217;t care all too much about performance, I use software RAID in Debian with mdadm running the show.</p>
<p>A short while ago, I had a drive that started clicking every time I would transfer large amounts of data to of from the box. Since all of the drives are mounted on the same bracket, it was nearly impossible to tell which drive was actually doing the clicking. I had a spare that I picked up a while back, so I figured I would wait for the drive to fail and then simply replace it. The problem was, when the drive finally did fail, another drive also failed with it, and if you know anything about RAID-5, you know it can only handle 1 drive failing at a time. Things were looking bad.<br />
<span id="more-51"></span><br />
I noticed, however, that both of the drives failed at the same time, which made me think that only the first drive was an actual failure and that either mdadm, the drive controller or something else cause the system to think that the other drive also failed. This was my only hope, so I set forth re-adding the second failed drive to the array and crossing my fingers.</p>
<p>In my case, /dev/sdc1 and /dev/sdd1 were the 2 drives that failed. /dev/sdc went first, so I suspected that /dev/sdd was still ok. After some prodding of the <a rel="ext" href="http://plug.phoenix.az.us/">PLUG</a> mailing list and a little poking around on Google, I was able to solve my problem. First, I needed to see if I could verify that /dev/sdc was really the drive that failed; I did this with mdadm&#8217;s &#8211;examine function.</p>
<p><code>sudo mdadm --examine /dev/sda1<br />
sudo mdadm --examine /dev/sdb1<br />
sudo mdadm --examine /dev/sdc1<br />
sudo mdadm --examine /dev/sdd1</code></p>
<p>Why do all of the drives? Well, I was looking for a sign of inconsistency or other problems. Sure enough, the superblock data on /dev/sdc was different from the other 3 drives, leaving me pretty confident that my plan would work. All I had to do now was replace the drive and figure out how to tell mdadm to use /dev/sdd1 even though it thought the drive was a goner.</p>
<p>Since I use 4 of the same drives and for whatever reason the /dev label don&#8217;t match up with the controller labels (ie. /dev/sda is not on port 1 of the card), I needed to find out the serial numbers of the drives. There are a couple ways to do this, but for whatever reason, only smartctl worked for me. Here&#8217;s a couple ways to look it up (where /dev/sdX is the device you are trying to find information about, like /dev/sdc in my case):</p>
<p><code>sudo hdparm -i /dev/sdX<br />
sudo smartctl -a /dev/sdX</code></p>
<p>Once I knew the serial number, I shut the box down, replaced the drive and booted back up. Now I just needed to format /dev/sdc1, add /dev/sdd1 back to the array, add /dev/sdc1 as a new device to the array.</p>
<p><code>sudo fdisk /dev/sdc (set up 100% of the drive as a Linux-raid Autodetect)<br />
sudo mdadm --assemble --force /dev/md0 /dev/sda1 /dev/sdb1 /dev/sdd1<br />
sudo mdadm --manage /dev/md0 --add /dev/sdc1<br />
cat /proc/mdstat</code></p>
<p>That last line shows the status of all mdadm arrays running. When I ran it, it told me that all 4 drives were online and that the array was rebuilding/resyncing all of the information. 9 hours later, I was up and running. </p>
<p>As an aside, I&#8217;ve had <strong>terrible</strong> experiences with 500GB drives. I the past year I&#8217;ve had 2 of them fail on me (both Seagate). I&#8217;ve also had about 3 160GB drives fail on me (2 Seagate, 1 Western Digital) within the past 3 years. In nearly every case, the drives were still under warranty. Because of the rapidly declining quality of hard drives today, I&#8217;ve been keeping my data spread across a number of sources, some even in triplicate. Since this last failure, I&#8217;ve switched from 500GB Seagate drives to 1TB Western Digital drives and I&#8217;ll have to see how that decision plays out in the long run. </p>
<p>For now, I&#8217;m backing up the entire array on to another 1TB drive and I plan to replace the array with a simple RAID-1 array made of 2 1TB drives while still keeping another backup on a 3rd, external 1TB drive. I have a daily cron job that pulls data from all of my machines and even my web server and backs them up in various locations. The moral of the story I guess is that it&#8217;s good to know how to fix your equipment, but you need to be ready for a catastrophic failure by keeping meticulous backups of your most crucial information.</p>
]]></content:encoded>
			<wfw:commentRss>http://joefleming.net/2009/01/29/multiple-drive-failures-in-raid-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#8217;ll Have One of Your Finest Arduinos, Please</title>
		<link>http://joefleming.net/2008/05/27/ill-have-one-of-your-finest-arduinos-please/</link>
		<comments>http://joefleming.net/2008/05/27/ill-have-one-of-your-finest-arduinos-please/#comments</comments>
		<pubDate>Wed, 28 May 2008 04:14:37 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Computers & Technology]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://joefleming.net/?p=23</guid>
		<description><![CDATA[I&#8217;ve seen all kinds of really cool projects that use the fancy new Arduino microcontroller. I&#8217;m not the biggest fan of C or C++ (to be honest, I hate them both), but the Wiring model and the Processing environment seems interesting. So much so that I decided over this long weekend that I wanted to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen all kinds of <a href="http://www.homebrewtalk.com/showthread.php?t=49645">really</a> <a href="http://news.cnet.com/2300-1041_3-6198780.html?part=dht&#038;tag=nl.e433">cool</a> <a href="http://blog.makezine.com/archive/arduino/?p=2">projects</a> that use the fancy new <a href="http://www.arduino.cc/">Arduino</a> microcontroller. I&#8217;m not the biggest fan of C or C++ (to be honest, I hate them both), but the Wiring model and the Processing environment seems interesting. So much so that I decided over this long weekend that I wanted to get in on the fun on purchased a <a href="http://www.adafruit.com/index.php?main_page=product_info&#038;cPath=17&#038;products_id=68">kit from Adafruit</a>. Sure I could have gotten it cheaper and ditched all the extras, but it seemed reasonable given that it comes with the Protoshield, breadboard, a couple power options, USB cable and some extra goodies to get me started out of the box. I figured it was all worth it.</p>
<p>I have some ideas for the normal automated plant watering, temperature-based fan controls and email and chat LED alerts, but I don&#8217;t have any revolutionary plans for the device. Talking to Jason, he gave me the idea of controlling motors with the unit which got me thinking back to the Assembly-based cars we coded for in college. I can see putting together a little car that can sense and route around obstacles and he suggested mounting some IR transmitters to turn TVs in the area on and off at random, which would be pretty fun too. I caught <a href="http://homepage.ntlworld.com/bigup2bigal/graffiti.htm">this &#8220;Large scale DOT Matric printer&#8221;</a> on Hackaday too, which made me think about feeding images into the device and having it drive motors to actually create them on a large scale either like a DOT Matrix printer or a planer.</p>
<p>Anyway, we&#8217;ll see how much I do with this thing and how far I get. If nothing else, it&#8217;s an excuse to get back into hardware hacking. And if things go well, I can actually start posting projects up here. If you have any ideas for cool things to try out or questions about the unit, please post in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://joefleming.net/2008/05/27/ill-have-one-of-your-finest-arduinos-please/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

