visual box上安装minix-2.0.4

来源:互联网 发布:东方project知乎 编辑:程序博客网 时间:2024/04/26 16:11

Minix下载地址:http://www.minix3.org/previous-versions/

我下载了Intel-2.0.4,安装需要用到的有:

Intel-2.0.4\i386\ROOT.MNX

Intel-2.0.4\i386\USR.MNX

Intel-2.0.4\i386\USR.TAZ (TAZ为压缩格式,解压出来的内容为操作系统的/usr分区内容)

Intel-2.0.4\src\SYS.TAZ (内核源码)

Intel-2.0.4\src\CMD.TAZ (命令工具)

 

1. 制作安装系统所需要的floppy盘

在linux操作系统中制作相应的软盘。

1.1. 制作floppy启动盘:boot.img

dd if=/dev/zero of=boot.img bs=1k count=1440cat Intel-2.0.4/i386/ROOT.MNX Intel-2.0.4/i386/USR.MNX | dd of=boot.img conv=notrunc

1.2. 安装/usr分区内容所需要的floppy盘

USR.TAZ太大,一个floppy盘装不下,需要进行分割

split -b 1440k USR.TAZ

会分割成三个文件xaa,xab,xac

然后制作成三个floppy盘:usr01.img,usr02.img,usr03.img

dd if=/dev/zero of=usr01.img bs=1k count=1440cat xaa | dd of=usr01.img conv=notrunc
dd if=/dev/zero of=usr02.img bs=1k count=1440cat xab | dd of=usr02.img conv=notrunc
dd if=/dev/zero of=usr03.img bs=1k count=1440cat xac | dd of=usr03.img conv=notrunc


1.3. Minix系统源码和man手册floppy安装盘

同理制作成二个floppy盘:sys01.img,sys02.img

split -b 1440k SYS.TAZ

会分割成两个文件xaa,xab

dd if=/dev/zero of=sys01.img bs=1k count=1440cat xaa | dd of=sys01.img conv=notrunc
dd if=/dev/zero of=sys02.img bs=1k count=1440cat xab | dd of=sys02.img conv=notrunc


1.4. 常用命令floppy安装盘

制作成三个floppy盘:cmd01.img,cmd02.img,cmd03.img

split -b 1440k CMD.TAZ

分割成三个文件xaa,xab,xac

dd if=/dev/zero of=cmd01.img bs=1k count=1440cat xaa | dd of=cmd01.img conv=notrunc
dd if=/dev/zero of=cmd02.img bs=1k count=1440cat xab | dd of=cmd02.img conv=notrunc
dd if=/dev/zero of=cmd03.img bs=1k count=1440cat xac | dd of=cmd03.img conv=notrunc

2. 利用visual box创建虚拟机

创建的虚拟机配置如下:

名称:Minix-2.0.4

操作系统:Other

版本:L4

内存大小:64M

启动顺序:软盘、光驱、硬盘

硬盘:VDI,动态分配,100M

然后添加一个floppy controller,将boot.img加载到软盘,然后启动虚拟机

3. 安装Minix操作系统

3.1. 将系统从floppy安装到硬盘

Minix boot monitor 2.19Press ESC to enter the monitorHit a key as follows:     =   Start Minix


输入=号

Minix 2.0.4 Copyright 2001 Prentice-Hall, Inc.Executing in 32-bit protected mode Memory size = 65096K  MINIX = 291K  RAM disk = 480K  Available = 64325KRAM disk loaded.Sun Jun 27 16:21:37 GMT 2004Finish the name of device to mount as /usr: /dev/


这里需要输入挂载到/usr的分区:fd0p2

Finish the name of device to mount as /usr: /dev/fd0p2/dev/fd0p2 is read-write mounted on /usrMultiuser startup in progress.Starting standard daemons: update.Login as root and run 'setup' to install Minix.Minix Release 2 Version 0.4noname login:


输入root登录,运行‘setup’开始安装系统

# setupThis is the Minix installation script.Note 1: If the screen blanks suddenly then hit F3 to select "softwarescrolling".Note 2: If things go wrong then hit DEL and start over.Note 3: The installation procedure is described in the manual pageusage(8). It will be hard without it.Note 4: Some questions have default answers, like this: [y]Simply hit RETURN (or ENTER) if you want to choose that answer.Note 5: If you see a colon (:) then you should hit RETURN to continue.:


击ENTER键

What type of keyboard do you have? You can choose one of:french japanese polish ukgerman latin-am scandinavn us-stditalian olivetti spanish us-swapKeyboard type? [us-std]


使用U.S.标准键盘, 击 ENTER 键

