loading os from fat

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
zola

loading os from fat

Post by zola »

I want my boot sector loads kernel from fat file system. Indeed I implement it. But whenever I build a new kernel, I have to take a new fdc image and then run my os. Booting from real device is slower. So I need a virtual floppy device(like virtual cd and hdd drives). Is there a tool or program which loads virtual floppy device? Or what do you whose bootsector loads kernel from fat file system do whenever you build a new kernel?
Kemp

Re:loading os from fat

Post by Kemp »

If you've properly implemented the loading from the filesystem then you should just be able to write the new kernel to the disk as you do with any other file.

If you want to load from a floppy image then you could use an emulator such as Bochs. I personally use Hex Workshop to manually copy the stuff the disk image, but you could use a program such as rawwrite or the linux dd (I think) command.
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:loading os from fat

Post by Pype.Clicker »

you may want to check out "working with disk images" section in the FAQ (http://www.osdev.org/osfaq2/)
Cjmovie

Re:loading os from fat

Post by Cjmovie »

So you would basically go to this page:
http://www.osdev.org/osfaq2/index.php/D ... %20Windows

Find that filedisk is what you want and get it.

Basically then I guess you could load a BLANK image into it, then treat it like a real floppy (Like to insert the bootsector you could partcopy with -f1 if you use b:)
Then use "copy myKernel.bin b:/myKernel.bin". Or you could just drag and drop......

BTW, Kemp, I think you mis-understood his question. The way I see it, he knows how to work with disk images, but he wants to know how he can write files to an image that has FAT on it. He's looking for a floppy emulator, I'd guess...
zola

Re:loading os from fat

Post by zola »

Cjmovie wrote: So you would basically go to this page:
http://www.osdev.org/osfaq2/index.php/D ... %20Windows

Find that filedisk is what you want and get it.

Basically then I guess you could load a BLANK image into it, then treat it like a real floppy (Like to insert the bootsector you could partcopy with -f1 if you use b:)
Then use "copy myKernel.bin b:/myKernel.bin". Or you could just drag and drop......

BTW, Kemp, I think you mis-understood his question. The way I see it, he knows how to work with disk images, but he wants to know how he can write files to an image that has FAT on it. He's looking for a floppy emulator, I'd guess...
Sorry my poor english and thanks for explaining my question. This is what exactly Im asking. Indeed I have downloaded filedisk. But it says either the drive is in use or can not find such a drive. But Ill check it again. Any other help will be appreciated... Thanks...
Post Reply