Help - Search - Members - Calendar
Full Version: NTOSKRNL.exe could not be loaded, Error code 4
The CD Forum > Bart's PE Builder > Troubleshooting
krash_silver
Hi guys,

I have recently done with the built BartPE file, but once I boot up the DVD and it started to prompt me this error message

"File \i386\system32\ntoskrnl.exe could not be loaded. Error Code 4"

Has anyone come across this issue??

Pls assist,
cdob
maybe:
-bad media
-bad dvd drive
-wrong filecase
-big LBA, run ISOBuster and post ntoskrnl.exe's LBA
krash_silver
Any idea for the solution? Something like, can I copy the ntoskrnl from the XP SP2 cd and paste into it? if just let say the ntoskrnl.exe has problem. I do not hav this problem earlier when I create a copy without the add on Plugin. But after I create the plugin this problem araise.

Any idea?? (btw, I just added the Symantec ghost plugin only)
cdob
I've no idea for a solution yet.
What about some answers first?

Why do you use a DVD? Try a CD.

QUOTE
I just added the Symantec ghost plugin only)
Do you include a big custom file?
d4vr0s
QUOTE
I just added the Symantec ghost plugin only)

Does it work again if you remove the plugin?
krash_silver
QUOTE (d4vr0s @ Apr 20 2006, 08:02 PM) *
Does it work again if you remove the plugin?


Nope, it doesn't work as well... hehe..

QUOTE (cdob @ Apr 20 2006, 06:51 PM) *
Do you include a big custom file?


yeah, the ghost image is bout 4GB..that y I try to burn into DVD.. I'm not sure bout CD yet, maybe can try out.. but I often hav this Error code 4, and I just have no idea y?? or unless knowing what Error code 4 means...

pls pls pls...hehehe ..thanks guy for the reply..appreciate it biggrin.gif
cdob
There are several reasons to get error 4: general file not loaded.
Several hardware or software weak points: compare Post #2.

If I get a answer to my questions, I may able to help.

What's the final ISO image filesize? In bytes please, not something about.

How do you include ghot image file?
Do you include a file or a directory? Name file, directory and contents.
Do you use a plugin to include ghost image?

Setupldr.bin access first 4 gb only.
Setupldr.bin can't load ntoskrnl.exe at e.g. Logical Block Adress LBA 2254276.
krash_silver
QUOTE (cdob @ Apr 21 2006, 09:21 PM) *
There are several reasons to get error 4: general file not loaded.
Several hardware or software weak points: compare Post #2.

If I get a answer to my questions, I may able to help.

What's the final ISO image filesize? In bytes please, not something about.

How do you include ghot image file?
Do you include a file or a directory? Name file, directory and contents.
Do you use a plugin to include ghost image?

Setupldr.bin access first 4 gb only.
Setupldr.bin can't load ntoskrnl.exe at e.g. Logical Block Adress LBA 2254276.



The ISO File size is 4,398,272Kb... it is very large??
and
Under the add custom FIles, I direct it to the location where I want to load the file into the dvd. (anyway, once I burn the dvd, the content is in the dvd)
yes, I have follow the instruction from the Nu web, where I need to copy certain files from my current symantec folder and add it into the PEBUILDER plugin files, and that works...

I think probably is as what you were saying the Setupldr.bin cannot access more than 4 Gb file size which I apparently overload it. hehee.. perhaps the better for me to it IS to spanned the image into smaller size..

Thanks, man
cdob
There are different reasons possible still.

Please test first:
Create a new BartPE, but don't include custom files.
Does BartPE boot?


Setupldr.bin ignore your ghost image, that file size dosn't matter in these conjuction.
You don't have to spann the ghost image into smaller size because of setupldr.bin.

You may have to spann the ghost image into smaller size.
But that's another story. Keep gost single files below 4 gb.

File location of BartPE boot files does matter:
that's e.g. ntoskrnl.exe Logical Block Adress.
Again: At which LBA does your ntoskrnl.exe exist at DVD?

Watch file sort order at DVD.
Use cyraon's postprocessing.

Or try:
Create a subdirectory: c:\add\Symantec\
Copy your ghost images to c:\add\Symantec\
Run PEBuilder, add custom Files, select directory 'c:\add', create BartPE.
Does a directory Symantec exist at BartPE. Watch case - that's not symantec.
Does this BartPE boot?
Br_nar
Not sure if this is the solution for your problem, but it worked for me, while having exactly the same error message.

I just came accros the same problem, when I tried to integrate a custom bootscreen (modified NTOSKRNL.EXE). Updating the bitmap with Resource Hacker worked fine, but when I altered the color palette (with a HEX-editor) afterwards, I got the error message 'NTOSKRNL.EXE could not be loaded, Error code 4'.

I discovered that the checsum in the Win32 PE Header of the NTOSKRNL.EXE file was incorrect (note: PE in this context is not to be confused with Bart's PE Builder), and this was causing the problem.

Here's how to fix it.
The easy way:
1. Make your custom image
2. Extract the color palette and update NTOSKRNL.EXE with a HEX editor (and put your values in it)
3. Now, replace the original bitmap with your custom bitmap (using Resource Hacker)
When saving your changes with Resource Hacker, it calculates the checksum correctly, resulting in a working NTOSKRNL.EXE


The hard way:
1. Make your custom image
2. Replace the original bitmap with your custom bitmap (using Resource Hacker)
3. Extract the color palette and update NTOSKRNL.EXE with a HEX editor
4. Use Heaventools PE Explorer to calculate and update the checksum of the EXE-file.

Hope is the solution to your problem. Kind regards,
Br_nar
William
I was looking for something else but just recently was trying to tackle the color palette issue, and I stumbled on this....wooo hooo! I can change the color palette with HexEdit. Thanks!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.