starting off.

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Ninjarider
Member
Member
Posts: 62
Joined: Fri Jun 29, 2007 8:36 pm

starting off.

Post by Ninjarider »

Im tring to write an os completely in masm for the first part. I already have a boot disk setup for it. right now it has less intelegence than dos. it will repeat keystrokes on the screen. understands backspace, leftarrow and right arrow. when pressing enter will display entered text with any corrected errors. just did get a checkstring function running so that i can run commands. curently working on a fat12 file system so that i can have my os reside on a floppy for right now. I would like to have my own implementation of ntfs soon after.

my main question is should i have the user mount each drive before allowing them access to it, to and include floppies? should i have them mount drives at all?
User avatar
Kevin McGuire
Member
Member
Posts: 843
Joined: Tue Nov 09, 2004 12:00 am
Location: United States
Contact:

Post by Kevin McGuire »

Do it with mounting, and continue onward.
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

Keep things as simple for the user as you can. If there is a reason why you need to have them mount drives do it, otherwise don't.
Ninjarider
Member
Member
Posts: 62
Joined: Fri Jun 29, 2007 8:36 pm

Post by Ninjarider »

should i have it were the os will scan each drive to see if it can read the file system and if the computer cannot then allow the user to supply settings for it.

also have a filesystem question.
have different sections of the hard drive with different sector per clusters values, would it be a good idea to allow the user to change those values.

i was thinking for default setting for a modern hd to have the drive in 3 segments. 1 - being cylinder 0 to a cylinder thats just shy of halp, 2 - leaving off from 1 and going to about 3/4 of the way, 3 - being the last 1/4 of the drive.
User avatar
mathematician
Member
Member
Posts: 437
Joined: Fri Dec 15, 2006 5:26 pm
Location: Church Stretton Uk

Post by mathematician »

In order to access a file system you need a file system driver. Some such drivers, such as FAT12 for the floppy, or the default file system for the hard disk, will probably be built into the kernel itself. Others could be loaded from seperate files. But, if you do not have a driver for a particular file system, it would require the user to do more than just supply a few settings; he would need to install a driver for that file system.

The best way of subdividing a hard disk into sections would be to use the standard partitioning scheme, introduced with MS-DOS and still in use today. You could have the user specify the cluster size he wanted, whilst probably offering a default size, when a section/partition was initialised or formatted.
JJeronimo
Member
Member
Posts: 202
Joined: Wed Oct 18, 2006 3:29 pm

Post by JJeronimo »

mathematician wrote:Keep things as simple for the user as you can. If there is a reason why you need to have them mount drives do it, otherwise don't.
There is always a reason to require mounts...
Block Caches, and deciding when to flush them...

Linux caches floppies when they are mounted, unless you configure otherwise (btw, I don't know how)...

JJ
Post Reply