LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2010, 12:57 PM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
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.

Last edited by David2010; 09-26-2010 at 01:18 PM.
 
Old 09-26-2010, 09:38 PM   #2
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why /boot/grub/grub.conf is symlinked to /boot/grub/menu.lst raj_hcl1986@rediffma Linux - Newbie 2 10-19-2008 02:19 AM
gentoo : grub: The file /boot/boot/grub/stage1 not read correctly Boudewijn Linux - Software 3 05-21-2008 03:13 AM
How to set Grub not to auto boot any OS without Grub Boot menu shown ussr_1991 Linux - Software 2 09-01-2007 08:36 AM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 11:45 AM
grub hangs with custom _VMALLOC_RESERVE bpmfunk Linux - General 5 10-08-2003 06:56 PM


All times are GMT -5. The time now is 12:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration