X
wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 16 people, some anonymous, worked to edit and improve it over time.
This article has been viewed 319,708 times.
Learn more...
Are you seeing an error about a file in System32 called ntoskrnl.exe being missing or corrupt? This common Windows XP error might look scary, but it'll be easy to fix with this simple tutorial!
Steps
-
1Before trying the steps below, you can test to fix this error by following these 2 quick tips: Boot your Windows into Last Known Good Configuration (press F8 at startup to do so) or disconnect any PS/2 or serial keyboards you may have and try again.
-
2If the above doesn't work, boot into the recovery console from your installation disk (if you don't have your installation disk, check the Tips section below for alternatives), if you are unsure how to do this check out the Microsoft Knowledge base article ID: 314058 for a quick guide.Advertisement
-
3Once in run chkdsk /r and once done reboot. If this doesn’t work, boot into the recovery console once again and try the following:
-
4From the prompt type attrib -R C:\boot.ini followed by enter
-
5Then del C:\boot.ini followed by enter
-
6With the boot.ini gone, it’s time to rebuild it type bootcfg /rebuild followed by enter
-
7When prompted to search for installed OS’s entery
-
8When prompted for the load identifier enter the name of the installed OS, for exampleMicrosoft Server 2003 R2 Standard Edition followed by enter
-
9When prompted for the load options enter type /fastdetect followed by enter
-
10Next enter fixboot C: followed by enter
-
11Now to give it a whirl, reboot and see if it’s fixed
-
12If none of the above worked hop into the recovery console once again and enter fixmbr C: followed by enter and then reboot.
-
13If nothing from above worked, you may need to run this command to replace the ntoskrnl.exe file itself: expand D:\i386\ntoskrnl.exe C:\Windows\system32 or try to run bootcfg /rebuild
Advertisement
Community Q&A
-
QuestionHow do I access the recovery console?Community AnswerYou need a recovery disk. Ask your manufacturer for one or just get the ISO from the Windows website and put it on a CD or USB key and boot from that.
-
QuestionWhat do I do if my boot critical file c:\windows\system32\ntoskrnl.exe is corrupt and these steps don't correct the problem?Community AnswerReinstall Windows or insert a recovery disk to reinstall and repair the missing or corrupt files.
Advertisement
Warnings
- Running a Windows repair should be relatively safe but it is worth noting that you should read around the topic if you feel a repair is necessary.⧼thumbs_response⧽
Advertisement
References
About This Article
Advertisement