Profile

unixronin: Galen the technomage, from Babylon 5: Crusade (Default)
Unixronin

December 2012

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829
3031     

Most Popular Tags

Expand Cut Tags

No cut tags
Tuesday, April 27th, 2010 01:37 pm

Once again, a question has come up on the Bacula users' list about restoring just the registry of a Windows box that has corrupted its SOFTWARE registry hive to the point that it won't boot.

I put it to you that of all the "innovative" ideas that Microsoft has built into Windows over the years, the Windows Registry is the worst.  It is opaque, it is fragile, it is difficult to back up, clean out or repair, you can pretty much only repair it from Windows itself which means that it's almost impossible to repair it when — not if — Windows corrupts it, and all kinds of noxious things can be buried inside it by malware.  Not only does Windows periodically outright corrupt the registry, but from the first time you boot a new Windows installation the registry starts accumulating cruft and droppings that gradually bog the machine down and introduce cryptic malfunctions with no readily determinable cause.  Things that worked yesterday just stop working for no apparent reason.

Combine with opaque hexadecimal-string registry key names created by various things, so that you can't even tell what some random leftover registry key belongs to or whether it's still in use, and it's a recipe for disaster.  That disaster has been ongoing for fifteen years now, and there's no end in sight.

The saddest part about the whole thing is that Microsoft actually believed that this massive, opaque, monolithic, unmaintainable monstrosity would be an improvement.

Tags:
Wednesday, April 28th, 2010 07:08 am (UTC)
It's just a big key/value hash table with symlinks in it for current user/system. Its functionally the same tech that a lot of newer storage systems use (BigTable, memcached, etc.)

Utilities exist to back it up, restore it, and repair it. Heck, if I recall, there are command line utilities built into Windows to do a lot of that. The trick is that it's not common knowledge what they are or how to use them.

I haven't honestly had too many registry fragility issues, but ones introduced by applications can be rolled back as long as you install using any number of freeware configuration-change monitors.

One thing I will agree with is that Microsoft's use of UUIDs and similar for system keys gets overly arcane. OTOH, not sure I like Apple's plists all that much either, and Unix's use of rc/conf files is awesome, but often a little opaque and confusing too.

The one thing I'll give Unix is that changing a whole-system config usually has to be a proactive thing, so the SA knows what changes are there. Unless you're using SuSE's YaST, then it's a crapshoot. :)

Basically, every config system I've used is annoying in some way. But what I think you're really bumping up against isn't a bad config system as much as it is that Windows users generally aren't trained or inclined (or forced) to manage their system in the way that Unix admins do.
Wednesday, April 28th, 2010 03:27 pm (UTC)
Utilities exist to back it up, restore it, and repair it. Heck, if I recall, there are command line utilities built into Windows to do a lot of that.
Yes, they do. But the ones included with Windows are very limited in what they can do, and all the third-party ones I'm aware of are both non-free and require a working Windows to run on — as, to the best of my knowledge, do the included Windows tools. So either way, if Windows has managed to piss in its registry badly enough that it won't boot, you're screwed, because if you can't boot, you can't run the tools to repair the registry that's stopping you from booting.

Third-party registry cleaner tools exist, too. I've tried several. Some are fairly reliable. But all of them warn up front that beyond a certain point, they're guessing when it comes to repairing bitrot or removing keys that they don't think anything owns any more, and that if it hoses your registry, you're on your own.
Wednesday, April 28th, 2010 06:30 pm (UTC)
Ooh! I just got pointed at this:

http://www.larshederer.homepage.t-online.de/erunt/

Registry backup, restore, and optimization tools for Windows NT/2000/2003/XP. (Also works on Vista and 7, with some minor workarounds.)