Page 1 of 1

Grub cannot load kernel because it prints error 25.

Posted: Wed Mar 28, 2012 3:59 pm
by fatalis1993
I created a bootable CD ROM iso for my kernel that I create from a tutorial. My developing in Windows 7. I am using Bochs 2.4.5 as my emulator and when the emulator starts it loads the iso and the grub command line comes out I type the command to load the kernel and it gives the error 25 and prints 'Disk read error'. What does the error mean. Also when I run the root command it gives the error filesystem type uknown, using whole disk. Does the error 25 mean my kernel is invalid. By the way the kernel is PE but I followed a tutorial written in some blog that taught me how to write PE kernel that is supposedly compatiable with GRUB (author made that claim not me) because it gives hints on how to load the kernel the link to the tutorial is below. I have written a kernel before in linux so I wanted to write a PE kernel since I am working mainly on Windows. Another question, PE kernels are possible to be loaded on GRUB right? Or the tutorial was misleading. I used mkisofs to make the bootable iso.

http://ksrenevasan.blogspot.com/2005/10 ... using.html

If you need to see anything please do not hesistate.

Re: Grub cannot load kernel because it prints error 25.

Posted: Wed Mar 28, 2012 7:29 pm
by Nessphoro
Grub doesn't load the kernel not because it prints error 25.
It prints error 25 because it can't load the kernel. :|

Re: Grub cannot load kernel because it prints error 25.

Posted: Wed Mar 28, 2012 7:41 pm
by fatalis1993
What could be wrong? Since the author article says the PE kernel made in the tutorial is a GRUB compatiable kernel and only goes on writing the code not on make the bootable ISO image.

Re: Grub cannot load kernel because it prints error 25.

Posted: Wed Mar 28, 2012 7:56 pm
by Nessphoro
Error 25: Disk read error.
This error is returned if there is a disk read error when trying to probe or read data from a particular disk.