How to create a new filesystem ?
Posted: Fri Jul 08, 2005 7:22 am
I have read couple of articles about filesystem. I know the basic, we hate to built a fat, a kind of table with filenames and the adress on the hard drive.
I searched on google but I just can't find anything specific about questions I ask me
But Im a little lost about how to create it.
1) Sectors of hdd are always 512 bytes ? or if this is determined by the format ? If not, a hdd total space is calculated like that: 512XNumber of sector per cylinder X number of cylinder X number of head X Number of face per cylinder ?
I know the bios int can allow to write into a specific sector, head and cylinder, but can we write on a specific area on the sector ? Or if we always have to write at the beginning of a sector ? In that case we loosing space, right ?
In the bios int 13h we can read a specfic number of sector, on a head and a cylinder, but in my FAT I have to write something like: fileXYZ.EXT and his adress: one byte for the sector, one byte for the head and one for the cylinder ?
How can I read/write file on the disk with a specific on the hard drive ?
And finally, where I have to store my fat, or my filesystem structure table ? on sector 1 ? (0 is used by the bootstrap)
The table can grow because we delete, creating files, how many space I should reserve for the FAT ?
As example, where is stored the FAT32 of Windows 98/2000/XP ?
I need some direct informations like that to know how to create my filesystem
Thank you.
I searched on google but I just can't find anything specific about questions I ask me
But Im a little lost about how to create it.
1) Sectors of hdd are always 512 bytes ? or if this is determined by the format ? If not, a hdd total space is calculated like that: 512XNumber of sector per cylinder X number of cylinder X number of head X Number of face per cylinder ?
I know the bios int can allow to write into a specific sector, head and cylinder, but can we write on a specific area on the sector ? Or if we always have to write at the beginning of a sector ? In that case we loosing space, right ?
In the bios int 13h we can read a specfic number of sector, on a head and a cylinder, but in my FAT I have to write something like: fileXYZ.EXT and his adress: one byte for the sector, one byte for the head and one for the cylinder ?
How can I read/write file on the disk with a specific on the hard drive ?
And finally, where I have to store my fat, or my filesystem structure table ? on sector 1 ? (0 is used by the bootstrap)
The table can grow because we delete, creating files, how many space I should reserve for the FAT ?
As example, where is stored the FAT32 of Windows 98/2000/XP ?
I need some direct informations like that to know how to create my filesystem
Thank you.