FastFilesSystem (FFS) in my own OS
Posted: Tue Sep 17, 2002 11:00 pm
I planed to use the FFS for my own OS but there's some trouble
1st:
I've no real "Kernel".
My "OS" boots up and writes a text on (to?) the screen.
Ok but now lets start:
Problem
a) Hardwaredetection
I planed to write the complete hardwaredetection in ASM (complete? hm...may be not )
So: Thats my idea for HDD detecting:
input: AH = 15h DL = HDD-Number ( 80h first, 81h second HDD and so on)
output: CF = error (device not aviable) AH = Errorcode sets by CF register
I hope it will work (all extremlz theoretic for me)
b) How to format the HDD?
How do i format the HDD with FFS?
I looked into the BSD Source but I'm not good enough for the C-Code .(
I think i've to include the following (? corect? equal) files:
newfs
label
chkfs (or so)
fdformat
FFS (the filessystem...bit and not easy....for me)
c) How did i boot from HDD?
Yes...
After labeling, formating and creating of the filesystem it should be possible to boot from the Harddisk. .)
Also:
Problem a and c is easy (i could do it myself) but B is a hard problem form me .(
Because i've no idea how to include the FFS (and how to format ).
But why FFS and not an "easy" FS like FAT32? Because i know 2-3 persons who will help me if the little "OS" is booting from HDD (with ffs).
It's all difficoult but it makes fun
I hope there is somebody out there who will held a little boy from germany by implementation of this "nice" Filesystem
good night
mfg. Sebastian Rother
p.s.
Sorry for any mistakes in the text...
i go to bed now... i hope you understand .)
1st:
I've no real "Kernel".
My "OS" boots up and writes a text on (to?) the screen.
Ok but now lets start:
Problem
a) Hardwaredetection
I planed to write the complete hardwaredetection in ASM (complete? hm...may be not )
So: Thats my idea for HDD detecting:
input: AH = 15h DL = HDD-Number ( 80h first, 81h second HDD and so on)
output: CF = error (device not aviable) AH = Errorcode sets by CF register
I hope it will work (all extremlz theoretic for me)
b) How to format the HDD?
How do i format the HDD with FFS?
I looked into the BSD Source but I'm not good enough for the C-Code .(
I think i've to include the following (? corect? equal) files:
newfs
label
chkfs (or so)
fdformat
FFS (the filessystem...bit and not easy....for me)
c) How did i boot from HDD?
Yes...
After labeling, formating and creating of the filesystem it should be possible to boot from the Harddisk. .)
Also:
Problem a and c is easy (i could do it myself) but B is a hard problem form me .(
Because i've no idea how to include the FFS (and how to format ).
But why FFS and not an "easy" FS like FAT32? Because i know 2-3 persons who will help me if the little "OS" is booting from HDD (with ffs).
It's all difficoult but it makes fun
I hope there is somebody out there who will held a little boy from germany by implementation of this "nice" Filesystem
good night
mfg. Sebastian Rother
p.s.
Sorry for any mistakes in the text...
i go to bed now... i hope you understand .)