Page 1 of 1
How do I implement a filesystem?
Posted: Wed Sep 06, 2017 6:49 am
by vzzr
Hi.
I am a beginner to os development. I've done very well. I have been experimenting. I've been playing with INT 13h, INT 10h and INT 16h.
I would like to know how to implement FAT12 please. I've checked out the wiki and some forum threads. Where wood be a good starting point?
Re: How do I implement a filesystem?
Posted: Wed Sep 06, 2017 9:15 am
by BenLunt
First, you should find the FAT specification. Google is your friend.
Second, you should find a disk image that is already formatted and (heavily) used with this FAT file system on it so that you can extract information from it. See how it is put together.
Something I did when I first started, and I strongly suggest, is that you write a small utility that will view the MBR, BPB (BIOS Parameter Block), and/or other parts of the file system in question. Dump the contents of an already built file system.
I use WinXP as my development system. You can see what I am talking about at
http://www.fysnet.net/win_dump.htm. You should do the same using whatever development system you are using.
With the specification sheet and the extracted information both in front of you, you should be able to see exactly what the file system does and how to implement it yourself.
Once you have done this, be sure to let us know of any other questions you may have.
Ben