|
bochs 是一个 x86 的虚拟机。bximage 用于为 bochs 创建合适的磁盘镜像文件。
使用格式:
在使用 bximage 时,如果不使用选项,那么它也会一步步的提示你输入相关的选项。这些选项的说明如下:
-fd : 创建软盘镜像
-hd : 创建硬盘镜像
-mode : 镜像模式,如 flat 平坦模式。
-size : 镜像大小
-q : 静默模式,不提示用户输入
--help : 帮助信息
使用示例:$ bximage -hd -mode=flat -size=500 sda -q
========================================================================
bximage
Disk Image Creation Tool for Bochs
$Id: bximage.c,v 1.34 2009/04/14 09:45:22 sshwarts Exp $
========================================================================
I will create a 'flat' hard disk image with
cyl=1015
heads=16
sectors per track=63
total sectors=1023120
total size=499.57 megabytes
Writing: [] Done.
I wrote 523837440 bytes to sda.
The following line should appear in your bochsrc:
ata0-master: type=disk, path="sda", mode=flat, cylinders=1015, heads=16, spt=63 上面才用静默模式创建了一个大小为 500M 的硬盘镜像文件。 |
|