Page 1 of 1
Windows HD sectors
Posted: Fri Nov 01, 2002 3:07 pm
by neowert
My OS needs to co-exist with windows, without the user creating partitions. My OS only take 512 bytes, and I need to know if windows95-me has a 512 byte sector that I can safely write over(I would rather not search for one, cause I dont know how and I dont have room for a second stage loader). My OS is small enough to actually be the bootsector, so it takes up the HD bootsector. It needs that free 512 bytes on the HD to re-locate the windows bootsector.
Re:Windows HD sectors
Posted: Sat Nov 02, 2002 7:13 am
by PlayOS
First off, Id love to see that OS, what does it actually do?
The only way I can think of you being able to achieve this is to have a dummy file on the system, that uses at least 1 sector, this way windows will not overwrite it.
Any reserved sectors on the disk would be exactly that, reserved, so you could never guarentee it would always be free.
The only problem with my suggestion is that you will need to implement a FAT file system driver to manage the dummy file.
What you want is impossible with an OS that is only 512 bytes.
Also, why dont you have room for a second stage loader? If you are willing to steal 1 sector from windows then why steal not 50 and give yourself room!