Before that, I am using a raw floppy and bochs to testing my small os. Later, I change my mind to using image file.
Background:
I am using window xp, turbo C++, Nams to develop my hobby os. Now I am just doing bootstrap. After I have writing my bootstrap, I use debug to install the bootstrap to the floppy disk.
Code: Select all
debug 100 0 0 1
-w
-q
Here is the problem I face when I change to use of filedisk.
First, I use bochs Image Creation Tool to create a floppy disk image. It is 1.44MB. The floppy disk is empty and raw data.
Then I use filedisk to mount the image file.
Code: Select all
filedisk /mount 0 c:\bigcow.img 1.44M b:
so, I have to format it. Here is the first problem.
#1 I try to format it using FAT file system. Using the command
Code: Select all
format b: /fs:fat
#2 OK, so, I try to check the driver b:(The image disk driver I mount), I use the command
Code: Select all
debug 100 1 0 1
-File no found
The virtual driver is b:, so the driver number is 1(A for 0), but what I get the respone is the file not found. So, how to use the debug command for my virtual driver.
#3 OK, now I try another solution(But fail again), I try to debug the bigcow.img(The image file I create, it is about 1.44MB) by using debug.
Code: Select all
debug bigcow.img
-Insufficient memory
Thank you for answering my question.