Page 1 of 1

Creating FAT12 GRUB image from within Windows. [SOLVED]

Posted: Tue Oct 02, 2007 1:07 am
by AndrewAPrice
How do I create a FAT12 GRUB image from within Windows? I have Cygwin installed, but after I have built GRUB, how do I get it to install to an image rather than to a drive?

Posted: Tue Oct 02, 2007 1:59 am
by AndrewAPrice
I'm trying to build GRUB 0.97 (with VBE GRUB patch). I get the following error trying to run ./config in Cygwin:

Code: Select all

configure: error: GRUB requires a working absolute objcopy; upgrade your binutils
I have the latest release if binutils installed.

Posted: Tue Oct 02, 2007 2:08 am
by AndrewAPrice
Screw this, I'm just going to boot Linux in an emulator, attach a blank floppy, and compile/install it into my floppy image in the virtual environment.

Posted: Tue Oct 02, 2007 3:42 am
by AndrewAPrice
That was a lot easier! I should have given the emulator more memory, because the took less than a few minutes to do, but trying to work my way around with each command causing the system to lock up for a few minutes made that take over an hour.

Anyway, I've now have a FAT12 VBE GRUB 0.97 bootdisk! I noticed it says "0.95" at the top of the menu, but I'm 100% positive this is 0.97. I downloaded the source from GNU's ftp, and I definitely downloaded "grub-0.97.tar.gz" because I can see the file on my desktop right now. The floppy image I installed it onto was freshly formatted too.

Man u should check out WinImage ....

Posted: Tue Oct 02, 2007 11:29 pm
by DeletedAccount
Man use Winimage ... You can use the trail version as long as you
want .... The other tool u should check out is Virtual Floppy Drive
for Windows ... (requries winNT or higher)

Last but not the least u should have a real floppy drive ... Then
install grub and make use of partcopy to make the image .....


For my kernel .. I use the image provided in the brans kernel development tuorial and replaced the original kernal.bin with
my kernel .. This way you can avoid a lot of headache ....

Cheers .. Sandeep Mathew ..

Re: Man u should check out WinImage ....

Posted: Wed Oct 03, 2007 2:57 am
by AndrewAPrice
SandeepMathew wrote:For my kernel .. I use the image provided in the brans kernel development tuorial and replaced the original kernal.bin with
my kernel .. This way you can avoid a lot of headache ....
I use to use Bran's, but it was an old version of GRUB that didn't like the memory position I was loading my kernel into. That's why I built 0.97. Anyway, all's well now :).