The Smell of Molten Projects in the Morning

Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.

Month: July 2010

  • New 1.5 TB USB Backup Drive

    Just got a new 1.5 TB USB drive (Western Digital Elements; every manufacturer has produced horror stores) for $85 delivered; I do not understand the economics of that business in the least. Anyway, this will become the external drive onto which the rsnapshot routine dumps the daily changes from the file server; the old 500 GB drive was 99% full, so it’s time to tuck that one in the fireproof safe.

    The NTFS partition had some weird-ass peculiarities that choked cfdisk, so I used parted to blow away the NTFS type=7 partition and create a new Linux type-83 partition. Strangely, the drive came with no shovelware, for which I’m grateful.

    sudo fdisk /dev/sde
    Command (m for help): d
    Selected partition 1
    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    p
    Partition number (1-4): 1
    First cylinder (1-182401, default 1):
    Using default value 1
    Last cylinder, +cylinders or +size{K,M,G} (1-182401, default 182401):
    Using default value 182401
    Command (m for help): w
    The partition table has been altered!
    

    Then build an ext3 filesystem:

    sudo mke2fs -j -m 0 -L 'Backup-1.5TB' -O sparse_super /dev/sde1
    

    The sparse_super option seems to make sense; if the drive fails to the point where you must go rummaging for more than one spare superblock, you’re probably not going to find any of them.

    Turns out you really should unplug / replug a USB drive after walloping its partition table. Took me a while to figure that out. Again. You’d think I’d remember.

    Then you find the partitions’s new UUID using any of:

    ll /dev/disk/by-uuid/
    vol_id /dev/sde1
    

    Then plug the UUID into fstab so the rsnapshot routine can mount the drive regardless of which device it wakes up as on any given day:

    UUID=77c75554-26a0-4bbc-a452-201c2150bf1a  /mnt/backup ext2 defaults,noatime,noauto,nodev,noexec,nosuid 0 0
    

    More on that from the last go-round there.

    The first backup took about six hours to copy 430-some-odd GB of data from the internal SATA drive. Call it almost exactly 20 MB/s; such a nice round number surely means a drive-limited data rate.

    Incidentally, if you need a shiny new UUID for some reason, uuidgen is your friend.

    Memo to Self: Just unplug the [mumble] drive.

  • Remembering Which Cells Need Charging

    My Sony DSC-H5 eats NiMH cells like candy, which means I must haul along a pocketful of the things. That means I often wind up with a case containing one charged pair and one uncharged pair.

    Ditto for swapping cells in the blinky lights on our bikes.

    Pop quiz: which pair is which?

    Battery Charge State Reminder
    Battery Charge State Reminder

    It’s pretty easy:

    • Nose-to-tail = as in the camera = charge ’em
    • Nose-to-nose = as in the charger = ready to use

    You could do some remote psychoanalysis based on that sort of behavior, but you’d be completely right.

  • Cleaning Up a Pipe Center

    I need this pipe center maybe twice a year and have hitherto managed to work around some nasty gouges and runout that came with it. But I finally cleaned it up by the simple expedient of dialing the compound to match the average angle (it was badly out of true) and skimming off enough to clear the surface.

    The trick was realizing that the teeny little shoulder between the taper and the cone was concentric with both. I grabbed it tight (yeah, in a three-jaw chuck), took sissy cuts, and hit the end result with a file to smooth things out.

    The remaining gouges are just fine by me.

    Cleaned-up Pipe Center
    Cleaned-up Pipe Center

    It had been center-drilled in the small end, but the opening had taken a real beating at some point. Neither the live nor the dead center sat correctly and I couldn’t figure out how to hold the thing to re-drill the end.

  • Shrinking Heat-shrink Tubing to a Specific Diameter

    Shrinking tubing on a mandrel
    Shrinking tubing on a mandrel

    I needed some black plastic tubes with several different IDs, which usually calls for some tedious machining. Then I realized I could just shrink some heat-shrink tubing around mandrels.

    Drill rod worked fine, as did a socket wrench. The only catch was avoiding the engraved lettering, which tends to lock the tubing firmly in place.

    In a pinch, I suppose you could turn a rod to the right OD and make a mandrel. That would likely be faster than machining a tube from solid stock, at least for me.

    Chuck the mandrel in the lathe, lean a box cutter against the tubing, turn it by hand, and cut to the right length with nice flat ends. Pry it off by sliding a fine needle between the tubing and the mandrel.

    You knew that already, right?

  • Aztek Brake Pad Inserts: Glazing Thereof

    Went on a ride around the block and after about 4 miles discovered I had no rear brakes. Well, the brakes were there and doing the right mechanical things, but without much friction.

    Did an expedient repair by squeezing strips of paper between the pads and the rim, then rolling the wheel. Came out black and graphite-looking, not oily, but didn’t improve the braking.

    Rolled the bike into the shop after the ride; 23 miles without a rear brake gets my immediate attention. Wiped a lot of black graphite-looking schmutz off the rim using denatured alcohol, filed the well-glazed pads to a nice finish, and reinstalled.

    These are Aztek pad inserts, which I’m trying out to see how they work. So far, not much; they seem less grippy than the ordinary Aztek pads (on the front and previously on the back) and certainly much more prone to glazing.

    Memo to Self: 7792 on the odometer.

  • Constraining a Sewer Snake

    Constrained sewer snake
    Constrained sewer snake

    Had the occasion to run the flexy snake through a kitchen drain that turned out to be not as plugged up as I expected, which is always good news. Replaced the cleanout plug, hosed off the snake, coiled it up, and applied the usual three nylon cable ties to keep the snake together.

    It took me years to figure out that last step. None of the old-school tricks work for me; I can’t tie knots in string / twine / rope while simultaneously holding those coils together and the snake resists any attempt to weave the loose ends into the bundle.

    Mercifully, I don’t use the snake all that often and I don’t feel at all bad about tossing three cable ties each time.

    You figured that out long ago, right?

  • OpenOffice 3.2 Graphics Cache Settings

    The default OpenOffice 3.2 graphics cache is probably large enough for ordinary documents. However, I put together a 9-page illustrated biography for a birthday party last year using (most likely) OOo 3.1 and that file dragged OOo 3.2 to its knees.

    The default cache settings are something like

    • 20 MB
    • 2 MB per object
    • 20 objects

    Crank those to

    • 256 MB
    • 5 MB per object
    • 50 objects

    Much better!

    I’m sure that depends on what you’re doing and how much memory your PC has, but when OOo gets really pokey on a graphics-intensive document, check the cache.