Page 1 of 1
loading os from fat
Posted: Sat Aug 13, 2005 10:39 am
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?
Re:loading os from fat
Posted: Sat Aug 13, 2005 10:55 am
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.
Re:loading os from fat
Posted: Sat Aug 13, 2005 11:24 am
by Pype.Clicker
you may want to check out "working with disk images" section in the FAQ (
http://www.osdev.org/osfaq2/)
Re:loading os from fat
Posted: Sat Aug 13, 2005 12:28 pm
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...
Re:loading os from fat
Posted: Sun Aug 14, 2005 2:02 am
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...