LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Boot custom OS using Grub? (https://www.linuxquestions.org/questions/linux-newbie-8/boot-custom-os-using-grub-834599/)

David2010 09-26-2010 12:57 PM

Boot custom OS using Grub?
 
I know this isn't linux related but it is grub related.

I made my own small "32-bit protected mode" Operating System in Assembly.

The OS works great in qemu however I wanted to test it using real hardware.

I have a seperate HDD with grub installed into /boot/grub

In this folder I have:

Code:


boot.bin (the kernel) (512 bytes)
menu.lst (397 bytes)
stage1 (512 bytes)
stage2 (100,554 bytes)

Menu.lst:

Code:


title OS
root (hd0,0)
kernel /boot/grub/boot.bin

The kernel is only 512 bytes. How can it be to big?!?

The only problem I am having it is says:

Code:


Kernel to big

EDIT:

Oh yeah and the kernel's format is "bin" if that makes any difference.

David2010 09-26-2010 09:38 PM

NOTICE:

I fixed my problem using isolinux instead of grub.

Just put the following files into an ISO:

Code:

boot.catalog
isolinux.bin
isolinux.cfg
kernel.bin (my custom OS)
mboot.c32

Make sure you edit isolinux.cfg for the name of the kernel.

I then just used unetbootin to test it out.


All times are GMT -5. The time now is 04:08 AM.