Page 1 of 1

How to Boot

Posted: Thu Oct 28, 2004 11:00 pm
by prudhvi
Hi,
I have developed my own small kernel
but i dont wat to boot to it from the floppy disk instead i want to boot from my hard disk running on RHEL V3 with Grub as default boot loader. is there any method to boot into my kernel using the grub.My kernel must boot from my hard disk.

please post the answer soon.

Prudhvi Krishna Surapaneni

Re: How to Boot

Posted: Thu Oct 28, 2004 11:00 pm
by bregma
prudhvi wrote:is there any method to boot into my kernel using the grub.My kernel must boot from my hard disk.
GRUB is a bootloader: it's sole purpose is to boot your kernel from the hard disk. You should try reading the GRUB documentation, it's not obscure.

Among the good things about GRUB is that it will boot your kernel, your development platform, and your Windows install (for playing games) all from the same hard disk.

Re: How to Boot

Posted: Fri Oct 29, 2004 11:00 pm
by prudhvi
I have Every File Needed to Boot My Kernel. can any one explain me how to boot into it.

i would me more happy to boot from my Kernel from Harddisk
and that too using Grub as a boot loader.

Re: How to Boot

Posted: Mon Nov 01, 2004 12:00 am
by [AlAdDiN]
The best solution is to write a loader witch will be loaded with GRUB, then will load all files needed by your OS

If you want to know how to use GRUB, this link may be useful
http://www.mega-tokyo.com/osfaq2/index. ... 5c3418a8c3


H4v3 Fu|\| (^_^)Y

Re: How to Boot

Posted: Fri Nov 19, 2004 12:00 am
by DIpendra
Add grub multiboot header . Compile your kernel and boot it....
See OSD samples:
http://my.execpc.com/~geezer/osd/code/osd.zip

Re: How to Boot

Posted: Fri Nov 26, 2004 12:00 am
by jonny
I dont even use a bootloader...
I just use PARTCOPY and copy the binary file into sector 0.
this would work for your hd, but it would destroy your current boot sector!
I'm new to OS programming someone tell me if i suck...

Re: How to Boot

Posted: Fri Nov 26, 2004 12:00 am
by ComputerPsi
jonny wrote:I dont even use a bootloader...
I just use PARTCOPY and copy the binary file into sector 0.
this would work for your hd, but it would destroy your current boot sector!
I'm new to OS programming someone tell me if i suck...
Jonny, sector 0 is the boot sector. :P When you use PartCopy to write to sector 0, you are basically putting in your own code for the boot sector. Not really destroying (unless you already have another system installed). Sector 0 is the boot sector for both the floppy and the hard drive. So your system would work on both a floppy disk and a hard disk.
Oh, and, you don't suck. ;) You are just new to programming an operating system.

Re: How to Boot

Posted: Sat Nov 27, 2004 12:00 am
by rexlunae
[AlAdDiN] wrote:The best solution is to write a loader witch will be loaded with GRUB, then will load all files needed by your OS
H4v3 Fu|\| (^_^)Y
If you need to load multiple files, why not use GRUB's built-in module-loading capability? Much simpler than creating a loader for GRUB to load.