Jump to content

File Systems

- - - - -

  • Please log in to reply
3 replies to this topic

#1
anti149

anti149

    Newbie

  • Members
  • Pip
  • 3 posts
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:

#2
gentoorion

gentoorion

    Newbie

  • Members
  • Pip
  • 2 posts
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.

#3
TAL

TAL

    Newbie

  • Members
  • Pip
  • 2 posts
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

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,718 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
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