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=1440
cat 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=1440
cat xaa | dd of=usr01.img conv=notrunc
dd if=/dev/zero of=usr02.img bs=1k count=1440
cat xab | dd of=usr02.img conv=notrunc
dd if=/dev/zero of=usr03.img bs=1k count=1440
cat 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=1440
cat xaa | dd of=sys01.img conv=notrunc
dd if=/dev/zero of=sys02.img bs=1k count=1440
cat 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=1440
cat xaa | dd of=cmd01.img conv=notrunc
dd if=/dev/zero of=cmd02.img bs=1k count=1440
cat xab | dd of=cmd02.img conv=notrunc
dd if=/dev/zero of=cmd03.img bs=1k count=1440
cat 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.19
Press ESC to enter the monitor
Hit 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 = 64325K
RAM disk loaded.
Sun Jun 27 16:21:37 GMT 2004
Finish 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 /usr
Multiuser startup in progress.
Starting standard daemons: update.
Login as root and run 'setup' to install Minix.
Minix Release 2 Version 0.4
noname login:
輸入root登錄,運行‘setup’開始安裝系統
# setup
This is the Minix installation script.
Note 1: If the screen blanks suddenly then hit F3 to select "software
scrolling".
Note 2: If things go wrong then hit DEL and start over.
Note 3: The installation procedure is described in the manual page
usage(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 uk
german latin-am scandinavn us-std
italian olivetti spanish us-swap
Keyboard type? [us-std]
使用U.S.標準鍵盤, 擊 ENTER 鍵
Minix needs one primary partition of at least 35 Mb (it fits in 25 Mb, but
it needs 35 Mb if fully recompiled. Add more space to taste, but don't
overdo 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 the
other partitions, shrink, and reinstall. See the appropriate manuals of the
the operating systems currently installed. Restart your Minix installation
after you have made space.
To make this partition you will be put in the editor "part". Follow the
advice under the '!' key to make a new partition of type MINIX. Do not
touch an existing partition unless you know precisely what you are doing!
Please note the name of the partition (e.g. c0d0p1, c0d1p3, c1d1p0) you
make. (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 102312
Num 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 0
at-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 102312
Num 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 0
Warning: About to write a new table no /dev/c0d0
Save partition table? (y/n) y
Please 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 a
32-bit system with less then 4M. Minix swapping isn't very good yet, so
there is no need for it otherwise.
Size in kilobytes? [0] 6000
You have created a partition named: /dev/c0d0p1
The following subpartitions are about to be created on /dev/c0d0p1:
Root subpartition: /dev/c0d0p0s0 1440 kb
Swap subpartition: /dev/c0d0p0s1 6000 kb
/usr subpartition: /dev/c0d0p0s2 rest of c0d0p0
Hit return if everything looks fine, or hit DEL to bail out if you want to
think it over. The next step will destroy /dev/c0d0p0.
:
擊 ENTER 鍵
/dev/c0d0p0s1: swapspace at offset 2, size 5998 kilobytes
/dev/c0d0p0s1 is swapspace
Migrating 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 /mnt
mkdir /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.完全一樣