Page 1 of 1

ext2 or ext3 filsytem tutorial?

Posted: Sat Sep 08, 2007 12:26 am
by HJED
hi
is there any good ext2 or ext3 tutorial that show u how to let your os use these filesytem
(not to boot but to us)

Posted: Sat Sep 08, 2007 1:25 am
by Pyrofan1
get the documentation, but using ext2 or 3 is quite an achievement.

Posted: Sat Sep 08, 2007 2:45 am
by HJED
then dose any1 know of another filesystem that there are tutorial for that can do reasonable sized portions
PS fat32 has size limitations and i would like to be able to use proper sized parsons!
PPS i am not very good at witting code based on the theory.
so if any1 knows of tutorials that use examples i would be great full

plz help

:cry:

Posted: Sat Sep 08, 2007 7:01 am
by Avarok
I'm honestly far from understanding the mechanics behind filesystems.

This is obviously rather complicated, and most of us tend to avoid it until we've got:

1) scheduling/tasks/threading figured out.
2) memory management/paging
3) loading executables
4) disk drivers

I *can* say that if you want to suspend your OS on the filesystem, and boot your OS, you can do that with a quick hack. Mount the image, save your OS on it somewhere, and then find out what address the image is stored at, ignoring the filesystem. Once you then figure all the necessary stuff to actually *run* an FS, your OS image will already be one of the files.

:P Good Luck.

Posted: Sat Sep 08, 2007 7:50 am
by Combuster
HJED wrote:then dose any1 know of another filesystem that there are tutorial for that can do reasonable sized portions.
The closest to a tutorial I can think of is the FAT page on the wiki. If you want a filesystem which you can implement with minimal effort, try SFS (link in my signature)
PS fat32 has size limitations and i would like to be able to use proper sized parsons!
FAT is capable enough to be used on large partitions (current harddisks haven't outgrown FAT yet.) Filesizes are limited to 4GB, which is not really an issue until you start working with DVD images. For starting OSDev, its a non-issue.
PPS i am not very good at witting code based on the theory.
Practice makes perfect. Try it already. Once you'll be asking for a tutorial on 3D accellerated cards its too late.

Posted: Sat Sep 08, 2007 7:28 pm
by HJED
ok i think i will leave it 4 a while then
seeing as my kernel is going to be on the flash drive and the rest of the system on the hard drive
thks 4 your help anyway