<?xml version="1.0" encoding="UTF-8"?>
<essay xml:lang="en" version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:gal="http://norman.walsh.name/rdf/gallery#" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<info>
    
    
    
    
    
    
    
    
<title>Agony</title><biblioid class="uri">http://norman.walsh.name/2008/01/26/agony</biblioid>
<volumenum>11</volumenum>
<issuenum>15</issuenum>
<pubdate>2008-01-26T14:07:52-05:00</pubdate>
<date>$Date$</date>
<author>
      <personname>
<firstname>Norman</firstname>
	<surname>Walsh</surname>
</personname>
    </author>
<copyright>
      <year>2008</year>
      <holder>Norman Walsh</holder>
    </copyright>
<abstract>
<para>A cautionary tale of assumptions and carelessness, standards and
non-standards.</para>
</abstract>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#Gadgets"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#MakeStuff"/>
</info>

<para xml:id="p1">Let me begin by acknowledging that
I have little practical experience with electronics and
that I am entirely responsible for all of the consequences of my
actions. I was careless.</para>

<para xml:id="p2">This story begins where <link xlink:href="http://norman.walsh.name/2008/01/22/shelf">the shelf
story</link> ends. I wanted to move a couple of hard drives off my
desk down onto that shelf, an easy thing to do requiring no particular
skill. But I also wanted to do a little tinkering and satisfy my inner
lazy lout by putting switches for the drives within easy reach.</para>

<mediaobject role="flickr">
    <!--Switches-->
  <imageobject xlink:href="http://www.flickr.com/photos/ndw/2221416586/">
    <imagedata fileref="http://farm3.static.flickr.com/2129/2221416586_07513ffd9c.jpg"/>
  </imageobject>
</mediaobject>

<para xml:id="p3">Which I did. Before we go any further, let's inventory the
parts, shall we?</para>

<mediaobject role="flickr">
    <!--Power and data (internal)-->
  <imageobject xlink:href="http://www.flickr.com/photos/ndw/2220553013/">
    <imagedata fileref="http://farm3.static.flickr.com/2370/2220553013_0249a00da1.jpg"/>
  </imageobject>
</mediaobject>

<para xml:id="p4">Inside the enclosure, we have a power connector (with 5v, 12v, and
two ground wires) and a data
connector (IDE). Both completely standard, as far as I know. You can pop any IDE
drive in there and it'll work.</para>

<mediaobject role="flickr">
    <!--Power and data (external)-->
  <imageobject xlink:href="http://www.flickr.com/photos/ndw/2221346550/">
    <imagedata fileref="http://farm3.static.flickr.com/2056/2221346550_2a7f1a174a.jpg"/>
  </imageobject>
</mediaobject>

<para xml:id="p5">Outside, we have a power connector and a USB connector.</para>

<mediaobject role="flickr">
    <!--USB cable-->
  <imageobject xlink:href="http://www.flickr.com/photos/ndw/2221347368/">
    <imagedata fileref="http://farm3.static.flickr.com/2139/2221347368_4eb3402b76.jpg"/>
  </imageobject>
</mediaobject>

<para xml:id="p6">The USB cable is completely standard, one of several standards in fact,
but they can all be distinguished by different connectors, I believe.</para>

<mediaobject role="flickr">
    <!--Power cable-->
  <imageobject xlink:href="http://www.flickr.com/photos/ndw/2220554937/">
    <imagedata fileref="http://farm3.static.flickr.com/2223/2220554937_0d474d462a.jpg"/>
  </imageobject>
</mediaobject>

<para xml:id="p7">And finally, we have the power cable. It's a standard size and
shape, a shape designed to guarantee that it can only be connected in
one orientation. It has six wires, two for
ground, two for 12 volts and two for 5 volts. The power brick on the
other end of the cable is also apparently standard, at least all the
ones I have deliver 5 and 12 volts at 2 amps.</para>

<para xml:id="p8">I took a couple of bricks from some old USB enclosures that I
bought on the cheap from eBay, cut the cable on the DC-side of the
brick, wired in my switches, and put everything together.</para>

<para xml:id="p9">Reluctant to assume that I'd got the soldering and wiring right,
I plugged a drive (one that I've abandoned due to read errors) into
one of the USB enclosures from which I scavenged the bricks, and
flipped the switch. The drive powered up. I plugged in the other brick
and flipped the other switch. The drive powered up. Everything seemed
just dandy.</para>

<para xml:id="p10">I moved the real drives down to the shelf, got everying nicely
stored, used some zip ties to keep it neat and tidy, and powered up
the real enclosures.</para>

<para xml:id="p11">Nothing. Nada. Bupkis.</para>

<para xml:id="p12">Odd, I thought, since it worked a minute ago.</para>

<para xml:id="p13">I put the first enclosure back on its original power supply and
fired it up. Worked fine.</para>

<para xml:id="p14">I put the second enclosure (the one with two drives, a
half-terabyte and another 200G) back on its original power supply
and fired it up.
</para>

<para xml:id="p15">Nothing. Nada. Bupkis.</para>

<para xml:id="p16"><emphasis>Now</emphasis> I take a really close look at the
various and sundry bricks I've got. Guess what I discover. Go on,
guess.</para>

<para xml:id="p17">While the power connector is a standard shape and size, has a standard
number of pins, and delivers standard amounts of power, <emphasis>the actual
pins used</emphasis> differ from one brick to another.</para>

<para xml:id="p18">On one enclosure, I've transposed 12v and ground. On the
other, I've transposed 5v and 12v.</para>

<para xml:id="p19">At this point, I'm feeling a bit of pain and remorse. I'm also
feeling pretty stupid. And wondering by what miracle of chance I've
never before plugged the wrong power brick into an appliance.</para>

<para xml:id="p20">The pain and remorse take on a kicked-in-the-stomach sort of
quality when I discover that I haven't damaged the enclosure, I've
fried both drives. Put in another enclosure, the half-terabyte drive spins
up but is never seen by the computer; the 200G begins immediately to
smoke.</para>

<para xml:id="p21">The real kicked-in-the-balls agony begins when I realize that
the larger “backup” disk in fact contained the only copy of a bunch of
video data.</para>

<para xml:id="p22">Repeat after me: <emphasis>a backup disk is not a backup if it
contains the only copy of your data.</emphasis></para>

<para xml:id="p23">A short drive and $150 dollars later, I have a new half-terabyte
of disk and I've retrieved my offsite backups. The video data is not
on them.</para>

<para xml:id="p24">Several hours later, I have restored all of the video data off the
original MiniDV tapes. I will not have to explain that I've lost all of the
video footage from Egypt.</para>

<para xml:id="p25">The day is shot, but several valuable lessons have been learned.</para>

<orderedlist>
<listitem>
<para xml:id="p26">A backup is not a backup if it is your only copy of the data.</para>
</listitem>
<listitem>
<para xml:id="p27">Just because things look standard doesn't mean they are.
Always check.</para>
</listitem>
<listitem>
<para xml:id="p28">Fuck up in software, your software won't run right until you fix it.
</para>
</listitem>
<listitem>
<para xml:id="p29">Fuck up in hardware, your hardware won't ever run again.
</para>
</listitem>
</orderedlist>

<para xml:id="p30">Here's hoping someone out there can learn them
vicariously.</para>

</essay>

