Recover the system hive of a Windows server

Restoring the system hive with an ERD
To restore the system hive with a recently created ERD, start an instance of the Recovery Console. At the command prompt, type the following commands, pressing [Enter] after you type each one: cd system32\config
ren system system.old
ren system.alt systemalt.old
cd \winnt\repair\regback
copy system c:\winnt\system32\config During the process, you'll rename the corrupted System and System.alt hive files and replace them with the most recent version of the system hive from your ERD. While you're doing all this, you'll need your copy of the ERD. The repair process looks to it for various files, the most important of which is Setup.log, a record of all installed files with their cyclical redundancy check (CRC) data. With this information, Regback can restore your old system hive. In a perfect world, you'll have created your ERD within the last 48 hours, but in the real world, you'll probably have to deal with a server running a registry configuration that was backed up sometime between the original Windows 2000 OS installation and the present. Reboot the server and with any luck, you won't have too much software to reinstall. Restoring the system hive without an ERD
If you don't have a recent copy of the system hive saved to an ERD, you have two options for fixing the damaged system hive on your server: Fast Repair and the Recovery Console. Using Fast Repair
You can run Fast Repair from the Emergency Repair Process screen described above, but before you do, make absolutely sure that you have no other choice. If you run Fast Repair on a Windows 2000 domain controller, Windows 2000 will activate the system hive as it was when you first installed the operating system. Fast Repair looks in %systemroot%\repair for the requisite files, but these files won't have been updated to include any additional programs you installed on your server. For a domain controller, this includes things such as Active Directory. When Fast Repair finishes, you must reboot and reinstall all necessary software and drivers. When you finally get the domain controller going again, be sure to back up the system state daily so you can restore the Active Directory from Directory Services Restore Mode. Using the Recovery Console
You may also be able to save the day using the Recovery Console. When the Recovery Console command prompt appears, type the following commands, pressing [Enter] after you type each one: cd system32\config
ren system system.old
ren system.alt system Remember that System.alt is a complete copy of CurrentControlSet and thus is the most up-to-date version of the system hive. By renaming it, you're activating it as the new master copy of the system hive. Try to reboot. If it works, you're finished. This procedure should work, but it may not if the corruption/fragmentation of the system hive file has also compromised System.alt. If your system fails to boot because the system hive is too big, this approach won't help at all, because System.alt is a direct copy of System; no amount of renaming will change its size. The best you can do now from the Recovery Console is type the following commands, pressing [Enter] after you type each one: cd system32\config
ren system system.old
ren system.alt systemalt.old
cd \winnt\repair
copy system c:\winnt\system32\config This will rename the old System and System.alt files and copy the original system hive file from %systemroot%\repair back into %systemroot%\system32\config. Then, you must reboot and reinstall all necessary software and drivers. Don't break out in hives
Just because you've encountered a problem with your server's system hive, there's no reason to panic. The system hive is critically important, but if you've taken time to create an Emergency Repair Disk, you can get things working in short order. Even if you don't have an ERD, you're not out of luck. With a little extra work, you can get your server up and running again and not have to worry about data loss. Editorial disclaimer: The authors and editors have taken care in preparation of the content contained herein but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for any damages. Always have a verified backup before making any changes.
For a weekly round-up of the enterprise IT news, sign up for the
Enterpise newsletter. Find out what's where in the new Tech Update with our
Guided Tour. Tell us what you think in the
Enterprise Mailroom.

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...

2 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,...

5 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...

9 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...

10 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...

11 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...

13 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...

1 day 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...

2 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.:...

2 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...

2 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