mdlbear: (technonerdmonster)

Early last Sunday afternoon I noticed that the battery-charge indicator had vanished from (main laptop)Sable's Gnome panel. (That's sort of like the row of icons and such you see along the bottom of the screen on a Mac, except that I've configured it to go vertically down the left-hand edge, where it doesn't reduce the hight of my browser window too much.)

Hmm, says I to myself, maybe it will come back after a reboot. So I did that, and logging in presented me with an empty screen background. ??? A little more experimentation showed that only the Gnome-2 desktop was affected; the Ubuntu one (which I detest) worked fine. So did a console terminal, and SSH. The obvious next step was to run fsck, the file-system checker (and many hackers' favorite stand-in for a certain four-letter expletive).

Well, not quite the next step. Since I figured that fixing file-system corruption might possibly make things worse, I moved over to one of my spare laptops, Raven, sat Sable on the shelf next to my desk, and logged in on Sable with SSH. Then I went to the top of my working tree and ran make status to see what needed to be checked in. I think I've mentioned MakeStuff before -- it's basically a multi-function build tool based on GNU Make, and one of the things it can do is find every git repository under the top-level directory, and do things like check its status, or pull. (Commit takes a little more thought, so you don't want to do it indiscriminately.)

Then I ran MakeStuff/scripts/scripts/pull-all on Raven. Done.

Well, almost. There are a few things in my home directory that aren't under my working tree, mostly Desktop, Documents, Downloads, my Firefox bookmarks, and my Gnome Panel configuration. I hauled out a USB stick, fired up tar (like zip, except that it can save everything about a file, not just what DOS knows about). The command I actually used, because I probably forgot a few things (and should have excluded a few more, like Ruby and Perl), was

    rsync -a --exclude vv --exclude ?cache --exclude ?golang . \
          nova:/vv/backups/steve\@sable

And ran straight into the fact that USB sticks are usually formatted with a FAT filesystem, and limit files to 4Gb. Growf! Faced with the unappetizing prospect of shipping 17GB of backups over WiFi, I carried Sable over to my server and plugged in the ethernet cable that I leave hanging off the router for just such occasions. After that finished, I fired up Firefox bookmarked all my tabs, and exported tabs and bookmarks to an HTML file. Should have done that before I backed up everything, but I didn't think of it.

Finally, I was ready to run fsck and find out the bad news. I plugged in the USB stick with the Ubuntu live installer (one does not run fsck on a mounted filesystem!), brought up a terminal, and ran

e2fsck -cfp /dev/sda5 # check for bad blocks, force, preen

(Force means to do a full check even if the disk claims it's okay; "preen" means to make all repairs that can be done without human approval.) Naturally, after turning up a few dozen bad blocks, it told me that I had to run it manually. I could have replaced the -p option with -y, to say "yes" to all requests for approval; instead I left it off and hit Enter a hundred times or so. Almost all the problems were "doubly-claimed blocks", mostly shared between some other file and the swapfile. Of course. Fsck offered to clone those blocks, and I took it up on that offer. Then ran it again to make sure it hadn't missed anything. It hadn't. But it was still broken, no doubt because of all those corrupted files.

So this morning, after a couple of searches, I installed the debsums program, which finds all of the files you've installed, and compares their checksums against the ones in the packages they came from. The following command then takes that list, and re-installs any package containing a file with a bad checksum:

apt-get install --reinstall $(dpkg -S $(debsums -c) \
       | cut -d : -f 1 | sort -u)

Sable now "works" again. I know at one zip file was corrupted (it was a download, and I was able to find it again), and fsck doesn't appear to have kept a log, so broken files will keep turning up for a while. I know there aren't any bad zip files left because there's an option in unzip, -t, that compares checksums, just the way debsums does, so I could loop through all my downloads with:

for f in *.zip; do echo -n $f:\ ; unzip -tqq $f; echo; done

I have two remaining tasks, I think: one is to validate all of my Git working trees (worst case -- just blow them away and re-clone them), and then comes the really hard one: deciding whether I still trust Sable's SSD, or need to get a new one. And if I get a new one, how big? Sable and its 500GB drive were purchased together, used, from eBay, and brand-new 1TB SSDs are pretty cheap right now. So there's that.

Another fine post from The Computer Curmudgeon (also at computer-curmudgeon.com).
Donation buttons in profile.

mdlbear: blue fractal bear with text "since 2002" (Default)
raw notes )

A good walk, and we finally turned off our bottled water account now that we're using a filter -- much cheaper. On the flip side, my netbook isn't charging its battery. GRUMP!! Works fine on AC power, and there doesn't seem to be anything wrong with the battery itself.

I started upgrading Argo, my Thinkpad A30, to the latest Ubuntu. *sigh* It'll be nice to have a living-room machine with a decent keyboard, though.

Good links under the cut, as usual.

mdlbear: "Sometimes it's better to light a flamethrower than to curse the darkness" - Terry Pratchett (flamethrower)

My trackball is going Republican -- it keeps dashing off to the far right. Where did I go wrong?

mdlbear: (ubuntu-hello-cthulhu)

The main bit of hackery for the day was diagnosing Tatooine, an aging Fry's windows box (long since dual booted with Debian) that started out in the office, and most recently was used in the bedroom as Colleen's machine. Replacing Seymore, a slightly older Fry's box.

Tatooine had developed the bad habit of rebooting in the middle of the Windows boot sequence. We retired it when it developed the even worse habit of shutting off in the middle of the Linux boot sequence.

This morning I took advantage of a moderately new Vantec power supply I had sitting around, and gave it a try. Linux worked, of course. Windows still reboots -- something must have become corrupt. (OK, Microsoft has been corrupt for years. But I digress.) I'll have to see if the Windows partition is readable at all; I may be able to run the Windows games via Wine.

I also have to see whether I can make Seymore run now. If I remember correctly, a new power supply didn't help it, but it's worth a try. If not, I can always cannibalize it.

mdlbear: (hacker glider)

Yet another reason, if any were needed, not to like Macs. I pulled out my shiny new Lenovo thinkpad keyboard, which works like a dream. Nice touch, no errors. Trackpoint far enough down so that I don't touch it accidently. Three buttons. I've typed this entire paragraph with no errors due to missed or doubled keys. Perfect.

...but there doesn't seem to be an Apple key. Blerg. At least, if I use it for text, I won't go hitting Apple-W when I want to delete a word and end up deleting the window I was typing into.

There's a Thinkpad in my future, I suspect.

mdlbear: blue fractal bear with text "since 2002" (Default)

For some reason Kat's monitor (an ageing 17" Hyundai) has lost the ability to tell the computer at the other end of its cable what its resolution is. We'd just installed a new KVM switch, so I spent quite a lot of time thinking the problem was in the switch. At first it seemed to be -- last time she had problems, I took out the switch, plugged the monitor directly into the computer, and it worked. This time it didn't.

Swapped it with the 17" Samsung on the public system in the office downstairs. Now everything is happy -- Debian Etch on the downstairs machine is set up for fixed resolution, so it ignores the stupid lying monitor and Just Works(TM).

Meanwhile the taxes aren't done and there's practicing to do.

And did I mention that crawling around under desks is bad for my knees?

mdlbear: (penguin-rant)
... so Nova, my fileserver, has been up since about 6:30am this morning. This afternoon I noticed that SpamAssassin's daemon wasn't running, so spam wasn't getting filtered. I started it. A few seconds thereafter, Nova crashed.

I'm guessing either a corrupt application file, corrupt database, or something running out of memory. Possibly some combination. Running out of memory (or some other resource) could be a problem; the others may be fixable by purging and reinstalling spamassassin. Could conceivably be some other weirdness, up to and including a bug in Perl, but the fact that problems have been occurring with increasing frequency is highly suggestive of a problem with spamassassin itself.

15:40 Could also be flaky memory, of course. SA is big, so it could have pushed it over the edge into a bad block. I'll run memtest, though that's no guarantee.

20:11 Spamd is pretty small, and top shows plenty of space: 1G of RAM, about 1/3 full, and 2G of empty swap. I'll watch it for a while.

So far...

2008-01-15 10:15 am
mdlbear: (hacker glider)

Nova was down again when I got up this morning; I took it as an excuse to disconnect the SATA drives (which I should have done yesterday, but it was getting late). If that fixes it, it's probably a controller issue. If not, it's probably memory. Worst case, I can replace it with Harmony (my current workstation), which has been absolutely solid since I bought it. In fact, that MB/CPU used to be in Nova. Would use more power, but a faster CPU would help for printing and some file operations.

Spent some good time this morning talking with the [livejournal.com profile] chaoswolf about upcoming web projects and setting her up with an Ubuntu box. We'll use her old HP Windows box with the new 320GB IDE drive that I originally intended for a USB drive.

Foo

2008-01-14 08:59 am
mdlbear: (hacker glider)

The fileserver froze again last night -- this is getting old. I remain convinced that it's some kind of driver race condition: it's not happening with the near-identical drive on the recording box. It could also be due to lurking disk corruption causing it to hang on a read. In that case, a fsck might fix it. It might not.

In either case, I'm tired of fighting it. I'm dropping the fileserver back to a single IDE drive, and moving the (SATA) mirror to another machine. Hopefully by the time I need it, SATA support will be better.

Meanwhile, I have lots of other work to do, and I don't want to have to deal with random fileserver hangs on top of it all.

10:48 It's even having trouble staying up long enough to copy a partition to the new drive. So here's the plan:

plans within plans; wheels within wheels. Nothing to see here )

mdlbear: (hacker glider)

The new disk, in an external USB/eSATA enclosure, wouldn't stay up more than a couple of minutes at a time. And it wasn't spinning, down, either: just locking up. OK, that's not a hardware problem; it's probably the kernel not dealing properly with something in SATA II. Installed 2.6.22 from backports, and it seems to have worked. USB was horribly slow, and it doesn't seem to handle hotplugging an eSATA drive, but after a reboot it seems perfectly happy. The same kernel in the fileserver has been up ever since I installed it, and my Ubuntu-based recording studio hasn't had any problems.

So I'll have a couple of 400GB SATA drives free pretty soon. Three once I upgrade the mirror drive, but I want to wait for the price to come down a little. RAID box?

1/14 I may have spoken too soon -- there may also be some kind of controller issue. Or something. I'm dropping back to IDE on the fileserver.

mdlbear: (grrr)

Disconnecting the mirror drive -- the Maxtor, with errors -- had no effect on the main problem, which still appears to be the Seagate sticking its fingers in its ears and going "la, la, la" while the kernel sulks in a corner because nobody will talk to it.

I'm really unclear as to whether this is a problem with the Seagate drive itself, (there's another one, only slightly bigger, over in the recording box that still works fine), with file corruption of some sort (hard reset after a crash could easily have left some lingering problems on the disk), with SATA drives in general (highly unlikely -- they're working fine on my system at work), or with this particular BIOS (also unlikely).

I'm also wondering to myself whether I should drop back to PATA, or get a 500GB SATA drive. I'm leaning toward the latter, if only because I put my shiny new 500GB PATA drive in an external box and the magic smoke went out. Grump, indeed. Smelled like the magic smoke in the box, so the drive is probably still ok. One hopes.

Plus the fact that I have a pretty full schedule today, so I'm not going to have time to do much work on this, no matter how urgent.

 ...

My inclination is to start by reconnecting the mirror drive, fsck it, and see if I can get a clean backup. Then go to Fry's and get one of the Maxtor 500 SATA's they have on sale. Then we'll see.

10:17 fsck done -- errors on both mirror/ and mirror/home, no doubt due to crashes while writing. Backing up now.

mdlbear: (grrr)

Based on the fact that a similar (bigger) drive has been running on my recording box for several days under UbuntuStudio, I'm trying a 2.6.33 kernel from backports.org. Might work. If it doesn't, Fry's is selling 500GB Maxtor SATA drives for $99 this weekend. They're a little older, so probably not SATA/300.

In case you were wondering, no, Seagate's DOS tool doesn't know how set most of the parameters on the drive. Their Windows tool does, of course. The probability that I'll be buying Seagate drives in the near future is diminishing rapidly.

Grrr

2008-01-09 08:54 am
mdlbear: (grrr)

Apparently an updated kernel is not enough to keep the fileserver from occasionally freezing. Memory or disk problems? Grumble. Wasn't planning to buy either just yet.

Annoyances

2008-01-07 09:39 pm
mdlbear: (grrr)

It seems some SATA drives have a tendency to spin down and not come back to life quickly enough to suit the drivers -- or even the BIOS. My fileserver, which has a pair of 400GB Seagates, seems to be afflicted. Twice, recently, I've come home and found it hung, and when I power-cycled the thing it took no less than two resets before the drives were happy. This does not make me happy.

As far as I can tell, every damned one of my four SATA drives has this problem, in varying degrees. Grrr. I seem to have it most often with drives that are left unused for a long time -- it mostly seems to hit the backup drives (though not always). For now I'm enabling swap on my mirror drive; I don't think it was this bad back before I disabled it to save wear and tear on the drive.

But I'm seriously considering sticking them in a RAID box where they'll get plenty of exercise, and replacing them with IDE drives. Not what I was planning to spend money on, though.

Meanwhile, I've been spending the last hour or so running malware scans on the [livejournal.com profile] flower_cat's stupid Windows machine. And disabling the virus scanner, which seems to be causing a host of problems all by itself. Did I mention that I *HATE* Windows?

22:19 Did I mention that I'm an idiot? Seems the fileserver's bootloader menu is a mix of various and sundry old bits that don't go together anymore. No, I do not want to boot from the swap partition! Nor do I want the year-old multimedia kernel that seems to have stuck itself in for the hell of it. That's the problem with not rebooting for a long time...

mdlbear: (hacker glider)

Spent most of the morning plugging my new recording rig together. This mainly involved clearing off the little tray table I'm using as a desk so as to have enough room for the Delta 1010's rackmounted DAC/ADC box, chasing down patch cables for the two preamps and the headphone amp, plugging all the wall warts into the squid, and routing cables back to the computer.

Work was interrupted by the need to go out to OSH (Orchard Supply Hardware) for a little plastic garden shed they had on sale. [That reminds me: now that there are people in the house I have to assemble an unloading detail. It's all assembled (a major factor in deciding which of the two possible sheds to buy), so the box is bulky but not too heavy.]

There was one nasty moment when I flipped the switch on the squid and the 1010's power light didn't come on. I searched all over for a power switch and finally decided to see if it was waiting for the computer to power up. It was. Dorsai booted up (there are still quite a few configuration tweaks that need doing -- I haven't done serious work in Ubuntu before -- but those can wait) and the meters on envy24control lit up when I snapped my fingers in front of the mics. So it'll all work.

And my Lenovo Thinkpad keyboard arrived this evening shortly before the pizza -- comes with a lovely black leather-looking carrying case, too.

And one of the Wednesday crowd ([livejournal.com profile] hellloooonurse) brought along his new radio-controlled dalek.

So I'm a happy geek.

mdlbear: (hacker glider)
MAKE: Blog: Open Source Hardware Gift Guide
...this year there is so much going on in the world of MAKE, open source, and beyond that we have a series of gift guides for this holiday season. The first one is our open source hardware gift guide - these are physical things you can buy that fit in to the new and exciting category of hardware we call open source hardware.
mdlbear: (knit-tank)
Suissa Computers: All-Wood Cases Elevate PCs to the Heirloom Level - Gizmodo
droolworthy pictures )
The company itself is suissacomputers.com/ Prices are about what you'd expect when you add the prices of a high-end computer and a piece of elegant custom woodworking.
mdlbear: (hacker glider)
Epiacenter.com - transtec SENYO 600

A very nice-looking, extremely thin (42mm) Core 2-Duo PC. Sort of what happens when you step on a Mac Mini and squeeze out all the Apple juice. Ships with either Win$ XP Pro or Suse 10.1.

picture behind cut )

Shiny!

2006-08-29 09:37 pm
mdlbear: (hacker glider)

Just transferred about 1.3GB of concert data (two Audacity projects) from my MacTel laptop to my fileserver. Took under 5 minutes over gigabit ethernet. Yay for shiny new network hardware. (Had to sit the lappy on top of the laser printer because all I have in Cat6 or Cat5e at the moment are a couple of 1m patch cables.) Split-up concert pieces Real Soon Now.

The Mac has been a distinctly mixed bag. Sure, everything "just works", provided you drink the Apple KoolAid and haven't had over 20 years' worth of Unix experience setting your expectations. And we'll ignore the fact that I had to discharge the battery and leave the thing turned off and charging overnight to convince the power applet that it had anything other than an 83%-charged battery. I expect it'll make a nice Linux machine.

Meanwhile, the departure two weeks ago of our group's summer intern has freed up a lovely Dell widescreen (1920x1200) monitor, which is now sitting on my desk. I wasn't expecting to be able to get one until next fiscal year, having burned up this year's hardware budget on the Mac. It remains to be seen whether my desktop machine will drive it, but I'm hopeful. (Update: just added 1920x1200 to all the mode lists in xorg.conf, and it worked. You wouldn't think 320 pixels would make that much difference, but it does.)

mdlbear: blue fractal bear with text "since 2002" (Default)

I actually got a couple of things done today (surprise, surprise). First, I finished mounting all the pieces of my new recording system. You'll notice I didn't say "packaging" -- said pieces are all mounted "open-face" on a plastic clipboard, using 4-40 screws, standoffs, threaded rod, and a little bit of wishful thinking. However, the new motherboard booted up with the old hard drive, which is now the only moving part in the whole system. It's quiet, which is a Good Thing in a recording system. If the sound of the disk drive gets noticable, I'll go to a CF card. It really needs a re-install based on Etch.

The other thing I did was put up web pages for the two future albums: Amethyst Rose and Hackers' Heaven. Mainly because I promised myself and the Net that I would have them up by now. Two days late, and lacking even preliminary songlists, but better late than nothing.

mdlbear: (hacker glider)
Logic Supply -- VIA EPIA CN10000 Fanless Mini-ITX Mainboard

This will be the guts of my new recording system. The only real compromises I had to make were 100MHz ethernet instead of 1GHz (shaved about $90 off the price), and the poor floating-point performance of the VIA C7 CPU. One of the new Mac Minis would do a lot more, but would also have cost at least 4-5 times as much.
mdlbear: blue fractal bear with text "since 2002" (Default)
Western Digital Caviar SE16 500GB: Big Low-Noise Champ? | silentpcreview.com

What's not to like? Stop drooling on the keyboard, Bear!
mdlbear: (hacker glider)

It's getting close to the end of the fiscal year, so it's time to use up the leftovers in the budget. And my desktop machine, a 2.2GHz P4 with 1GB of RAM, was getting a little long in the tooth. The replacement is a Dell Optiplex GX620 -- 3GHz Pentium D with 2GB of RAM, a 250GB SATA drive and an ATI Radeon X600. I did a basic install of Debian Etch yesterday afternoon, and spent much of today getting it configured. I was delighted to observe that the current Etch installer knows how to resize NTFS partitions, so I was able to keep the Win$ install (might as well, since we'd already paid for it).

The only real problem so far has been that the X configuration program mis-identified the driver as "ati" when it should have been "radeon". With that fixed, X came right up. Probably version skew. The other glitch was that I didn't see the usual option of editing the apt.sources file by hand (probably just spaced out going through the menus), so it ended up taking an hour to download packages. If I'd been thinking I'd have waited to run tasksel until after the initial install.

It's a reasonably small, moderately quiet box; you can either stand it on edge like a little tower, or lay it down flat and maybe use it as a monitor stand. No PS2 ports, so you need PS2-to-USB adapters if, like me, you're addicted to particular models of antique keyboard (IBM Model M) and trackball (Logitech FX).

All-in-all it looks like a decent desktop machine; it'll probably take me most of tomorrow to copy my files over and fill in the holes in the install, but that's not too bad.

mdlbear: (hacker glider)

My new little fanless X system appears to be working -- it was up for over a day running a session on the recording box with a copy of audacity running (and with the input meters active, though it wasn't recording). Hopefully a new power supply will fix the mysterious shut-offs without my having to resort to a dummy load; I ordered a PicoPSU from the nice folks at LOGIC Supply.

No recording, though; the washing machine was running, somewhat noisily, so I decided to do dishes instead of taking another stab at "Silk and Steel". Tomorrow. (Yeah, I know. This time for sure...) Between five and seven songs left to redo, and only two that really have to be done before Consonance.

Most Popular Tags

Syndicate

RSS Atom

Style Credit

Page generated 2025-06-27 02:37 am
Powered by Dreamwidth Studios
OSZAR »