Page 1 of 1

booting my kernel with GRUB

Posted: Thu Nov 20, 2003 6:09 pm
by xxchrisxx
I've decided to give GRUB a try but i'm having a few problems.
I did the following:

cat stage1 stage2 > boot
cat boot >/dev/fd0

I compiled my kernel and did:

cat kernel.bin >>/dev/fd0

When it booted it said "Verifying DMI Pool Data......" then just hangs there. It Doesn't seem to read much off the floppy. Worse part is I just tryed to boot back into NetBSD and the PC just reboots and reboots and reboots.... :(

What have I done wrong ?

* url to the kernel source: http://osdev.neopages.net/downloads/tut ... l_grub.zip

Re:booting my kernel with GRUB

Posted: Fri Nov 21, 2003 1:57 am
by Solar
Errors in your kernel can be ruled out, since they wouldn't make your PC reboot after you removed the boot (floppy) disk. (You did remove it, yes?)

So I'd daresay you hit /dev/hd0 instead of /dev/fd0 at some point of the procedure, resulting in a non-functional /dev/fd0 and a mangled /dev/hd0 bootsector.

Re:booting my kernel with GRUB

Posted: Fri Nov 21, 2003 2:49 am
by Pype.Clicker
what seems weird to me is that 'append to floppy' command ...
doing "cat kernel >>boot" would make sense as the filesystem know how big "boot" was and where appended bytes should go, but on a physical device, i hardly see how it could work ...

And concerning your NetBSD, the best thing to do is probably to get a boot floppy for it (i mean a NetBSD boot floppy) which could have "run the installed system" or something ...

Or maybe trying to boot it with a clean GRUB disk with manually provided commands ...

with little chance, only the bootloader of your harddisk was damaged and the system itself is still available.