Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appendix B01-B03 in series of writing os in cpp #37

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ssagar-linux
Copy link

a35756d [FAT32 extended] In series of writing os in cpp:- Appendix B03) Added functionality to Read all sector/cluster belonging to file:-
bec5bbd [FAT32 fs] In series of writing os in cpp:- Appendix B02) Implemented Fat32 filesystem
aff3c38 [MBR] In series of writing os in cpp:- Appendix B01) Disecting MBR(master boot record) alongwith partition table written by fdisk from TinyCoreOS

for reference check my repo https://github.com/ssagar-linux/ssagarWyoos

Appendix B01) Disecting MBR(master boot record) alongwith partition table
written by fdisk from TinyCoreOS

++ create 2 parition via fdisk in virtual hardisk using TinyCoreOS
then in wyoos using ata driver gather info about MBR and Parition Table
Appendix B02) Implemented Fat32 filesystem

++ Using partitionOffset accessed 1st sector of partition which is known as BiosParameterBlock / VolumeID.
bpb helps find location of FAT table, data, root directory cluster, etc
From rootCluster we get access to DirectoryEntries which holds location of file data
if dirent[i].attributes & 0x10 != 0x10
Appendix B03) Added functionality to Read all sector/cluster belonging to file:-

++ using tinyCoreOs create 8kb bile that span over multiple sector and cluster
++ Using 1st rootCluster we are able to reach 1st cluster of file data then
     i)  Get next cluster belonging to file from FAT table
     ii) Get next sector belonging to file from current file cluster
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant