Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


December 1996

How NT Protects Its Hives


RSS
Subscribe to Windows IT Pro | See More Registry Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Care and Feeding of the Registry

Windows NT has some built-in methods for protecting system hive files. First, in the NT system32\config directory, several files have no extension (the hive files) and an equal number have the same prefix and a . log extension. Open a .log file with Notepad, and you see garbage. What is it?

This "garbage" is Windows NT's way of protecting itself from failed updates to hive files. When a hive file is being changed (for example, when you edit the Registry), the . log files ensure an unfinished write operation does not corrupt the hive. Such corruption can occur when the system fails. Here's how the fault-tolerance process works:

  1. Changes to the hive are written to the hive's . log file with information about where in the hive the changes will occur, and these changes are flushed (i.e., immediately sent, not cached) to the disk.
  2. The system marks the hive file to signal that the file is in transition.
  3. NT enters the new data into the hive file.
  4. The hive file is marked to show that the change is complete.

If the system fails between steps 2 and 4, the information in the . log file is sufficient to restore the hive file to its previous condition. Thus, the . log file isn't a complete backup­it's a recovery tool in case of accidents.

. log files aren't the only fault-tolerance measure NT provides. The preceding procedure applies to all hive files except for system, which is required to boot the computer. For system, NT uses a . log file and, each time the system is booted, also backs up system to system.alt. You can't delete, move, or rename the system or system.alt files in system32\config. If the original system hive file is unavailable or doesn't work, NT can still boot the system. The .alt file becomes the system hive file, and a backup of it becomes system.alt.

NT's automatic fault-tolerance features work well most of the time. But when these protection measures can't help, (such as after reinstallation or when you make a change to the Registry that disables your system), you must rely on your own hive backups to restore system information.

End of Article



Reader Comments
useful information, but specific recovery actions are not specified.

nlouis4 December 18, 2003


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...


Security Whitepapers Reducing the Costs and Risks of Branch Office Data Protection

Solving Desktop Management Challenges in Healthcare

Solving Desktop Management Challenges in Education

Related Events The Increasing Threat of Financially Motivated Data Theft

Deep Dive into Windows Server 2008 R2 presented by John Savill

Introduction to Identity Lifecycle Manager "2"

Check out our list of Free Email Newsletters!

Security eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

Related Security Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement