Page 1 of 1

Windows Floppy

Posted: Sat Oct 07, 2006 3:03 am
by FieryX
Hi, im quite new on OS Development, and i have a question...

When you use windows, the floppy is in FAT format, but when im writing my Boot, Kernel etc to it it becomes RAW, so i can only write the boot to the floppy then it has to be formatted.

The code im using is http://www.mohanraj.info/boot.asm
This is just an example my isnt exactly like that.

Im writing to the floppy with:

Code: Select all

debug boot.bin
-w 100 0 0 1
after that u cant write the kernel.bin to the floppy...

Why?

Sry for my english im not a native speaker.-_-

//Best regards FieryX

Re:Windows Floppy

Posted: Sat Oct 07, 2006 5:35 am
by smiddy
I suspect your boot sector doesn't match the needs of a FAT boot sector. Attached it my own boot sector. It is pretty well commented and can be modified easily to meet your needs. I wasn't able to get to the link you listed so I was unable to read your boot.asm.

Re:Windows Floppy

Posted: Sat Oct 07, 2006 3:55 pm
by FieryX
Thx, i solved it looking at wikipedia where it where about FAT12 that i had to use 8, 11, 8 wide chars not less nor more.

Re:Windows Floppy

Posted: Mon Oct 09, 2006 4:56 am
by smiddy
Yep, the names is a fixed width, otherwise it distroys the data alignment, thus inadvertantly changing it to RAW in windows.