Minix installation demo. Author: Kees J. Bot Minix2.0.2 インストール デモ 日本語説明: toshi +-------------------------------------------------------+ | これは、Minix2.0.2を私のコンピュータにインストールした| | 時のログです。フロッピーディスクにイメージファイルの | | 作成からデフォルト状態のインストール、そしてTCP/IPネ | | ットワーク接続までのログです。(サーバの設定含む)  | +-------------------------------------------------------+ +-------------------------------------------------------+ | Minix2.0.2のインストールに必要なファイルを用意します。| | ROOT.MNX - Installation root floppy image       | | USR.MNX - Installation /usr floppy image       | | USR.TAZ - Binary /usr files (386 executables.)    | | SYS.TAZ - Operating system sources(libary,kernel,etc.)| | CMD.TAZ - Commands sources (cp, ls, mkdir, etc.)   | | 以上のファイルをフロッピーに分割して納めます。    | | A:ドライブが1.4MbのフロッピードライブとしてMS-DOSから | | 以下のように入力し、合計9枚のフロッピーを作成します。| +-------------------------------------------------------+ C:\>fdvol 1440 a: root.mnx usr.mnx Please insert formatted diskette #1 in drive a, then hit Enter Track: ** Head: * Sector: * File offset: ******* Done. C:\>fdvol 1440 a: usr.taz Please insert formatted diskette #1 in drive a, then hit Enter Please insert formatted diskette #2 in drive a, then hit Enter Please insert formatted diskette #3 in drive a, then hit Enter Track: ** Head: * Sector: * File offset: ******* Done. C:\>fdvol 1440 a: sys.taz Please insert formatted diskette #1 in drive a, then hit Enter Please insert formatted diskette #2 in drive a, then hit Enter Track: ** Head: * Sector: * File offset: ******* Done. C:\>fdvol 1440 a: cmd.taz Please insert formatted diskette #1 in drive a, then hit Enter Please insert formatted diskette #2 in drive a, then hit Enter Please insert formatted diskette #3 in drive a, then hit Enter Track: ** Head: * Sector: * File offset: ******* Done. +-------------------------------------------------------+ | インストールディスクのROOTとUSRのイメージディスクから | | ブートし、'='キーで(USキーの'='なのでJISキーでは'^'に| | なります)Minixを起動します。             | +-------------------------------------------------------+ Minix boot monitor 2.11 Press ESC to enter the monitor Hit a key as follows: = Start Minix +-------------------------------------------------------+ | Minix2.0.2はブートモニタが2.11になっています。    | | Minixが起動したら'fd0c'と入力。            | +-------------------------------------------------------+ Minix 2.0.2 Copyright 1998 Prentice-Hall, Inc. Executing in 32-bit protected mode Memory size = 3657K MINIX = 299K RAM disk = 480K Available = 2878K RAM disk loaded. Thu Jan 21 01:39:47 GMT 1999 Finish the name of device to mount as /usr: /dev/fd0c /dev/fd0c is read-write mounted on /usr Starting standard daemons: update. Login as root and run 'setup' to install Minix. Minix Release 2.0 Version 2 noname login: +-------------------------------------------------------+ | rootでログインし、'setup'と入力してインストールスクリ | | プトを実行します。 | +-------------------------------------------------------+ noname login: root # 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 scandinavn us-std german latin-am spanish us-swap italian olivetti uk Keyboard type? [us-std] +-------------------------------------------------------+ | 使用しているキーボードのタイプを入力します。 | | JIS配列のキーボードなら、japaneseと入力。 | +-------------------------------------------------------+ Minix needs one primary partition of at least 30 Mb (it fits in 20 Mb, but it needs 30 Mb if fully recompiled. Add more space to taste.) 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 (hd1, hd2, ..., hd9, sd1, sd2, ... sd9) you make. (See the devices section in usage(8) on Minix device names.) : +-------------------------------------------------------+ | ENTERキーを入力すると、'part'パーティーションエディタ | | の編集画面になります。「?」の表示はディスク内容を調べ | | ていない部分です。まずインストールするディスクを選択 | | します。('+','-'キーで、/dev/hd*を選択) | +-------------------------------------------------------+ Select device ----first---- --geom/last-- ------sectors----- Device Cyl Head Sec Cyl Head Sec Base Size Kb /dev/hd0 ? ? ? ? ? ? ? ? ? ? ? ? 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/hd0 2100 16 63 0 0 0 2099 15 62 0 2116800 1058400 Num Sort Type 1* hd1 06 DOS-BIG 33 0 0 1021 15 62 33264 996912 498456 2 hd2 00 None 0 0 0 0 0 -1 0 0 0 3 hd3 00 None 0 0 0 0 0 -1 0 0 0 4 hd4 00 None 0 0 0 0 0 -1 0 0 0 at-hd0: WDC AC21000H +-------------------------------------------------------+ | 現在MS-DOSが入っています。矢印キーでMinixをインストー | | ルするパーティションにカーソルを移動し、Typeの下の数 | | 字までカーソルを移動し「81」と入力。Kbの下の数字まで | | カーソルを移動し、'm'キーで自動設定したり、サイズを直 | | 接入力してパーティションサイズを設定します。 | | Numの下の数字までカーソルを移動し '+','-'キーで'*'を | | 表示させます。 | +-------------------------------------------------------+ Size in sectors ----first---- --geom/last-- ------sectors----- Device Cyl Head Sec Cyl Head Sec Base Size Kb /dev/hd0 2100 16 63 0 0 0 2099 15 62 0 2116800 1058400 Num Sort Type 1 hd1 06 DOS-BIG 33 0 0 231 15 62 33264 200592 100296 2* hd2 81 MINIX 232 0 0 331 15 62 233856 100800 50400 3 hd3 81 MINIX 332 0 0 1021 15 62 334656 695520 347760 4 hd4 81 MINIX 1022 0 0 2099 15 62 1030176 1086624 543312 at-hd0: WDC AC21000H +-------------------------------------------------------+ | 設定が終ったら'q'、'y'を入力して保存します。 | +-------------------------------------------------------+ Size in sectors ----first---- --geom/last-- ------sectors----- Device Cyl Head Sec Cyl Head Sec Base Size Kb /dev/hd0 2100 16 63 0 0 0 2099 15 62 0 2116800 1058400 Num Sort Type 1 hd1 06 DOS-BIG 33 0 0 231 15 62 33264 200592 100296 2* hd2 81 MINIX 232 0 0 331 15 62 233856 100800 50400 3 hd3 81 MINIX 332 0 0 1021 15 62 334656 695520 347760 4 hd4 81 MINIX 1022 0 0 2099 15 62 1030176 1086624 543312 Save partition table? (y/n) y +-------------------------------------------------------+ | Minixを入れるパーティションを入力。ここでは「hd1」 | +-------------------------------------------------------+ Please finish the name of the primary partition you have created: (Just type RETURN if you want to rerun "part") /dev/hd2 You have created a partition named: /dev/hd2 he following subpartitions are about to be created on /dev/hd2: Root subpartition: /dev/hd2a 1440 kb /usr subpartition: /dev/hd2c rest of hd2 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/hd2. : +-------------------------------------------------------+ | ENTERでインストールが続行します。 | +-------------------------------------------------------+ Migrating from floppy to disk... Scanning /dev/hd1c for bad blocks. (Hit DEL to stop the scan if are absolutely sure that there can not be any bad blocks. Otherwise just wait.) cp /fd0/etc/hostname.file /mnt/etc/hostname.file cp /fd0/etc/motd /mnt/etc/motd +-------------------------------------------------------+ | ROOT+USRフロッピーからハードディスクにファイルがコピー| | されます。次にメモリーがどのくらいあるか聞いてきますの| | で、3658と入力。 | +-------------------------------------------------------+ mkdir /mnt/root mkdir /mnt/tmp cp /fd0/.ellepro.b1 /mnt/.ellepro.b1 /dev/fd0 unmounted from /fd0 /dev/hd3a unmounted from /mnt What is the memory size of this system in kilobytes? [4096 or more] 3657 Second level file system block cache set to 1024 kb. +-------------------------------------------------------+ | これでセットアップは終了です。'halt'、'boot hd1'(Min | | ixをインストールしたパーティション)と入力してインスト| | ールしたハードディスクから起動 します。 | +-------------------------------------------------------+ Please insert the installation ROOT floppy and type 'halt' to exit Minix. You can type 'boot hd2' to try the newly installed Minix system. See "TESTING" in the usage manual. # halt System Halted fd0>boot hd2 +-------------------------------------------------------+ | ブートモニタが起動するので、'='キーでMinixを起動します| | (USキーの'='なので、JISキーでは'^'になります)    | +-------------------------------------------------------+ Minix boot monitor 2.11 Press ESC to enter the monitor Hit a key as follows: = Start Minix +-------------------------------------------------------+ | Minix2.0.2が起動します。               | +-------------------------------------------------------+ Minix 2.0.2 Copyright 1998 Prentice-Hall, Inc. Executing in 32-bit protected mode at-hd0: WDC AC21000H Memory size = 3657K MINIX = 299K RAM disk = 1024K Available = 2334K Thu Jan 21 02:07:59 GMT 1999 /dev/hd2c is read-write mounted on /usr Starting standard daemons: update. Login as root and run 'setup /usr' to install floppy sets. Minix Release 2.0 Version 2 noname login: +-------------------------------------------------------+ | 'root'でログインし、'setup /usr'と入力。 | | 次の質問にはENTER、ENTERと入力し、USR.TAZの1枚目のフ | | ロッピーをセットしてENTERを押します。 | +-------------------------------------------------------+ noname login: root # setup /usr What is the size of the images on the diskettes? [all] What floppy drive to use? [0] Please insert input volume 1 and hit return created directory: local/lib created directory: local/man created directory: local/src created directory: man Can't make directory mdec: File exists +-------------------------------------------------------+ | 途中、"File exists"メッセージが出ますが、気にせず続行 | +-------------------------------------------------------+ mdec/boot, 050 tape blocks mdec/bootblock, 01 tape blocks mdec/extboot, 01 tape blocks +-------------------------------------------------------+ | 同様に、USR.TAZフロッピーの2枚目、3枚目をセットしま | | す。USR.TAZフロッピーからのインストールが終了したら、 | | 再度"setup /usr"と入力して、SYS.TAZ(2枚)、CMD.TAZ | | (3枚)をインストールします。 | +-------------------------------------------------------+ src/commands/talkd/talk.h, 03 tape blocks src/commands/talkd/talkd.c, 03 tape blocks src/commands/talkd/talkd.h, 01 tape blocks /tmp/DONE, 0 tape blocks Done. +-------------------------------------------------------+ | このマシンに名前を付けます。仮に"toshi"とします。 | | 以上でネットワークに繋がない場合のMinix2.0.2のインスト| | ールは終了です。                   | +-------------------------------------------------------+ # echo toshi >/etc/hostname.file # ^D +-------------------------------------------------------+ | 以下はネットワークの設定と、再構築作業になります。  | | Ctrl+Dでシングルユーザモードからマルチユーザーモード | | に移行したら、'bin'でログインしをこの | | コンピュータ向けに編集します。 | +-------------------------------------------------------+ Minix Release 2.0 Version 2 toshi login: bin ! vi /usr/include/minix/config.h +-------------------------------------------------------+ | 私は原文に添って、processes、buffer cache、pseudoの追 | | 加、2ndCache、SCSI不使用、TCP/IP使用、AT/IDEドライバ | | としました。 | +-------------------------------------------------------+ #define NR_PROCS 40 #if (MACHINE == IBM_PC && _WORD_SIZE == 4) #define NR_BUFS 1024 /* # blocks in the buffer cache */ #define NR_BUF_HASH 2048 /* size of buf hash table; MUST BE POWER OF 2*/ #endif #define ENABLE_CACHE2 0 #define ENABLE_AT_WINI 1 /* enable AT winchester driver */ #define ENABLE_BIOS_WINI 0 /* enable BIOS winchester driver */ #define ENABLE_ESDI_WINI 0 /* enable ESDI winchester driver */ #define ENABLE_XT_WINI 0 /* enable XT winchester driver */ #define ENABLE_ADAPTEC_SCSI 0 /* enable ADAPTEC SCSI driver */ #define ENABLE_NETWORKING 1 /* enable TCP/IP code (main switch) */ #define NR_PTYS 4 /* # pseudo terminals (0 to 64) */ +-------------------------------------------------------+ | カーネルのMakeFileは/usr/src/toolsにあります。 | | 'make hdboot'コマンドはカーネルをコンパイルし、新しく | | 出来たカーネルを/minix/ディレクトリに納めます。 | +-------------------------------------------------------+ ! cd tools/ ! make hdboot generic/tcp_send.o generic/udp.o exec cc -c -m -I. -I.. -I/usr/include putk.c exec cc -o inet -i inet.a putk.o install -S 10k inet exec cc -O -D_MINIX -D_POSIX_SOURCE init.c -o init install -S 192w init installboot -image image ../kernel/kernel ../mm/mm ../fs/fs ../inet/inet init text data bss size 54432 9000 38624 102056 ../kernel/kernel 12544 1176 32072 45792 ../mm/mm 28816 2196 1101676 1132688 ../fs/fs 66480 7420 94400 168300 ../inet/inet 6828 2032 1356 10216 init ------ ------ ------ ------- 169100 21824 1268128 1459052 total exec sh mkboot hdboot cp image /dev/hd3a:/minix/2.0.2r0 Done. +-------------------------------------------------------+ | システムをshutdownしてブートモニタに戻ります。RAMディ | | スクサイズを0に、2nd cacheをオフ、NE2000ネットワーク | | カードのI/Oアドレス=240、IRQ=11をセットしブートします | +-------------------------------------------------------+ ! shutdown Broadcast message from bin@finiah (console) Thu Jan 21 02:38:16 1999... The system will shutdown NOW System Halted hd1a>unset ramsize hd1a>DPETH0=240:11 hd1a>save hd1a>boot +-------------------------------------------------------+ | 設定の変更にともないブートメッセージが変わります。 | | EthernetドライバがNE2000ネットワークカードを認識。 | | カーネルが大きくなり、RAM diskは不使用になっています。| | 起動後、RARPサーバに問い合わせをします。 | | (Ethercardのアドレスから、IPアドレスの問い合わせ) | | サーバからは、192.168.0.16のアドレスが帰ってきました | | まだ名前はついていません。 | +-------------------------------------------------------+ Minix 2.0.0 Copyright 1997 Prentice-Hall, Inc. Executing in 32-bit protected mode dp8390#0: NE2000 at 240:11 at-hd0: WDC AC21000H Memory size = 3657K MINIX = 1510K RAM disk = 0K Available = 2147K Thu Jan 21 02:46:34 GMT 1999 /dev/hd2c is read-write mounted on /usr Starting standard daemons: update. Starting network daemons: rarpd nonamed irdpd talkd. Starting network services: shell login telnet ftp. Minix Release 2.0 Version 2 192.168.0.16 login: root # +-------------------------------------------------------+ | 出来上がったこのマシンの名前をサーバに登録します。 | | サーバの/etc/ethersと/etc/hostsに名前を登録します。 | | Reboot and all is well!! | +-------------------------------------------------------+ # echo nameserver 192.168.0.13 >/etc/resolv.conf # shutdown -r