版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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
19、(NTLDR) The command process may apply 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-ti
20、me blue screens and stop errors with 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. Configur
21、ing your computer to boot from CD is 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 unt
22、il you see the following screen, at 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 menti
23、oned, “1” in most cases), and hit enter. If 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
24、 the Repair Functions · There are eight commands 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.in
25、i o C:ATTRIB S C:boot.ini o C:ATRIB R C:boot.ini 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, a
26、nd I want to get at a file in the WINDOWS directory, I would 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
27、 of repairing the operating system and that begins with modifying 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 fro
28、m our prying eyes, remove the flag that sets it as an undeletable 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 t
29、o remove the Hidden, System and Read Only flags.· Now that weve modified the attributes 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 /R
30、EBUILD command which searches for pre-existing installations of Windows XP and rebuilds sundry 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:
31、First, every Windows XP owner must use /FASTDETECT as an OS Load Option when the rebuild process 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
32、 for the purpose of this guide, but do not set NOEXECUTE as a load option if you do not own one 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
33、 “Microsoft Windows XP Home Edition” for the identifier. This gives the process some authenticity, 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
34、 still good to be sure that the drive is physically capable of running windows, in that it contains no 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 slowe
35、r 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
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2019粤教版 高中美术 选择性必修2 中国书画 《第二单元 中国书法》大单元整体教学设计2020课标
- 2024届河北省邯郸市六校第一次教学质量检测试题(合肥一模)数学试题
- 茶楼合伙协议书范本
- 北京统一租赁房屋租赁合同
- 童谣儿歌我来读活动
- 肾脏移植手术
- 山东省滨州市2024-2025学年八年级上学期期中考试语文试题(含答案)
- 湖南省益阳市赫山区箴言龙光桥学校2024-2025学年一年级上学期期中考试数学试题(无答案)
- 【初中地理】影响气候的因素课件-2024-2025学年湘教版地理七年级上册
- 电影机械行业相关投资计划提议
- 2024-2030年中国户外电源行业市场趋势调查及需求场景趋势分析报告
- 《淘气的一天》(教案)-2024-2025学年一年级上册数学北师大版
- 职业健康安全培训课件(共32张课件)
- 人教新目标八年级英语上册《任务型阅读》专项练习题(含答案)
- XXX200MW光伏发电项目施工组织设计
- 2024年感动中国年度人物介绍颁奖典礼
- 口腔病例汇报模板
- 2024年军队文职人员招聘考试公共科目真题
- GB 44246-2024家用和类似用途电器、体育用品的电气部分及电玩具安全技术规范
- 广铁机考题库
- 《功能性食品开发与应用》课件-维持血糖健康水平功能食品的开发与应用
评论
0/150
提交评论