1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Reinstall ntoskrnl.exe

Discussion in 'Windows XP' started by Barry, 2004/04/22.

Thread Status:
Not open for further replies.
  1. 2004/04/22
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    I just did a Windows update and downloaded KB831240, KB822603 and Windows Error Reporting. Upon trying to restart my computer, I found that this drive would no longer boot up. The message given was:
    Windows could not start because the following file is missing or corrupt
    <Windowsroot>\system32\ntroskrnl.exe
    Please reinstall a copy of the above file.

    I went into my other HD and copied the ntosjkrnl.exe file. When I attempted to paste it into where the file was in my not working HD, I got the message:
    The C:\WINDOWS\System32\ntoskernl.exe application cannot be run in Win32 mode.

    How do I fix this problem without having to reinstall WINXP all over again?
     
  2. 2004/04/22
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389

  3. to hide this advert.

  4. 2004/04/22
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Note your Windows directory is windows not winnt

    Well maybe. If the system was a fresh load with XP, then the default %systemroot% is Windows. But if you upgrade from 2K, it remains as WINNT.
     
    Newt,
    #3
  5. 2004/04/23
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    I'm sorry. I couldn't seem to follow it. I pressed F8 to try last known good configuration, but nothing happened. I tried safe mode, but it told me I needed to reinstall ntoskrnl.exe. I deleted it in c:\WINDOWS\System32, then copied it from my good D drive and pasted it into where I had deleted it in C. It still has the same problem. When I put in my XP CD, I am given the option to repair, but it asks for my administrator password, and I never installed one. Anyone willing to walk me through the process?
     
  6. 2004/04/23
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    Barry,

    I'm a little confused here :confused:

    You say that your drive won't boot and then go on to say that you went to your other drive to copy the file. Have you two copies of XP installed?

    I agree the direct link I posted is confusing, but if you click All messages in this thread (Show All) things are a (little) clearer.

    Have you tried to follow this post from that forum (I have annotated the post) ....

    "If you get an error that NTOSKRNL not found:

    Insert and boot from your Windows XP CD.

    At the first R=Repair option, press the R key

    Press the number that corresponds to the correct location for the installation of Windows you want to repair.

    Typically this will be #1

    Change to the drive that has the CD ROM.

    (change to the directory i386) CD i386

    (type) expand ntkrnlmp.ex_ C:\Windows\System32\ntoskrnl.exe (enter)

    If Windows XP is installed in a different location, just make the necessary change to C:\Windows

    Take out the CD ROM and type exit

    Note to Newt - OS is XP Home so upgrade from W2k was not a possibility
     
  7. 2004/04/23
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    Barry

    Since posting above I gave the method outlined a part run through on my m/c.

    You are correct - Admin password required. As memory serves you need to put in an Admin password when you install XP? Think hard!! Have you tried a blank password - just hitting Enter may do the trick?
     
  8. 2004/04/23
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    Pete,
    Thanks for the help. I did hit enter for the blank password, but it just gave me the continued c prompt, unless I was supposed to do something there. Also, I do have XP on both drives, for specifically this purpose. It gives me a backup computer when one drive is having problems. I just keep my son's games on the larger drive.
    Anyway, I think I resolved it on my own. Apparently, when I deleted the exe then copied and pasted it, I wasn't supposed to hit restart, but shutdown, as when I started my computer this morning, it works fine. If you can explain what I did, I may understand it better for future reference.
    Barry
     
  9. 2004/04/23
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    Barry

    Delighted to hear that you fixed the problem! There are subtle differences between a 'warm' boot - restart and a 'cold' boot - shutdown and reboot.

    Not 100% certain on this, but a warm boot (restart) does not clear the memory AFAIK.

    If in doubt - cold boot :)
     
  10. 2004/05/01
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    This is the 2nd time the ntoskrnl.exe got corrupted in one week. Now that I know how to fix it, I have that HD up and running again, but is there anything I should be checking to determine what might be causing the problem?
     
  11. 2004/05/01
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    I would check out the HD ......

    Start > Run > cmd > Enter
    At the command prompt type in chkdsk /r > Enter
    Windows will respond that it cannot do that now, but will schedule at the next boot - agree and reboot.

    On reboot the HD will be checked and any bad areas 'repaired'.
     
  12. 2004/05/01
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    Pete,
    Thanks for the suggestion, but it didn't find any bad areas. Anything else I should check?
    Barry
     
  13. 2004/05/01
    Johanna

    Johanna Inactive Alumni

    Joined:
    2003/03/08
    Messages:
    2,402
    Likes Received:
    2
    It's time for a System File Check
    Start > Run > cmd
    sfc /scannow
    XP install cd needed

    sfc - system file checker, retrieves the correct version of the file from %Systemroot%\System32\Dllcache or the Windows installation source files, and then replaces the incorrect file.

    If you want to see what was replaced, right click My Computer > manage, expand event viewer > system.

    HTH
    Johanna
     
  14. 2004/05/01
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    Johanna,
    It just did 28 different information types. I'm not sure exactly what it did, but I guess it fixed whatever needed to be fixed. Did it undo any Microsoft security fixes? Thanks for the help.
    Barry
     
  15. 2004/05/01
    Johanna

    Johanna Inactive Alumni

    Joined:
    2003/03/08
    Messages:
    2,402
    Likes Received:
    2
    Most of the time, MS Updates are safe from SFC, but to be sure, go to the site and let MS scan your comp to see if anything needs replaced or added. Post back if it gives you any more problems.

    Johanna
     
  16. 2004/05/02
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    Thank you Johanna. I will. I'm not sure that going to Microsoft will work, as I've had experience with XP security updates where I had to delete the update, but MS still had me on record as downloading it, so didn't say I needed it. I had to redownload it on another site.
    Barry
     
  17. 2004/05/06
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    Johanna,
    I was hoping for the best, but I just had to reinstall ntoskrnl.exe again. Any other suggestions?
    Barry
     
  18. 2004/05/06
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    Barry - this file is a protected system file so if you delete it a replacement is immediately put in from your cached files.

    If you happen to have a bad copy there, then when you run sfc and it sees a bad file, it will probably pull the replacement from the same source.

    My guess is the file you have on your install CD is a good one so I think the trick here will be to force your system to pull a copy from the CD.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SourcePath

    Put in the full path to the I386 folder on your CD or else copy the I386 folder to some new location on the PC and use that location.

    As an additional precaution and before you run sfc, go to windows\system32\dllcache (probably hidden so unhide) and remove the read-only feature then delete the ntoskrnl.exe file that is there.
     
  19. 2004/05/07
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    Newt,
    I'm not sure exactly how to do what you are asking. I copied and pasted this file to my desktop, then removed the read-only feature from the system 32 drivers, but couldn't find source path, nor do I know what to do with it once I find it. Please give me more specifics.
    Thanks,
    Barry
     
  20. 2004/05/07
    Newt

    Newt Inactive

    Joined:
    2002/01/07
    Messages:
    10,974
    Likes Received:
    2
    SourcePath is a registry entry.

    start~run~regedit and when it starts, you should find a section named HKEY_LOCAL_MACHINE - Once there just keep clicking on the plus signs to expand the sections until you find
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Setup\SourcePath and when you find it, click on Edit then on Modify and change the path to point to the I386 folder on your CD or if you copied the I386 folder from the CD to your hard drive, point the path to that.

    Delete the copy of ntoskrnl.exe from windows\system32\dllcache.

    When you run SFC /scannow it will pull a copy of the file from the I386 folder rather than using any (possibly damaged copies) that were on your PC before.

    As a safety precaution since registry damage can cause major problems, I'd suggest backing up the part you will be changing before you actually make the change.

    In this case when you have gotten down as far as \CurrentVersion\Setup in the left-hand pane, right-click Setup and choose Export. Enter a name and location that you will remember, and then click Save.

    If you need to restore that branch of the Registry, all you need to do is double-click on the file that you just saved, and the information will automatically be put back in the original location.
     
  21. 2004/05/08
    Barry

    Barry Geek Member Thread Starter

    Joined:
    2002/12/16
    Messages:
    1,209
    Likes Received:
    10
    Newt,
    I found this before, but I still don't have source path. All that is listed after setup is:
    BaseWinOptions
    +ExceptionComponents
    Migration DllS
    +OC Manager
    OOBE
    +OptionalComponents
    What do I do now?
    Barry
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.