来自 《自己动手编写操作系统》
"我们得到了一个512B的boot.bin,使用软盘绝对扇区读写工具将这个文件写到一张空白软盘的第一扇区。"
书上的环境是win,没有提及linux如何操作
方法如下:
1.用bximage来创建img文件(注意:红色的部分是我们需要输入的部分).
sike@sike-Founder-PC:~/file/os$ bximage
========================================================================
bximage
Disk Image Creation Tool for Bochs
$Id: bximage.c,v 1.34 2009/04/14 09:45:22 sshwarts Exp $
========================================================================
Do you want to create a floppy disk image or a hard disk image?
Please type hd or fd. [hd] <span style="color:#ff0000;">fd</span>
Choose the size of floppy disk image to create, in megabytes.
Please type 0.16, 0.18, 0.32, 0.36, 0.72, 1.2, 1.44, 1.68, 1.72, or 2.88.
[1.44] <span style="color:#ff0000;">1.44</span>
I will create a floppy image with
cyl=80
heads=2
sectors p