查看完整版本: WindowsXP八种安全模式详解(转)

沐沐 2007-10-25 09:37

WindowsXP八种安全模式详解(转)

[font=Times New Roman]WindowsXP[/font][font=宋体]八种安全模式详解[/font]
[font=宋体]经常使用电脑的人可能都听说过,当电脑出了故障时,[/font][font=Times New Roman]Windows[/font][font=宋体]会提供一个名为[/font][font=Times New Roman]“[/font][font=宋体]安全模式[/font][font=Times New Roman]”[/font][font=宋体]的平台,在这里用户能解决很多问题[/font][font=Times New Roman]--[/font][font=宋体]不管是硬件(驱动)还是软件的。然而你会使用这个安全模式么?今天我们就来带您认识一下它的真面目。  [/font][font=Times New Roman]  
[/font][font=宋体]  初识安全模式    [/font][font=Times New Roman]  
[/font][font=宋体]  要进入安全模式,只要在启动时不停地按[/font][font=Times New Roman]F8[/font][font=宋体],就会出现选项菜单,再用键盘上的上下光标键进行选择即可进入不同的启动模式。选项菜单包括了以下几个:    [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]1.[/font][font=宋体]安全模式  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  只使用基本文件和驱动程序。如鼠标[/font][font=Times New Roman](U**[/font][font=宋体]串行鼠标除外[/font][font=Times New Roman])[/font][font=宋体]、监视器、键盘、硬盘、基本视频、默认系统服务等,但无网络连接。  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  如果采用安全模式也不能成功启动计算机,则可能需要使用恢复控制台功能来修复系统。   [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]2.[/font][font=宋体]带网络连接的安全模式    [/font][font=Times New Roman]  
[/font][font=宋体]  在普通安全模式的基础上增加了网络连接。但有些网络程序可能无法正常运行,如[/font][font=Times New Roman]MSN[/font][font=宋体]等,还有很多自启动的应用程序不会自动加载,如防火墙、杀毒软件等。所以在这种模式下一定不要忘记手动加载,否则恶意程序等可能会入侵在你修复电脑的过程中。[/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]3.[/font][font=宋体]带命令行提示符的安全模式  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  只使用基本的文件和驱动程序来启动,在登录之后,屏幕上显示命令提示符,而非[/font][font=Times New Roman]Windows[/font][font=宋体]图形界面。 [/font][font=Times New Roman]  
[/font][font=宋体]  说明:在这种模式下,如果你不小心关闭了命令提示符窗口,屏幕会全黑。可按下组合键[/font][font=Times New Roman]Ctrl+Alt+Del[/font][font=宋体],调出[/font][font=Times New Roman]“[/font][font=宋体]任务管理器[/font][font=Times New Roman]”[/font][font=宋体],单击[/font][font=Times New Roman]“[/font][font=宋体]新任务[/font][font=Times New Roman]”[/font][font=宋体],再在弹出对话框的[/font][font=Times New Roman]“[/font][font=宋体]运行[/font][font=Times New Roman]”[/font][font=宋体]后输入[/font][font=Times New Roman]“C:\WINDOWS\explorer.exe”[/font][font=宋体],可马上启动[/font][font=Times New Roman]Windows XP[/font][font=宋体]的图形界面,与上述三种安全模式下的界面完全相同。如果输入[/font][font=Times New Roman]“c:\windows\system32\cmd”[/font][font=宋体]也能再次打开命令提示符窗口。事实上,在其它的安全模式甚至正常启动时也可通过这种方法来启动命令提示符窗口。   [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]4.[/font][font=宋体]启用启动日志    [/font][font=Times New Roman]  
[/font][font=宋体]  以普通的安全模式启动,同时将由系统加载[/font][font=Times New Roman]([/font][font=宋体]或没有加载[/font][font=Times New Roman])[/font][font=宋体]的所有驱动程序和服务记录到一个文本文件中。该文件称为[/font][font=Times New Roman] ntbtlog.txt[/font][font=宋体],它位于[/font][font=Times New Roman] %windir% ([/font][font=宋体]默认为[/font][font=Times New Roman]c:\windows\)[/font][font=宋体]目录中。启动日志对于确定系统启动问题的准确原因很有用。[/font]
[font=宋体]  [/font][font=Times New Roman]5.[/font][font=宋体]启用[/font][font=Times New Roman]VGA[/font][font=宋体]模式  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  利用基本[/font][font=Times New Roman]VGA[/font][font=宋体]驱动程序启动。当安装了使[/font][font=Times New Roman]Windows[/font][font=宋体]不能正常启动的新视频卡驱动程序时,这种模式十分有用。事实上,不管以哪种形式的安全模式启动,它总是使用基本的视频驱动程序。因此,在这些模式下,屏幕的分辨率为[/font][font=Times New Roman]640×480[/font][font=宋体]且不能改动。但可重新安装驱动程序。  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]6.[/font][font=宋体]最后一次正确的配置  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  使用[/font][font=Times New Roman]Windows[/font][font=宋体]上一次乇帐彼[/font][font=Times New Roman][/font][font=宋体]4娴淖[/font][font=宋体]⒉[/font][font=宋体]岜硇畔[/font][font=宋体]⒑[/font][font=宋体]颓[/font][font=Times New Roman][/font][font=宋体]绦蚶雌舳[/font][font=Times New Roman]?[/font][font=宋体]。最后一次成功启动以来所作的任何更改将丢失。因此一般只在配置不对[/font][font=Times New Roman]([/font][font=宋体]主要是软件配置[/font][font=Times New Roman])[/font][font=宋体]的情况下,才使用最后一次正确的配置。但是它不能解决由于驱动程序或文件被损坏或丢失所导致的问题。  [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]7.[/font][font=宋体]目录服务恢复模式   [/font][font=Times New Roman]  
[/font][font=宋体]  这是针对服务器操作系统的,并只用于恢复域控制器上的[/font][font=Times New Roman]SYSVOL[/font][font=宋体]目录和[/font][font=Times New Roman]Active Directory[/font][font=宋体]目录服务。  [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]8.[/font][font=宋体]调试模式   [/font][font=Times New Roman]  
[/font][font=宋体]  启动时通过串行电缆将调试信息发送到另一台计算机。   [/font][font=Times New Roman]  
[/font][font=宋体]  如果正在或已经使用远程安装服务在您的计算机上安装[/font][font=Times New Roman] Windows[/font][font=宋体],则您可以看到与使用远程安装服务还原或恢复系统相关的附加选项。[/font][font=Times New Roman]  
[/font][font=宋体]  现实应用  [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]1.[/font][font=宋体]笔者过去用的是一款旧显示器,又是初学者,初学者最爱干的是什么,换点墙纸,设一下分辨率也觉得很有成就感,没想到误将分辨率和刷新率调得太高,下次启动时屏幕花屏,害得的重新安装了操作系统才算了事。[/font][font=Times New Roman]
[/font][font=宋体]  现在想起来那时也真的傻瓜可爱,只要将其重启到安全模式[/font][font=Times New Roman]([/font][font=宋体]前四种模式都行[/font][font=Times New Roman])[/font][font=宋体]下,删除显卡驱动程序,再重启电脑即可,重启[/font][font=Times New Roman]([/font][font=宋体]正常启动[/font][font=Times New Roman])[/font][font=宋体]时,系统会自动扫描显卡并安装驱动程序,屏幕即可恢复正常显示。[/font][font=Times New Roman]  
[/font][font=宋体]  还有些问题也可用这种方法来处理,比如[/font][font=Times New Roman]Windows XP[/font][font=宋体]会自动识别硬件并安装驱动程序,但有时总是老眼昏花,而且在设备管理器下不会显示出错信息。但就是工作不正常,如上不了网[/font][font=Times New Roman]([/font][font=宋体]网卡驱动有错[/font][font=Times New Roman])[/font][font=宋体]、屏幕显示不对[/font][font=Times New Roman]([/font][font=宋体]显卡驱动有错[/font][font=Times New Roman])[/font][font=宋体]等,也可在安全模式重新安装驱动程序。   [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=Times New Roman]2.[/font][font=宋体]揪出恶意的自启动程序或服务[/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  如果电脑出现一些莫明其妙的错误,比如上不了网,按常规思路又查不出问题,可启动到带网络连接的安全模式下看看,如果在这里能上,则说明是某些自启动程序或服务影响了网络的正常连接。  [/font][font=Times New Roman]  
[/font][font=宋体]  可在带网络连接的安全模式下,用带重定向的命令提示符工具[/font][font=Times New Roman]TaskList >d:\Anquan.txt[/font][font=宋体]将当时的进程记录到[/font][font=Times New Roman]D[/font][font=宋体]:盘根目录下的文本文件[/font][font=Times New Roman] Anquan.txt[/font][font=宋体]中。接着,以正常的方式启动电脑,将[/font][font=Times New Roman]Anquan.txt[/font][font=宋体]中记录到的进程与此时的进程进行比较,你会发现此时的进程要多得多,请逐个结束多出来的进程,并检查网络连接是否正常。如果结束到某一进程时网络连接正常了,则说明就是刚结束的进程就是罪魁祸首。查出后,可删除与进程相关的可执行文件。但还要注意的是,由于它是自动运行的,强行删除后,可能会引起启动时报[/font][font=Times New Roman]“[/font][font=宋体]找不到某文件[/font][font=Times New Roman]”[/font][font=宋体]的错误,还得将其与自启动有关的设置全部清除,包括[/font][font=Times New Roman]“[/font][font=宋体]系统配置实用程序[/font][font=Times New Roman]”[/font][font=宋体]的[/font][font=Times New Roman]“[/font][font=宋体]启动[/font][font=Times New Roman]”[/font][font=宋体]、[/font][font=Times New Roman]“Win.ini”[/font][font=宋体]下的内容、注册表下的内容、启动脚本下的内容、[/font][font=Times New Roman]“[/font][font=宋体]开始[/font][font=Times New Roman]”[/font][font=宋体]菜单[/font][font=Times New Roman]“[/font][font=宋体]启动[/font][font=Times New Roman]”[/font][font=宋体]下的内容等。[/font]
[font=宋体]  [/font][font=Times New Roman]3.[/font][font=宋体]调整分区  [/font][font=Times New Roman] [/font][font=宋体] [/font][font=Times New Roman]  
[/font][font=宋体]  有一次,笔者带着本本儿出差,途中想处理一下下车即用的报表文件,可本本儿偏不争气,启动时报分区错误。天啊,出门在外的,又没带任何工具软件,好在天无绝人之路,还能启动到安全模式下[/font][font=Times New Roman]——[/font][font=宋体]有法了,命令行工具[/font][font=Times New Roman]Diskpart[/font][font=宋体]能胜任分区魔术师的一切工作[/font][font=Times New Roman]([/font][font=宋体]可能还少有朋友听说吧[/font][font=Times New Roman])[/font][font=宋体]。[/font][font=Times New Roman]Diskpart[/font][font=宋体]功能非常强大,它工作于一个集成的环境,输入[/font][font=Times New Roman]Diskpart[/font][font=宋体]后,显示图[/font][font=Times New Roman]1[/font][font=宋体]所示的专用提示符即[/font][font=Times New Roman]Diskpart>([/font][font=宋体]注意:这不是一个路径[/font][font=Times New Roman])[/font][font=宋体],在这一环境下可输入很多与之相关的同时也是它的专用子命令。下面就来演示分区的扩容功能。说明在先:以下的操作是在台式机上记录下来的。  [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=宋体]①[/font][font=宋体]启动到带命令提示符的安全模式下,输入命令[/font][font=Times New Roman]Diskpart[/font][font=宋体]。再输入[/font][font=Times New Roman]list partition [/font][font=宋体]显示一下分区,显然,其中有两个主分区、两个扩展分区。   [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=宋体]②[/font][font=宋体]输入[/font][font=Times New Roman]“Select Parttition 3”[/font][font=宋体]使第[/font][font=Times New Roman]3[/font][font=宋体]分区[/font][font=Times New Roman](5004MB[/font][font=宋体]的那个[/font][font=Times New Roman])[/font][font=宋体],使该分区具有焦点属性。再输入[/font][font=Times New Roman]“Delete Partition”[/font][font=宋体]即可删除该分区。请将图[/font][font=Times New Roman]3[/font][font=宋体]第[/font][font=Times New Roman]1[/font][font=宋体]、[/font][font=Times New Roman]2[/font][font=宋体]两个[/font][font=Times New Roman]“List partition”[/font][font=宋体]命令后的值进行比较,不难看出,原分区[/font][font=Times New Roman]3[/font][font=宋体]确实已被删除了。[/font][font=Times New Roman] [/font][font=宋体]    [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=宋体]③[/font][font=宋体]输入[/font][font=Times New Roman]“Select partition 1”[/font][font=宋体]使其具有焦点属性,再输入[/font][font=Times New Roman]“Extend”,[/font][font=宋体]刚才被删除分区所空出来的末分配空间就能自动添加到第[/font][font=Times New Roman]1[/font][font=宋体]分区中去。  [/font][font=Times New Roman]  
[/font][font=宋体]  为分区扩容,这可是分区魔术师的专利,[/font][font=Times New Roman]“diskpart”[/font][font=宋体]也能实现,看来,[/font][font=Times New Roman]Windows server 2003[/font][font=宋体]不支持分区魔术师是有道理的。再输入[/font][font=Times New Roman]“List partition”[/font][font=宋体]可观察到第[/font][font=Times New Roman]1[/font][font=宋体]个分区的容量变化情况。[/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  说明:将带有焦点的分区扩展为最邻近的未分配空间时。对于普通分区,未分配的空间必须在同一磁盘上,并且必须接着带有焦点的分区。  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  如果要被扩容的分区是[/font][font=Times New Roman]NTFS[/font][font=宋体]格式,扩容后不会丢失任何数据。如果是非[/font][font=Times New Roman] NTFS [/font][font=宋体]的文件系统格式,此命令就会失败,但不会对分区作任何更改也不会破坏数据。不能扩展当前系统分区或启动分区,也不能对包含页面文件的分区进行扩容。从图中可看出,我的电脑中有两个主分区,分区[/font][font=Times New Roman]5[/font][font=宋体]才是活动分区。不然,不能对分区[/font][font=Times New Roman]1[/font][font=宋体]进行扩容操作。   [/font][font=Times New Roman]  
[/font][font=宋体]  语法:[/font][font=Times New Roman]extend [size=n][/font][font=宋体]    [/font][font=Times New Roman]  
[/font][font=宋体]  参数说明:[/font][font=Times New Roman] size=n [/font][font=宋体]:添加到当前分区的空间大小[/font][font=Times New Roman] (MB)[/font][font=宋体]。如果不指定大小,磁盘就扩展为占用所有最邻近的未分配空间。   [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=宋体]④[/font][font=宋体]不管对硬盘分区做了什么样的改动,包括创建、删除、扩容等,都用不着重新启动电脑即可生效[/font][font=Times New Roman]([/font][font=宋体]这是分区魔术师不能做到的[/font][font=Times New Roman])[/font][font=宋体],但在[/font][font=Times New Roman]“[/font][font=宋体]我的电脑[/font][font=Times New Roman]”[/font][font=宋体]却看不到这些分区,这是为什么呢,原来,还没为其指定驱动器号[/font][font=Times New Roman]([/font][font=宋体]也就是盘符[/font][font=Times New Roman])[/font][font=宋体],怎样指定盘符呢?下面以为第一个分区指定盘符为例进行说明。[/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  使第[/font][font=Times New Roman]1[/font][font=宋体]个分区具有焦点属性,再输入命令[/font][font=Times New Roman]“Assign”[/font][font=宋体],[/font][font=Times New Roman]Diskpart[/font][font=宋体]就会自动为其分配一个。当然也可用命令[/font][font=Times New Roman]“AssignLetter=X”[/font][font=宋体]来手动指定,手动指定时,不能与已存在的盘符如[/font][font=Times New Roman]C[/font][font=宋体]等相同。经过这样的处理后,就能在[/font][font=Times New Roman]“[/font][font=宋体]我的电脑[/font][font=Times New Roman]”[/font][font=宋体]下查看到这些分区了。  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  [/font][font=宋体]⑤[/font][font=宋体]将分区[/font][font=Times New Roman]5[/font][font=宋体]设为活动分区,先用[/font][font=Times New Roman]Select Parttition 5[/font][font=宋体]使其具有焦点属性再用[/font][font=Times New Roman]Active[/font][font=宋体]激活即可。最后输入[/font][font=Times New Roman]Exit[/font][font=宋体],退出[/font][font=Times New Roman]Diskpart[/font][font=宋体]集成环境,让电脑自动重启。  [/font][font=Times New Roman] [/font][font=宋体]  [/font][font=Times New Roman]  
[/font][font=宋体]  说明:如果用惯了[/font][font=Times New Roman]DiskPart[/font][font=宋体],你就会觉得它的设计很符合人们的思维习惯,一般是先指定焦点,再进行操作,操作过程中还可随显示分区状态以便掌握进度。输入[/font][font=Times New Roman]Help[/font][font=宋体]可查看到所有的子命令,输入有错时,它还会自动列出子命令列表及简要说明,将你引导到正路上来。另外,安装[/font][font=Times New Roman]Windows 2003[/font][font=宋体]后,大家最熟悉的分区魔术师[/font][font=Times New Roman]([/font][font=宋体]非服务器版[/font][font=Times New Roman])[/font][font=宋体]不能正常运行,使用[/font][font=Times New Roman]Diskpart[/font][font=宋体]确实是一个不错的选择。    [/font][font=Times New Roman]  
[/font][font=宋体]  如前所述,在[/font][font=Times New Roman]Diskpart[/font][font=宋体]下进行任何操作前都必须指定焦点,即指明对哪一对象进行操作,这一方面使的我的操作逻辑清楚,但另一方面,如果对误指定了焦点又执行了破坏性的命令,如删除分区等,会造成无可挽回的损失。所以,请随时用[/font][font=Times New Roman]List[/font][font=宋体]命令查看各分区状态,焦点分区前有一个星号[/font][font=Times New Roman](*)[/font][font=宋体]标志。 [/font][font=Times New Roman]  
[/font][font=宋体]  此外,你还可以借助安全模式来完成病毒的清除工作。比如有的杀毒软件能报告病毒但却不能清除甚至隔离、删除,遇到这种情况,可启动到安全模式下尝试删除这些病毒文件。当然,这里我们也只是介绍了一些比较常见的安全模式用途,算是抛砖引玉吧,希望各位能够在实际的电脑使用中,逐步体验其更多的便捷之处。[/font]
[font=宋体]信息源[/font][font=Times New Roman]:[/font][font=宋体]安全中国[/font][font=Times New Roman] [/font][font=宋体]作者[/font][font=Times New Roman]:[/font][font=宋体]刘震宇[/font]
页: [1]
查看完整版本: WindowsXP八种安全模式详解(转)