Format a floppy image file with FAT12

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
ksanjeet
Posts: 2
Joined: Fri Sep 14, 2012 3:28 am

Format a floppy image file with FAT12

Post 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.
HugeCode
Member
Member
Posts: 112
Joined: Mon Dec 17, 2012 9:12 am

Re: Format a floppy image file with FAT12

Post by HugeCode »

http://mikeos.berlios.de/
Whole operating system is in 16-bit code.
egos
Member
Member
Posts: 612
Joined: Fri Nov 16, 2007 1:59 pm

Re: Format a floppy image file with FAT12

Post 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.
Last edited by egos on Sat Mar 14, 2015 12:06 pm, edited 1 time in total.
If you have seen bad English in my words, tell me what's wrong, please.
Prochamber
Member
Member
Posts: 100
Joined: Wed Mar 13, 2013 2:27 am

Re: Format a floppy image file with FAT12

Post by Prochamber »

It depends on the operating system that you are using. I'd recommend you check out the build scripts for MikeOS.
TachyonOS - Violates causality on 95% of attempts. Runs at approximately 1.5c.
ksanjeet
Posts: 2
Joined: Fri Sep 14, 2012 3:28 am

Re: Format a floppy image file with FAT12

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


:) :)
Post Reply