曲径通幽论坛

标题: bximage -- 创建磁盘镜像(bochs) [打印本页]

作者: beyes    时间: 2010-12-22 19:37
标题: bximage -- 创建磁盘镜像(bochs)
bochs 是一个 x86 的虚拟机。bximage 用于为 bochs 创建合适的磁盘镜像文件。

使用格式:
bximage [选项] [文件名]

在使用 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 的硬盘镜像文件。




欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2