Multiple Filesystems
Multiple Filesystems
How can i put in my o.s. a FAT32 and EXT2 Filesystems?
and how can i make something to choose from them?
how can i boot the filesystems?
and how can i make something to choose from them?
how can i boot the filesystems?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Multiple Filesystems
okay, first you don't put "filesystems" in an OS : you put drivers to support them. Filesystem is a file organisation that is on the disk, somewhere ...
To have your OS support for FAT32 or ext2fs, you must decode sectors you read from the FAT partition (or ext2fs partition) according to the filesystem specifications (look out for them at Operating System Resource Center in .:QuickLinkz:.)
The OS can tell the driver to use for a given partition by looking at the partition type in the disk's Partition Table (in the Master Boot Record)
To have your OS support for FAT32 or ext2fs, you must decode sectors you read from the FAT partition (or ext2fs partition) according to the filesystem specifications (look out for them at Operating System Resource Center in .:QuickLinkz:.)
The OS can tell the driver to use for a given partition by looking at the partition type in the disk's Partition Table (in the Master Boot Record)
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Multiple Filesystems
let's make myself clearer:
The goals for a file system are:
The goals for a file system are:
- manage the disk space: The filesystem driver will have to look up for some special sectors telling how much free sectors remain and where they are. When allocating a sector, a tag is written in that special area to tell the sector is now busy.
FAT32 uses the FAT to do this (a special value is used for identifying free clusters), ext2fs uses a bitmap in the group's superblock (iirc) - collect sectors into files: The filesystem driver will have to be able to tell you which sector is the next one in a list of sectors (that makes a file). Once again, in FAT32, this is stored in the fat: at FAT[cluster], you read the cluster number for the next sectors or a special value meaning the end of the file.
In ext2fs, special sectors (called inode) hold a list of sectors number for the file. If a single sector is not enough to list all the sector numbers, then a second level is added (so that the inode holds numbers of sectors that hold themselves numbers of the sectors of the file). - provide directory service : It's useless to have files if you can't find them back! so every filesystem will come with a way to "name" them, and most do by the mean of directories.
A directory is nothing but a file that contains "name -> file's main sector" information under a given format.
Re:Multiple Filesystems
where are the websites that tell me how to implement FAT32 and EXT2?
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Multiple Filesystems
http://www.nondot.org/sabre/os/articles/FileSystems/Pype.Clicker wrote: (look out for them at Operating System Resource Center in .:QuickLinkz:.)
(do you ever read what i wrote or are you just performing a color analysis to see if something can be clicked ? i really wonder ...)
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:Multiple Filesystems
Well, try www.google.com. Ask it for linkses. Don't be lazy. yes, i say it.
thanks for your magnificient audience.
ps. I understand your father... ::)
thanks for your magnificient audience.
ps. I understand your father... ::)
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:Multiple Filesystems
(I wonder if he's able to read and understand english... or if he just copies sentences from elsewhere after having searched in a dirtionary about two or so words.)
nuno_silva, listen: It has 2 letters, this word. At least read it: NO.
There is plenty of source code in Linux, there is plenty of source code in minix, what the hell are you expecting more??
nuno_silva, listen: It has 2 letters, this word. At least read it: NO.
There is plenty of source code in Linux, there is plenty of source code in minix, what the hell are you expecting more??
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Multiple Filesystems
what's the point ? Linux isn't in C++ ... that's just C !nuno_silva_pt wrote: I'm sorry. but i didn't ever have any c++ cource.
And if you don't know C, how will you use sources we would send to you ?
Really, you should improve your english or find a board in your natural language... we're just all getting nervous by the "one-way" communications ...
I'm sorry to have this to be said... Look out for good books in portugese (you're portugese, aren't you) because we cannot help someone we can't talk to ...
Re:Multiple Filesystems
That's the problem. In my country we don't have any osdev forum.
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Multiple Filesystems
nor do we in mine... but we have libraries and bookstores
- Pype.Clicker
- Member
- Posts: 5964
- Joined: Wed Oct 18, 2006 2:31 am
- Location: In a galaxy, far, far away
- Contact:
Re:Multiple Filesystems
maybe you can try out some of your local university website and search for course notes or something alike ...
Or just try to translate the System Programming Manual from Intel ...
(it took time, but that's what i did myself ...)
Or just try to translate the System Programming Manual from Intel ...
(it took time, but that's what i did myself ...)
-
- Member
- Posts: 1600
- Joined: Wed Oct 18, 2006 11:59 am
- Location: Vienna/Austria
- Contact:
Re:Multiple Filesystems
Nuno_silva, of course you will find good books!
go to www.amazon.com f. ex.
and check quick linkz and book recommendations on this board.
go to www.amazon.com f. ex.
and check quick linkz and book recommendations on this board.
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
BlueillusionOS iso image