flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Query: FAT12 File System Working.. |
Author |
|
smiddy 12 Apr 2012, 10:46
The Disk Operating System (DOS) does, but if you are writing the OS, then you would. Pseudo code:
1. Find and empty directory entry to use for the filename and associated attributes 2. Find open locations on the disc via the FAT 3. Update the FATs with corresponding information to where the file is being store There are some details within that but that's the crux of it. |
|||
12 Apr 2012, 10:46 |
|
uautkarsh 12 Apr 2012, 14:07
Ok.. So where can i learn more about it..??
I Googled it, but had no luck.. What does "Open Locations" mean in point 2..?? One more question.. We define a BPB table in the bootloader.. It merely tells about the disk attributes, such as number of sectors per clusters and stuffs.. So how can the system know that we are using a FAT12 file system..? |
|||
12 Apr 2012, 14:07 |
|
smiddy 12 Apr 2012, 16:40
uautkarsh wrote: Ok.. So where can i learn more about it..?? Here is a good link for a lot of OS developmental items online (there are far more): http://wiki.osdev.org/Main_Page uautkarsh wrote: I Googled it, but had no luck.. uautkarsh wrote: What does "Open Locations" mean in point 2..?? uautkarsh wrote: One more question.. Here's a OS Wiki link: http://wiki.osdev.org/FAT I hope this helps, though be warned, you have a lot of reading to do. |
|||
12 Apr 2012, 16:40 |
|
bubach 12 Apr 2012, 18:26
This is one of the best documents that I have found about FAT12:
http://bos.asmhackers.net/docs/filesystems/fat12-16-32/docs/FAT12Description.pdf I also have many other documents and code examples if you go up the directory structure on the server, like: http://bos.asmhackers.net/docs/filesystems/fat12-16-32/ The FAT table contains cluster/fat pointers to the next part of any file or directory entries, and you can read in the cluster according to a formula based on the FAT value, but it also serves as a pointer to where in the FAt table the next part is stored. For any sub-directory you have to look up which clusters to load from the FAT table and then the clusters loaded will have the same entry structure as the root directory itself. So the root is a special case becasue it has a fixed location and size so it's easier to get something from it then to first look up the directory entries for the folder, and then search for files within that. I'm not sure if i made any sense, but the document that I linked to has it all explained in a good way. |
|||
12 Apr 2012, 18:26 |
|
uautkarsh 12 Apr 2012, 18:38
@Smiddy:
OSDev WIki is one of my favorites.. I will read the document you've given.. So what do i need to do to define my own File System..?? @Bubach: I have read the document.. It was really useful.. I will check the asmhackers.. Thanks.. |
|||
12 Apr 2012, 18:38 |
|
smiddy 12 Apr 2012, 20:41
uautkarsh wrote: So what do i need to do to define my own File System..?? |
|||
12 Apr 2012, 20:41 |
|
uautkarsh 13 Apr 2012, 08:24
@Smiddy:
Hehe.. Nice one with the canvas thing.. I will check it out.. And if i get any further problems.. I will post it here.. |
|||
13 Apr 2012, 08:24 |
|
me239 30 Apr 2012, 05:30
|
|||
30 Apr 2012, 05:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.