Minix needs one primary partition of at least 35 Mb (it fits in 25 Mb, butit needs 35 Mb if fully recompiled. Add more space to taste, but don'toverdo it, there are limits to the size of a file system.)If there is no free space on your disk then you have to back up one of theother partitions, shrink, and reinstall. See the appropriate manuals of thethe operating systems currently installed. Restart your Minix installationafter you have made space.To make this partition you will be put in the editor "part". Follow theadvice under the '!' key to make a new partition of type MINIX. Do nottouch an existing partition unless you know precisely what you are doing!Please note the name of the partition (e.g. c0d0p1, c0d1p3, c1d1p0) youmake. (See the devices section in usage(8) on Minix device names.):

击 ENTER 键,进行硬盘分区

Select device    ----first----  --geom/last--  ------sectors----- Device       Cyl Head Sec  Cyl Head Sec    Base    Size    Kb  /dev/c0d0              ?  ? ?            ?  ? ?  ?  ? ? ?   ?    ?Num Sort Type? ?   ? ? ?  ? ?  ?  ? ? ?   ?    ?? ?   ? ? ?  ? ?  ?  ? ? ?   ?    ?? ?   ? ? ?  ? ?  ?  ? ? ?   ?    ?? ?   ? ? ?  ? ?  ?  ? ? ?   ?    ?Type '+' or '-' to change, 'r' to read, '?' for more help, '!' for advice


这台计算机只有一个硬盘,按 ‘r’ 读入分区信息,然后创建分区:

Select device    ----first----  --geom/last--  ------sectors----- Device       Cyl Head Sec  Cyl Head Sec    Base    Size    Kb /dev/c0d0               203   16  63                     0    0   0  203   15  62        0   204624 102312Num Sort Type 1* p0 81 MINIX    0   0  0  203    0 62      63   204624 102312  2 p1 00 None    0   0 0    0    0  -1     0      0     0 3 p2 00 None    0   0 0    0    0  -1     0      0    0 4 p3 00 None    0   0 0    0    0  -1     0      0    0at-hd0: VBOX HARDDISK

然后按q键,在按y键保存分区,选择/dev/c0d0p0作为主分区

Select device    ----first----  --geom/last--  ------sectors----- Device       Cyl Head Sec  Cyl Head Sec    Base    Size    Kb /dev/c0d0               203   16  63                     0    0   0  203   15  62        0   204624 102312Num Sort Type 1* p0 81 MINIX    0   0  0  203    0 62      63   204624 102312  2 p1 00 None    0   0 0    0    0  -1     0      0     0 3 p2 00 None    0   0 0    0    0  -1     0      0    0 4 p3 00 None    0   0 0    0    0  -1     0      0    0Warning: About to write a new table no /dev/c0d0Save partition table? (y/n) yPlease finish the name of the primary partition you have created:(Just type RETURN if you want to rerun "part") /dev/c0d0p0

 

swap分区设置为6M

How much swap space would you like? Swapspace is only needed if this system is memory starved, like a 16-bit system with less then 2M, or a32-bit system with less then 4M. Minix swapping isn't very good yet, sothere is no need for it otherwise.Size in kilobytes? [0] 6000 You have created a partition named: /dev/c0d0p1The following subpartitions are about to be created on /dev/c0d0p1:Root subpartition: /dev/c0d0p0s0 1440 kbSwap subpartition: /dev/c0d0p0s1 6000 kb /usr subpartition: /dev/c0d0p0s2 rest of c0d0p0Hit return if everything looks fine, or hit DEL to bail out if you want tothink it over. The next step will destroy /dev/c0d0p0.:


 

击 ENTER 键

/dev/c0d0p0s1: swapspace at offset 2, size 5998 kilobytes/dev/c0d0p0s1 is swapspaceMigrating from floppy to disk... Scanning /dev/c0d0p0s2 for bad blocks. (Hit DEL to stop the scan if are absolutely sure that there can not be any bad blocks. Otherwise just wait.)Scan done/dev/c0d0p0s2 is read-write mounted on /mntmkdir /mnt/bin cp /usr/bin/MAKEDEV /mnt/bin/MAKEDEV cp /usr/bin/arch /mnt/bin/arch cp /usr/bin/badblocks /mnt/bin/badblocks ...mkdir /mnt/root mkdir /mnt/tmp cp /root/.ashrc /mnt/.ashrc /dev/fd0 unmounted from /root /dev/c0d0p0s0 unmounted from /mnt Second level file system block cache set to 1024 kb.Please insert the installation ROOT floppy and 'halt' to exit Minix.You can type 'boot c0d0p0' to try the newly installed Minix system. See "Testing" in the usage manual.


 
安装第一步完成了,输入‘halt’和‘boot c0d0p0’重启计算机

3.2. 安装Minix源码和man手册

系统起来后,用 root 登录,运行'setup /usr’

 

# setup /usrWhat is the size of the images on the diskettes? [all]


击 ENTER 键

What floppy drive to use? [0]


使用默认的第一个软盘,击 ENTER 键

 

Please insert input volume 1 and hit return


根据系统提示将SYS01.img加载到软盘,然后击 ENTER 键

Please insert input volume 2 and hit return

 

根据系统提示将SYS02.img加载到软盘,然后击 ENTER 键

 

后面的都一样,根据提示依次加载镜像到软盘,然后击 ENTER 键

3.3. 安装常用工具

该操作步骤与3.2.完全一样

 

 

原创粉丝点击