#OSdev 04 Coding your own File System in C

preview_player
Показать описание
In this exciting new episode we will implement our own filesystem in C. We're going to utilize our disk emulator and our OSapi which makes it possible to run this project under Windows, MacOS or Linux - no virtual machines necessary!

Our filesystem will make use of a regular file on your disk, emulating a real hard disk device - which makes all this possible during development. Then we can easily switch to a real hard disk model when we are done coding, going into production.

This project works perfectly fine on its own, you don't even need to watch the earlier episodes because all the code is available in the repo. However, this episode is still part of my OSdev series where we develop a fully functional, real MS-DOS like operating system, based on the Intel x86 16 bit real mode architecture.

References

1. Designing your own Filesystem

2. Coding a disk emulator in C

Buy my book about computer networking:

Become a channel member and get several benefits, check out:

Table of Contents

00:00:00 The FS in 30 sec
00:00:30 Introduction / planning
00:10:35 Data structures
00:36:05 Utility functions
00:50:08 Formatting disk
01:34:35 Implementing a bitmap
03:51:30 Adv. bitwise functions
04:46:00 Handling files (inodes)
06:12:56 Mounting the FS
Рекомендации по теме
Комментарии
Автор

Hope you enjoyed your well deserved time away from creating magic. I can't believe I've come quite far in applying C in all of these awesome projects you've built and shared. 😊❤❤

TrumpISAgentORANGE
Автор

Thank you for the awesome content Sir, I just saw that YouTube opened the superchat button back for this video. Getting deep into file systems once my final exam weeks are over, this summer is going to be full on coding C fun for me, thanks to you Doctor :)

CodeLangtonsEntropy
Автор

I'm a rust guy, but I really like your tutorials.
thank you, doctor ❤

unknown__
Автор

Always a pleasure to learn from you !! Would you explore making a tutorial on ebpf/dtrace/strace on performance related topics using C, Thanks.

unixpraxsecurity
Автор

Hi, dr jonas, I'm really excited in ur C HTML (An own HTML language in c) project tutorial and had some quick questions. Being an Intermediate at C, I wanted to know C I need to know before starting the tutorial, if there is any other knowledge of other technology required and if the 9 hour video on your channel the entire tutorial or if other parts are coming / available on different channels or platforms. I'm sorry if these are simple questions. I just wanted to ensure if I have enough knowledge to start the tutorial. Thanks for such an amazing project!

FearFFAWM
Автор

I dont learn C or C++ but i love your channel and your video

LearnSeo-ch
Автор

Hello sir, im wondering if you can make a beginner friendly video on a small project maybe : a simple printf function, a terminal text editor ...etc with explanation of every step. thank you

dishwasher
Автор

I think that is a song by Pete Seeger; who is singing it here ?

ericzeisel
Автор

Dr.Jonas, can you make a tutorial on Raylib with C?

That would be helpful for beginners.

N-ns
Автор

thnks thnks thnk i requested for it and you made it although its different but it helped me so much thnks

hambabamba-dp
Автор

"I've completed several tutorials and coding practices, but I haven't yet undertaken a significant project. I also feel that I lack the necessary knowledge for such endeavors. Could you please guide me on how to proceed with learning and building these types of projects?"

vaibhavtripathi
Автор

Hello Dr. Jonas Birch, I want to ask a question, I know it has nothing to do with the video above, but I'm curious, is there any way I can create a code in C encryption, send it to a colleague and my colleague can just call the functions I created and everything will work?

maclaurinrocha
Автор

Hello Doctor, magnificient lecture yet again Sir, thank you for teaching. Sir however it appears that the comment section of this particular video does not have YT superchat options enabled. Your other videos all have superchat enabled though, just this one does not have i see Sir.

CodeLangtonsEntropy
Автор

imo bitwise implementation is unnecessary unless it goes through x86 arm

ilkinq.
join shbcf.ru