Recover the system hive of a Windows server

ANALYSIS
The Windows server registry is the place where angels fear to tread. It's a mysterious spot with strange spellings, quirky capitalisation, and odd characters, but it's also the heart of your server's configuration. If there's a problem with a Windows server's registry, the entire network could suffer. I'm going to describe some problems with the system hive of the registry and explain how to recover from them. A registry refresher
The registry is a database that records and updates all the settings and changes you make on the computer. If you change your wallpaper or your display settings or install software on your server, Windows 2000 records these changes in the registry. The registry consists of subtrees, keys, values, data types, and hives. Subtrees represent the logical structure of the registry. Keys, values, and data types are the information contained in the registry subtrees. They are all part of the registry's logical structure. Data types represent the kinds of data the registry is expected to record (for instance, simple text strings or binary information). Hives, on the other hand, represent the registry's physical structure. You can edit your server's registry using two utilities, Regedit (Regedit.exe) and Regedt32 (Regedt32.exe). Other than appearance, the difference between the two registry editors is fairly small. Principally, Regedt32 offers a security feature called Read Only Mode that, when selected from the Options menu, allows users to read the registry but not edit it. This minimises the risk of users making small mistakes with big consequences. Regedit doesn't have this feature, but it does offer a direct path to all of the subtrees instead of requiring you to jump from window to window. Even though both tools look different and have subtle internal differences, they're referred to by the same name, the Registry Editor. The system hive holds your configuration settings
The system hive contains the system configuration information a machine needs to boot up correctly -- which drivers to load, information on hardware profiles, what services to start, and which software settings to implement. You'll find the system hive in the Registry Editor at Hkey_local_machine\system. The system hive stores configuration data in the CurrentControlSet subkey. Just like any database file, the system hive exists as a physical file on your server's hard drive. You'll find it in the %systemroot%\system32\config directory. If you look in this directory, you'll see a bunch of files, including one called System and another called System.alt. System is the system hive, and System.alt is a complete copy of the system, for fault-tolerant purposes. Problems with the system hive
Various limitations to the size of the system hive file can cause problems. To load and execute properly, the system hive file should be no larger than 13 MB. If it's larger, the Windows 2000 boot process will fail. This limit exists because the system hive loads in a low-level environment in which only 16 MB of RAM is available to the boot process. The system hive loading process must share that 16 MB with the NT loader, the NT kernel, the HAL, and any required boot drivers. On a typical server, that doesn't leave much RAM to spare, so a big system hive can cause the boot process to fail. The system hive file can be quite large even in an ordinary machine. For example, one of the machines I run is a laptop with various standard applications. It's not a heavy-duty machine by any means, but the system hive is 2.6 MB. Another machine I run as a testing server has a system hive of 5.5 MB, and it's not doing anything really fancy either. Add to this the fact that as the system hive grows, it becomes fragmented. Fragmentation is bad in itself, but it also leads to file corruption. If all this happens to your system hive, you're going to have a dead server on your hands before too long. You can limit the size of the system hive so that it doesn't grow beyond 13 MB, but that doesn't work with Windows 2000 domain controllers. It may work with servers that are running a significant number of shared resources and whose registries are too big. If your server falls into this category, you can check out the Microsoft Knowledge Base for the registry entries you need to make.

Post your comment

In order to post a comment you need to be registered and logged in.

You can also log in with Facebook. Log in or create your ZDNet UK account below

  • Login

Will not be displayed with your comment

By signing up for this service, you indicate that you agree to our Terms and Conditions and have read and understood our Privacy Policy. Questions about membership? Find the answers in the Community FAQ

Get ZDNet UK's daily newsletter

Enter your email address to sign up

ZDNet UK Live

bordero

ike fuelband is great for every healthminded person ! to work out! theres this website called textme4free.com that you can use to text anywhere in...

7 hours ago by bordero on Nike's FuelBand wristband gamifies exercise
BrownieBoy

