Page 1 of 1

Format a floppy image file with FAT12

Posted: Sat Jun 29, 2013 12:05 am
by ksanjeet
I have started an OS project. I have created a simple real mode bootloader. I am still to learn coding PM and kernel. I want to use a floppy image file to store my bootloader and kernel. I have created a qemu-img file. I want to format the image file with FAT12 for which I want to write a FASM code. I have read documents on floppy disk geometry but I am looking for some example code to learn from it.

Re: Format a floppy image file with FAT12

Posted: Sat Jun 29, 2013 1:01 am
by HugeCode
http://mikeos.berlios.de/
Whole operating system is in 16-bit code.

Re: Format a floppy image file with FAT12

Posted: Sat Jun 29, 2013 2:42 am
by egos
ksanjeet, I have published my old mkfloppy sources here for some days. Search for keyword "mkfloppy" on this forum for examples.

Edited. Link updated.

Re: Format a floppy image file with FAT12

Posted: Sat Jun 29, 2013 2:56 am
by Prochamber
It depends on the operating system that you are using. I'd recommend you check out the build scripts for MikeOS.

Re: Format a floppy image file with FAT12

Posted: Sat Jun 29, 2013 3:12 am
by ksanjeet
Thanks everyone.
MikeOS is proving to be a great help.

So far, I am using OS tools to format the images. I want to write my own code to format images.
I have downloaded ego's code from the link and will try to learn from it. Thanks and I really appreciate everyone's help.


:) :)