Windows Floppy

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
FieryX

Windows Floppy

Post 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
smiddy

Re:Windows Floppy

Post 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.
FieryX

Re:Windows Floppy

Post 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.
smiddy

Re:Windows Floppy

Post by smiddy »

Yep, the names is a fixed width, otherwise it distroys the data alignment, thus inadvertantly changing it to RAW in windows.
Post Reply