Click here to Skip to main content
15,886,055 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hey guys,

i am currently writing my own OS and it's going great, i have my bootloader, kernel and some other programs so that i can do stuff. but at the moment, the files that it uses are the files in the .img file. that's okay since it's my first os and i'll probably re-write it later to fix bugs that come up anyway, but i would like to know how to connect the os to the drives of the computer so that i can access the files and folders of the computer.

thanks :)
Posted
Comments
[no name] 28-Aug-13 16:49pm    
Let me if I understand this.... you wrote your own operating system... so far so good. And now you want someone that knows absolutely nothing about your operating system to tell you how to connect the drives? How would you expect us to know anything about your OS to be able to tell you? It's your OS, you should know know this information already....
pasztorpisti 29-Aug-13 5:35am    
If you are writing an OS then you should be able to do this. From your question it seems as if you were playing around with the copy pasted code of others' without having serious knowledge about operating systems. If you want to connect drives then search for some basic hardware programming tutorials. In case of a simple operating system I would start out by examining the int 13h bios interrupt. Since you were talking about an img file it can be possible that you are using a VM, in this case check out your VM how can it simulate drives. I would forget about shared folders between the VM and your real world machine as VMs (like virtualbox) provide drivers only for some popular OSes and writing one for you may be difficult or impossible.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900