Hello I'm currently making my 2nd hobby OS in C (last one in asm) but I have no clue on how to make or implement a File System into my OS so if anyone knows this kind of stuff I'd like a little help source code or a tutorial of some kind THANKS!:c-cool:
3 replies to this topic
#1
Posted 28 March 2011 - 05:29 PM
|
|
|
#2
Posted 28 March 2011 - 11:44 PM
Hello.
Probably you have to start from understanding how modern FS work:
1. ext2fs Anatomy of the Linux file system
2. NTFS iXBT Labs - NTFS File System - Page 2: Physical structure cont'd
Further you have to balance requirements and features of your FS against
target hardware capabilities. If you plan your OS running in a cell phone
it is one thing, if on desktop machine it is another.
Overall good reading (including goal and development strategy) is:
http://www.nobius.or...stem-design.pdf
There are some code snippets too.
Probably you have to start from understanding how modern FS work:
1. ext2fs Anatomy of the Linux file system
2. NTFS iXBT Labs - NTFS File System - Page 2: Physical structure cont'd
Further you have to balance requirements and features of your FS against
target hardware capabilities. If you plan your OS running in a cell phone
it is one thing, if on desktop machine it is another.
Overall good reading (including goal and development strategy) is:
http://www.nobius.or...stem-design.pdf
There are some code snippets too.
#3
Posted 29 March 2011 - 06:50 AM
You should take a look at mmurtl it has it's own book (Developing Your Own 32 Bit Operating System), mmurtl has implemented a fat like file system
and the source code is in public domain.
MMURTL V1.0
and the source code is in public domain.
MMURTL V1.0
#4
Posted 29 March 2011 - 10:05 AM
I'd go with implementing FAT16 first, since it's really easy to do compared to FAT32 or any of the extfs systems. (Alternatively, you can make up your own file system, though I don't think that'd be a good idea for the sake of portability.)
sudo rm -rf /
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









