GRUB + OS in an image

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
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

GRUB + OS in an image

Post by Lprogster »

...

Thanks,
Lprogster
Last edited by Lprogster on Tue Oct 23, 2007 11:29 am, edited 1 time in total.
wen
Posts: 8
Joined: Mon Nov 27, 2006 8:19 pm

Post by wen »

What do you mean by OS image? You mean like an ELF binary?

http://www.osdever.net/downloads/images/grubimage.zip

Above is a grub formated floppy, replace kernel.bin and it should boot fine. If you are on windows use rawwrite or similar to write to a physical disk.
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

...

Thanks
Lprogster
Last edited by Lprogster on Tue Oct 23, 2007 11:29 am, edited 1 time in total.
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 »

You have file management utilities that work on images.
On linux you can use the loopback device, you can compile and use mtools on windows. That way you can replace the kernel binary without having to write to disk.
"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 ]
Lprogster
Member
Member
Posts: 174
Joined: Tue Nov 14, 2006 11:59 am

Post by Lprogster »

Umm? What is MTools? I have no idea how to go about it, could you show me an example batch file plz?

Thanks
Lprogster
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 »

About mtools
MTools sources
And since i dont use batchfiles: Sample makefile
"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 ]
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

Post by gaf »

Another great tool for windows is vfd (download) which allows you to mount a disk image as a virtual floppy drive. Bochs can then boot from this drive as if there was a real floppy disk. The tool also saves you from having to patch your image with a new kernel as it allows you to access the files nativly from your explorer.

regards,
gaf
Post Reply