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
How to Boot
Re: How to Boot
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.prudhvi wrote:is there any method to boot into my kernel using the grub.My kernel must boot from my hard disk.
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
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.
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
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
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
-----------------------
There are 10 types of people in this world... those that understand binary, and those that don't.
There are 10 types of people in this world... those that understand binary, and those that don't.
Re: How to Boot
Add grub multiboot header . Compile your kernel and boot it....
See OSD samples:
http://my.execpc.com/~geezer/osd/code/osd.zip
See OSD samples:
http://my.execpc.com/~geezer/osd/code/osd.zip
Re: How to Boot
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...
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...
-
- Member
- Posts: 83
- Joined: Fri Oct 22, 2004 11:00 pm
Re: How to Boot
Jonny, sector 0 is the boot sector. 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.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...
Oh, and, you don't suck. You are just new to programming an operating system.
-
- Member
- Posts: 134
- Joined: Sun Oct 24, 2004 11:00 pm
- Location: North Dakota, where the buffalo roam
Re: How to Boot
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.[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