版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、使用故障恢复控制台修复不能启动的Windows系统我们这里介绍的方法在原理上来说十分简单,即首先将Boot.ini文件删除,然后通过“BootCfg /Rebuild”命令将其重建,在重建的过程中,BootCfg同时也会修复在本文开篇所列出的多种可能损坏的系统文件,最后使用FixBoot写入新的启动扇区。通过这样的方法,只需简单的8条命令,即可修复绝大多数Windows系统不能正常启动的故障。下面我们分步骤详细解释。删除Boot.ini文件首先,上面我们说过,进入系统控制台后,默认工作目录为系统目录,如果Windows安装在C:盘时,即“c:windows”,而Boot.ini文件在根目录上,
2、此时我们需要进入上一级目录:命令1 : cd.Boot.ini是一个相当重要的系统文件,因此,在未解除系统对其的保护状态前,我们是不能对其进行删除操作的。要做到这一点,需要运行三条命令,依次解除其隐含、只读和隐含属性,这样才能最终将其删除。命令2 : ATTRIB H C:BOOT.INI命令3 : ATTRIB R C:BOOT.INI命令4 : ATTRIB S C:BOOT.INI命令5 : DEL BOOT.INI删除boot.ini的步骤使用BootCfg修复启动故障现在到了最重要的步骤,运行:命令5 : BOOTCFG /REBUILD该命令将遍历系统的安装设置,修复其中的故障部分
3、,纠正导致Windows不能正常启动的一系列错误,并重建Boot.ini文件。在Boot.ini重建结束后,将出现“Enter OS Load Options:”输入栏,这时,为保证系统的正常启动,需要注意的是:1、对 Windows XP 用户而言,必须添加 /FASTDETECT 选项。2、如果系统的CPU支持Intel的 XD 或 AMD的 NX功能,必须添加 /NOEXECUTE=OPTIN 选项。在下面图示的例子中,为说明方便,同时添加了上面两个开关选项,不过,切记,如果您的CPU不支持相应的功能,千万不要添加 NOEXECUTE 选项,不然,会造成系统启动的故障。而 “Enter
4、Load Identifier” 部分,则相对关系不大,输错也没有太大的影响。当然,如果您是一个完善主义者,则可如图例中输入完整的如 “Microsoft Windows XP Home Edition”之类,显得比较规范。使用BootCfg /Rebuild重建boot.ini进行磁盘检查这一步骤将检查系统分区的完整性,虽然从某种意义上说,这一步骤并不是必需的,不过,确保系统硬盘能够运转正常,没有坏扇区,也是保证Windows系统长期安全的必要手段。命令很简单:命令7 : CHKDSK /R /F该命令的运行时间根据机器配置的不同而变化,在某些较为古老的PC的甚至可能会超过半个小时。写入新的
5、引导扇区命令8 : FIXBOOT该命令将清除修复过程可能造成的影响系统运行的因素,重写硬盘的引导扇区。当出现 “Sure you want to write a new bootsector to the partition C: ?” 提示时敲入 “Y”确认即可。这样,我们的修复过程即宣告完成。在故障恢复控制台中输入“EXIT”以重启系统,您会惊奇地发现Windows系统能够正常启动,曾经出现的如DLL、注册表项、或 NTLDR之类的错误奇迹般消失了。通过这样的方法,可以避免重装Windows之类的繁琐劳动,节省您的时间。Repairing Windows XP in Eight Comm
6、andsMost of us have seen it at one time or another; perhaps on our own PC, the PC of a loved one, or perhaps a PC at your place of employment. The system spends weeks or months operating in a smooth fashion, taking you to the far reaches of the wide, wibbly web, and after one particularly late eveni
7、ng of browsing and gaming, you shut your PC off and go to bed. Millions of people across the globe do just this every night, but a few of us have turned our PCs on the next day not to the standard Windows XP loading screen, but instead this dreaded error:Windows could not start because the following
8、 file is missing or corrupt: WINDOWSSYSTEM32CONFIGSYSTEMYou can attempt to repair this file by starting Windows Setupusing the original Setup CD-ROM.Select R at the first screen to start repair. Which renders your PC inaccessible from the standard boot procedures of Windows XP. You try safe mode, to
9、 no avail. Youre particularly savvy and try issuing the FIXBOOT and FIXMBR commands in the Windows recovery console, but after each reboot, youre merely greeted with the same obnoxious and terrifying blue screen of death thats preventing you from accessing your precious data.Perhaps youve also seen
10、these error screens:Windows NT could not start because the below file is missing or corrupt: X:WINNTSystem32Ntoskrnl.exe _ Windows NT could not start because the below file is missing or corrupt: X:WINNTSystem32HAL.dll _ NTLDR is MissingPress any key to restart _ Invalid boot.iniPress any key to res
11、tart Allow me to build tension by prefacing the end-all/be-all solution with my background: Having worked for the now-incorporated Geek Squad branch of Best Buy Corporation for the better part of eight months, I have seen dozens upon dozens of systems come through our department with any one of thes
12、e errors, brought in by customers who are afraid they did something, have a virus, or are in jeopardy of losing their data. Prior to my discovery of an invaluable sequence of commands, our standard procedure was to hook the afflicted drive to an external enclosure, back up a customers data and then
13、restore the PC with the customers restore discs or an identical copy of Windows with the customers OEM license key. If the customer wasnt keen on the applicable charges for the data backup, we informed them of the potential risks for a Windows repair installation (Lets face it, they dont always work
14、 right), had them sign a waiver, and we did our best.Neither of these procedures are cheap in the realm of commercial PC repair, nor do they inspire a tremendous level of confidence in the technician or the hopeful client. In an effort to expedite our repair time and retain the sanity of myself and
15、other technicians, I received permission to undertake a case study on a variety of PCs currently in service that exhibited any of the aforementioned symptoms, and I took it upon myself to find a better solution. After crawling through the MSKB, Experts Exchange, MSDN and sundry websites all extollin
16、g the virtues of a solution to these problems, I only found one that worked, and it has been reliably serving me for the better part of two weeks on seventeen PCs to date.The process is simple: Get to the Windows Recovery Console for your particular Windows installation, navigate to the root letter
17、of your installation (C: in most cases), issue eight commands, and reboot. The cornerstone of this process is a command called “BOOTCFG /Rebuild” which is a complete diagnostic of the operating system loaded into the recovery console; the purpose of the command is to remove/replace/repair any system
18、 files that were preventing the operating system from loading correctly. Amongst the files it fixes are: Windows Hardware Abstraction Layer (HAL) Corrupt registry hives (WINDOWSSYSTEM32CONFIGxxxxxx) Invalid BOOT.INI files A corrupt NTOSKRNL.EXE A missing NT Loader (NTLDR) The command process may app
19、ly to other types of blue screens or Hive/HAL/INI/EXE/DLL-related stop errors, but I have not had the luxury of computers in this type of disrepair. The process I am about to outline is virtually harmless, and if you feel you may be able to correct your PCs boot-time blue screens and stop errors wit
20、h the sequence, feel free to try.Let us now begin with a step-by-step instruction for correcting these issues. Getting to the Windows Recovery Console 1. Insert your Windows XP CD into your CD and assure that your CD-ROM drive is capable of booting the CD. Configuring your computer to boot from CD i
21、s outside of the scope of this document, but if you are having trouble, consult Google for assistance. 2. Once you have booted from CD, do not select the option that states: “Press F2 to initiate the Automated System Recovery (ASR) tool.” Youre going to proceed until you see the following screen, at
22、 which point you will press the “R” key to enter the recovery console: After you have selected the appropriate option from step two, you will be prompted to select a valid Windows installation (Typically number “1”). Select the installation number, (As mentioned, “1” in most cases), and hit enter. I
23、f there is an administrator password for the administrator account, enter it and hit enter. You will be greeted with this screen, which indicates a recovery console at the ready: Continue to page 2 to proceed with the repair functions. newpageProceeding With the Repair Functions There are eight comm
24、ands you must enter in sequence to repair any of the issues I noted in the opening of this guide. I will introduce them here, and then show the results graphically in the next six steps. These commands are as follows: o C: CD . o C: ATTRIB H C:boot.ini o C:ATTRIB S C:boot.ini o C:ATRIB R C:boot.ini
25、o C: del boot.ini o C: BOOTCFG /Rebuild o C: CHKDSK /R /F o C: FIXBOOT To “Go up a directory” in computing is to revert back to the directory above the current folder youre operating in. If, for example, Im in the C:WINDOWSSYSTEM32 directory, and I want to get at a file in the WINDOWS directory, I w
26、ould merely type CD . and I would be taken out of the SYSTEM32 folder and up one level to WINDOWS. Were going to do the same thing here from the WINDOWS folder to get to the basic root of C: Now that we are at C: we can begin the process of repairing the operating system and that begins with modifyi
27、ng the attributes of the BOOT.INI file. Briefly, BOOT.INI controls what operating systems the Windows boot process can see, how to load them, and where theyre located on your disk. Were going to make sure the file is no longer hidden from our prying eyes, remove the flag that sets it as an undeletab
28、le system file, and remove the flag that sets it as a file we can only read, but not write to. To do this, we will issue three commands in this step: C:ATTRIB H C:BOOT.INI C:ATTRIB R C:BOOT.INI C:ATTRIB S C:BOOT.INI to remove the Hidden, System and Read Only flags. Now that weve modified the attribu
29、tes for the BOOT.INI file, its up for deletion. the syntax for it is simple: DEL | FILE NAME , e.g., C:DEL BOOT.INI deletes the BOOT.INI file. Now for the most important step of our process, the BOOTCFG /REBUILD command which searches for pre-existing installations of Windows XP and rebuilds sundry
30、essential components of the Windows operating system, recompiles the BOOT.INI file and corrects a litany of common Windows errors. It is very important that you do one or both of the following two things: First, every Windows XP owner must use /FASTDETECT as an OS Load Option when the rebuild proces
31、s is finalizing. Secondly, if you are the owner of a CPU featuring Intels XD or AMDs NX buffer overflow protection, you must also use /NOEXECUTE=OPTIN as an OS Load Option. I will demonstrate both commands for the purpose of this guide, but do not set NOEXECUTE as a load option if you do not own one
32、 of these CPUs. For the “Enter Load Identifier” portion of this command, you should enter the name of the operating system you have installed. If, for example, you are using Windows XP Home, you could type “Microsoft Windows XP Home Edition” for the identifier. This gives the process some authentici
33、ty, if youre keen on being a perfectionist. This step verifies the integrity of the hard drive containing the Windows XP installation. While this step is not an essential function in our process, its still good to be sure that the drive is physically capable of running windows, in that it contains n
34、o bad sectors or other corruptions that might be the culprit. No screenshot necessary here! Just type CHKDSK /R /F at the C: prompt. Let it proceed; it could take in excess of 30 minutes on slower computers, when this is finished move on to the seventh and final step. This last step also requires no screenshot. When you are at the C: prompt, simply type FIXBOOT. This writes a new boot sector to the hard drive and cleans up all the loose ends we created by rebuilding the BOOT.INI file and the system files. When the Windows Recovery Console asks you if you are “Sure you want to
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年金融科技数字货币支付报告及中央银行数字货币报告
- 2026内蒙古鄂尔多斯旭永眼科医院招聘农业考试备考题库及答案解析
- 2026年辽阳市宏伟区城管协管招聘笔试备考试题及答案解析
- 中国港湾工程有限责任公司2026届“领航者”全球春季招聘农业笔试备考试题及答案解析
- 2026湖北省太和武当数字文化有限公司面向社会招聘2人备考题库及答案详解一套
- 人工智能在中学跨学科教学中的应用:学生学习困难识别与干预机制研究教学研究课题报告
- 2026湖北教师招聘统考安陆市城区义务教育学校招聘44人备考题库含答案详解(达标题)
- 2026辽宁铁岭市市本级3家单位补充招聘公益性岗位工作人员3人备考题库及答案详解(易错题)
- 2026山东滨州市中心医院急需紧缺专业人才一站式校园招聘60人(山东医药大学站)农业笔试备考题库及答案解析
- 2026山东法官培训学院招聘1人农业考试参考题库及答案解析
- 炼钢厂防混钢制度规范
- 淘宝客培训课件
- 2025考研政治简答题专项卷含答案
- 人教版(2024)七年级上册数学期末培优试卷3(含答案)
- 烧伤后瘢痕教学课件
- 罗森加盟合同范本
- 幼儿园中班食品安全教育课件
- 高等学校实验室安全检查项目表(2026年)
- 危险化学品安全管理制度及事故应急预案
- 基于神经网络的大豆期货价格预测:方法、实践与应用
- 防蛇咬知识培训
评论
0/150
提交评论