> I'm told it's somewhat annoying when people have their Macs stolen > and Apple stores treat the thief as the owner, but there you go. Ouch,...

9 hours ago by BrownieBoy on AMD Ultrathins to challenge Intel Ultrabooks
Moley

@kevinmchapman. OK, I acknowledge that 'most' was a gratuitous throwaway comment as an afterthought and too presumptuous. As to proof, as you...

14 hours ago by Moley on A tale of two distros: Ubuntu and Linux Mint
Jack Schofield

@BrownieBoy > Works really well for thieves.... >> Nice attempt to deflect the argument by tossing in a point that's totally >> irrelevant, even...

15 hours ago by Jack Schofield on AMD Ultrathins to challenge Intel Ultrabooks
raskolnikof

fantastic that the so called piracy bills have been withdrawn. however, these anti-democracy supporters are still in the shadows so lets be alert...

15 hours ago by raskolnikof on SOPA, Protect IP support wavers in face of online protest
Tony Douglas

Please God no; teach them anything you like - thinking rationally, the uses and misuses of data, what data is and what it's not - but leave the...

18 hours ago by Tony Douglas via Facebook on Kids are the future. Teach ’em to code.
BrownieBoy

@Jack, > Works really well for thieves.... Nice attempt to deflect the argument by tossing in a point that's totally irrelevant, even it were...

1 day ago by BrownieBoy on AMD Ultrathins to challenge Intel Ultrabooks
bootlegger

Make that 13 people now - I got refused today at Manchester airport. I thought I was up to date on this legislation - I knew of the EU ruling from...

1 day ago by bootlegger on UK airport body scans will not be opt out
tinycg

Don't forget to check out apps like GoodReader or SlideShark either, they're indispensible for people on the go in presentation situations. Best...

2 days ago by tinycg on Four top iPad apps for people on the move
TerryRK

Well it seems there is something a number of us agree on. Why is the Ubuntu Unity launcher so ugly? I thought perhaps it was something to do with...

2 days ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Freebies202

Duplicate comments are not made intentionally. Its very good to know that now you are keeping check on this problem because sometimes a commenter...

2 days ago by Freebies202 on Microsoft fixes blog comments, speeds up blogs with open source
kevinmchapman

"the very significant number of users" and "many (most) of us" - you have no evidence for these statements. It is a fact that most users are saying...

2 days ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
Marg Menzies Harrison

Another grammar faux pas is the improper use of "you". When sitting down down in a restaurant, for example, I get cringe when the waitress...

3 days ago by Marg Menzies Harrison via Facebook on 10 flagrant grammar mistakes that make you look stupid
zdnetukuser

And NOW, folks, for Canonical's next trick... Kubuntu is late. Here's a pencil. Draw your own conclusions. cf.:...

3 days ago by zdnetukuser on Linux Minterface
Moley

@kevinmchapman. The discussion here reflects the very significant number of users who really do like the traditional menu system and who wish to...

3 days ago by Moley on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

Er, no... It is an efficient means of finding the application/file/setting you need in one place. The icons are a simply a fallback for when you...

3 days ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

Isn't the provision of a text based search an admission by the developers that the mass of icons approach does not work? I don't need to use a...

3 days ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
kevinmchapman

"Unity and GNOME 3 both abandon the old text-based cascading menus in favour of a graphical icon-driven system." Point truly missed. Both use a...

3 days ago by kevinmchapman on A tale of two distros: Ubuntu and Linux Mint
TerryRK

whs001 - Thank you, I'm glad you liked the article. I absolutely agree with you on your first point. I should perhaps have made it clearer that...

3 days ago by TerryRK on A tale of two distros: Ubuntu and Linux Mint
Dennis Nilsson

If we allow corporate interest to dictate the way our government circumvents due process against foreign entities then we should accept the same...

3 days ago by Dennis Nilsson via Facebook on ACTA stumbles in Germany