最近查看以前MINIX系统的源代码,试着装载MINIX2到Bochs虚拟机, 一下是使用过程的记录。
在Debian下使用下面命令:
sudo apt-get install bochs bochs-x bochs-doc
使用 bximage
命令创建磁盘映像,
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] hd
What kind of image should I create?
Please type flat, sparse or growing. [flat]
Enter the hard disk size in megabytes, between 1 and 129023
10 100
I will create a 'flat' hard disk image with
cyl=203
heads=16
sectors per track=63
total sectors=204624
total size=99.91 megabytes
What should I name the image?
[c.img] minix-hd.img
Writing: [] Done.
I wrote 104767488 bytes to minix-hd.img.
The following line should appear in your bochsrc:
ata0-master: type=disk, path="minix-hd.img", mode=flat, cylinders=203, heads=16, spt=63
========================================================================
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] fd
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] 1.44
I will create a floppy image with
cyl=80
heads=2
sectors per track=18
total sectors=2880
total bytes=1474560
What should I name the image?
[a.img] minix-fd-boot.img
Writing: [] Done.
I wrote 1474560 bytes to minix-fd-boot.img.
The following line should appear in your bochsrc:
floppya: image="minix-fd-boot.img", status=inserted