GRUB and OS X

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
simonpe
Posts: 2
Joined: Mon Jan 21, 2008 3:58 pm

GRUB and OS X

Post 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.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

shouldn't it be

Code: Select all

grub> root (hd0,0)
(i.e., including the partition number)?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
simonpe
Posts: 2
Joined: Mon Jan 21, 2008 3:58 pm

Post 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
Post Reply