我曾经听到这么一个故事: 一个年轻的程序员问一个老程序员(一个比较牛逼的公司的CTO) 年轻程序员: 你为什么这么牛X., 就好像没有你不会的。老程序员: 积累的。年轻程序员: 怎么才能积累到您的程度呢。我每天都在积累。但是似乎都没有感觉到进步。老程序员: 我从20岁开始做到了一件事情,直到今天,而且尽可能地保证不间断。年轻程序员: 到底是什么? 老程序员: 我每天保证自己有2个小时在学习新的东西。

About Controlset

上一篇 / 下一篇  2011-01-25 15:55:47

转载。
1.先说一下ControlSet几个控件组之间的关系。
     在注册表HKLM\system注 册表项中包括用于windows启动的三个控件组(额外还可能存在一个备份控件组),在初始状态下,它们分别是ControlSet001、 ControlSet002以及CurrentControlSet。这些控件组中包含了操作系统配置的信息,比如服务、驱动、系统控制、枚举信息等等。
     默认情况下,ControlSet001是系统真实的配置信息,但是为了避免序号混乱,windows启动时会从ControlSet001复制一份副 本,作为操作系统当前的配置信息,也就是CurrentControlSet。我们对于计算机配置所作的修改都是直接写入到 CurrentControlSet,在重启过程中,windows会用CurrentControlSet的内容覆盖掉ControlSet001,以 保证这两个控件组一致。
     当操作系统每成功启动一次(指成功登录),它都将CurrentControlSet和ControlSet001中的数据复制到 ControlSet002中。这样,ControlSet002就成了“最近一次成功启动的配置信息”(很熟悉吧?在启动windows前按下F8所调 出的菜单中有这个选项)。所以我们一般系统注册表中都只是有这三个控件组,并且序号都是current、001和002。(此后均用简称
     但是,这个顺序和数目不是一成不变的,改变就发生在使用过“最近一次的正确配置”之后。这个时候,系统会把002当作系统真实的配置信息,而001这个存 在问题的控件组会被备份封存起来。系统启动时会从002复制副本到current,启动成功后又会把002和current的信息复制一份到一个新的控件 组作为新的“最近一次的正确配置”,也就是003。这个时候系统就存在4个控件组:current、002、003和备份的001,这里的001是一个存 在问题的组,除非我们想把系统恢复到上次使用“最近一次正确配置”之前的状态,否则001的内容将不再被使用。
  HKLM\system注册表项中还有一个select的子项,其中有几个整数键,分别是:
“Current”数据项目表示 Windows XP 在这次启动过程中使用的控件组。  
“Default”数据项目表示 Windows XP 在下次启动时将使用的控件组,它与这次启动使用的控件组相同。  
“LastKnownGood ”数据项目表示您在启动过程中选择“最近一次的正确配置”时 Windows XP 将使用的控件组。  
“Failed”数据项表示 Windows XP 在其中保存失败启动产生的数据的控件组。 此控件组在用户第一次调用“最近一次的正确配置”选项之前并不实际存在。  
对应上面,系统默认时其顺序是:001、001、002、无;
第一次使用“lastknowngood”后:002、002、003、001
第二次使用“lastknowngood”后:003、003、004、002(之前的备份001被002覆盖掉,001组消失)
第三次使用“lastknowngood”后:004、004、001、003(002被003覆盖,而当004要生成新的“lastknowngood”时,001正好可用,于是001重生,002消失)
     依此类推,第四次1、1、2、4,第五次2、2、3、1…………


From:http://support.microsoft.com/kb/307852

How to start your computer by using the Last Known Good Configuration feature

loadTOCNode(2, 'moreinformation');
  1. Start your computer.
  2. When you see the "Please select the operating system to start" message, press the F8 key.
  3. When theWindows Advanced Optionsmenu appears, use the ARROW keys to selectLast Known Good Configuration (your most recent settings that worked), and then press ENTER.
  4. If you are running other operating systems on your computer, use the ARROW keys to selectMicrosoft Windows XP, and then press ENTER.

Troubleshooting

loadTOCNode(2, 'moreinformation');
  • With the Last Known Good Configuration feature, you can recover from configuration problems such as newly installed drivers that may be incorrect for your computer's hardware. It does not correct problems that are caused by missing or corrupted drivers or files.
  • The Last Known Good Configuration feature uses information that is saved from the last time that you shut down your computer to restore registry settings and drivers. Therefore, you can use this feature only if you were able to start your computer successfully before you restore your computer by using the last known good configuration.
  • After you start your computer by using the Last Known Good Configuration feature, changes that were made since the last successful startup are lost.


TAG:

 

评分:0

我来说两句

Open Toolbar