Page 1 of 1

GRUB and OS X

Posted: Mon Jan 21, 2008 4:10 pm
by simonpe
Hi!

I today i started a low level programming course at my university. To practice i decided to make a simple general purpose OS so i registered here! GREETINGS!!

My current problem:

GRUB isn't installable on OS X so i downloaded the stage binaries.
I decided to make ext2 the fs for my os so i installed those drivers too -> I can create and read ext2.

Now i want to install GRUB on my fresh 100MB ext2 image but since i can't run the grub binaries i have some serious problems doing this.
I downloaded a floppy image to boot grub from, i mount my ext2 image and the floppy in bochs.
When the GRUB floppy boots i get the grub> prompt and do the following:

grub> root (hd0)
Filesystem type unknown, using whole disk.

WTF!? :evil:

is there anyway of only using /bin/dd and copying files manually? Is the ext2 drivers messed up? Anyting? Anyone?

edit:
I also tried with Q-emu (kju), same error.

Posted: Mon Jan 21, 2008 4:24 pm
by Combuster
shouldn't it be

Code: Select all

grub> root (hd0,0)
(i.e., including the partition number)?

Posted: Mon Jan 21, 2008 4:29 pm
by simonpe
shouldn't it be

Code: Select all

grub> root (hd0,0)
(i.e., including the partition number)?
The manual states it should be the same if i only have one partition. If i do that however, i get the following error:

Error 5: Partition table invalid or corrupt.

Strange because e2fsck doesn't complain