This project is read-only.

COSMOS Files in drive C

Topics: Off Topic, Other, Using Cosmos (Developing your own OS, projects, etc)
Oct 24, 2013 at 2:16 PM
Hi,
Can anyone kindly show me how to display, delete and create files in Drive C.
Oct 24, 2013 at 2:20 PM

You will either need to use FAT or NTFS (which is extremely complicated and not well documented). I would suggest you read up on filesystem theory.

Oct 26, 2013 at 3:37 AM
Nope, FAT is very much simple, FAT12 I mean.
FAT12 is usually for floppies, but it's a heck lot simpler than FAT16,FAT32,NTFS,EXT4
Check out this page (It's in C but for an OSDever It'd be easy to port it C#) : http://www.brokenthorn.com/Resources/OSDev22.html
Don't ask me, or any other person to do this, If you are an OSDever you should know how to deal with stuff
Oct 26, 2013 at 3:39 AM
By extremely complicated I meant NTFS. Here's another good starting point though: http://wiki.osdev.org/Filesystem

Joshua Beitler - Twitter | GitHub


Oct 26, 2013 at 4:54 AM
Yep that's true, I would never ever want to implement NTFS, M$ has spent a good time complicating it, Even My Ubuntu doesn't work well with my NTFS formatted hard drive. Also Here's a new file system : BMFS (Bare-Metal File System) It's primarily for BareMetal OS which is in assembly, but again it's a simple file system and can work on HDD's, here's the source on github : https://github.com/ReturnInfinity/BareMetal-OS/blob/master/os/drivers/filesystems/bmfs.asm
Understand the file system, How are clusters read, Sectors, and stuff like that.
Note : I wanted to share this since your question is very vast, it's really unclear what you are asking "Drive C", the very first thing is you should get a File System On, and then ask about Drive C, and D,
Firstly you should be able to at least read from the root directory of a floppy, and then go to drives.