当前位置:Linux教程 - Linux - Minix 2.0.2安装说明

Minix 2.0.2安装说明



         出处:http://www.LinuxByte.net/
    作者:shen630(LinuxByte)
    发布日期:2004-7-2

    Minix 2.0.2 安装说明

     

    ---------------------------------------------------------------------------------------------
      Minix 安装对硬件要求不高,386 到 Pentium II,4M 以上内存,35M 以上硬盘空间。需要注意的是,
    Minix 要安装在 Primary IDE 口 Master 硬盘上。

      用 ROOT+USR 盘启动计算机,当提示输入设备名挂接 /usr 文件系统时,输入‘/dev/fd0c’。
    ---------------------------------------------------------------------------------------------


    Minix 2.0.2 Copyright 1998 Prentice-Hall, Inc.

    Executing in 32-bit protected mode
     

    Memory size = 130633K  MINIX = 299K  RAM disk = 480K  Available = 129854K

    RAM disk loaded.

    Sun Jun 27 16:21:37 GMT 2004
    Finish the name of device to mount as /usr: /dev/fd0c
    /dev/fd0c 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.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]


    ---------------------------------------------------------------------------------------------
      一般键盘都是 U.S.标准键盘,所以击 ENTER 键。
    ---------------------------------------------------------------------------------------------


    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 键进行分区。
    ---------------------------------------------------------------------------------------------


    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              823 32 63
    0 0 0  823 15 62   0 1660176 830088
    Num Sort Type
     1 hd1 06 None   0  0  0   0  0 -1    0  0 0 
     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: QUANTUM TRB850


    ---------------------------------------------------------------------------------------------
      这个硬盘已有一个 Dos 分区,剩余大约 90M 空间。按‘m’察看帮助信息,然后把剩余空间设为第二分区,设为 MINIX 类型,并把 MINIX 分区设为活动分区。最后按‘q’键退出,和按‘y’键保存分区信息。
    ---------------------------------------------------------------------------------------------


    Select device    ----first----  --geom/last--  ------sectors-----
     Device       Cyl Head Sec  Cyl Head Sec    Base    Size    Kb
     /dev/hd0             823  32 63
    0 0 0  823 15 62   0 1660176 830088
    Num Sort  Type
     1* hd1 81 MINIX 0  1  0   92  31 62    63  185472 92736 
     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

    Save partition table? (y/n) y


    ---------------------------------------------------------------------------------------------
      当提示建立主分区时,输入‘/dev/hd1’。
    ---------------------------------------------------------------------------------------------


    Please finish the name of the primary partition you have created:
    (Just type RETURN if you want to rerun "part") /dev/hd1

    You have created a partition named: /dev/hd1
    The following subpartitions are about to be created on /dev/hd1:

    Root subpartition: /dev/hd1a 1440 kb
    /usr subpartition: /dev/hd1c rest of hd1

    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/hd1.
    :


    ---------------------------------------------------------------------------------------------
      击 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.)
    Scan done
    /dev/hd1c 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
    .
    .
    .


    ---------------------------------------------------------------------------------------------
    一些文件拷贝进硬盘,当击拷贝完成后 Minix 将会提问系统内存大小,我有 128M 内存,所以我输入‘1301072’。
    ---------------------------------------------------------------------------------------------


    .
    .
    .
    mkdir /mnt/mnt
    mkdir /mnt/root
    mkdir /mnt/tmp
    /dev/fd0 unmounted from /root
    /dev/hd1a unmounted from /mnt

    What is the memory size of this system in kilobytes? [4096 or more] 1301072
    Second level file system block cache set to 1024 kb.


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


    Please insert the installation ROOT floppy and type 'halt' to exit Minix.
    You can type 'boot hd1' to try the newly installed Minix system. See
    "TESTING" in the usage manual.
    # halt
    System Halted
    fd0>boot hd1


    Minix 2.0.2 Copyright 1998 Prentice-Hall, Inc.

    Executing in 32-bit protected mode
     
    at-hd0: QUANTUM TRB850

    Memory size = 130633K  MINIX = 299K  RAM disk = 1024K  Available = 129310K

    Sun Jun 27 16:31:37 GMT 2004
    /dev/hd1c is read-write mounted on /usr

    Multiuser startup in progress.
    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,插入 1 of USR.TAZ,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: adm
    adm/lastlog, 0 tape blocks
    adm/log, 0 tape blocks
    .
    .
    .
    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


    ---------------------------------------------------------------------------------------------
      第一张盘的文件拷贝完成后,当系统提示时,插入 2 of USR.TAZ、3 of USR.TAZ。完成后,运行‘setup /usr’安装 SYS.TAZ、CMD.TAZ 等 5 张盘。
    ---------------------------------------------------------------------------------------------


    src/commands/zmodem/sz.c, 0112 tape blocks
    src/commands/zmodem/zm.c, 036 tape blocks
    src/commands/zmodem/zmodem.h, 016 tape blocks
    /tmp/DONE, 0 tape blocks
    Done.


    ---------------------------------------------------------------------------------------------
      然后我给系统命名为‘host1’,Ctrl+D 退出后用 ‘bin’登录,编辑‘/usr/include/minix/config.h’文件修改系统参数。
    ---------------------------------------------------------------------------------------------


    # echo host1 >/etc/hostname.file
    # ^D

    Minix Release 2.0 Version 2

    finiah login: bin
    ! vi /usr/include/minix/config.h


    ---------------------------------------------------------------------------------------------
      我修改以下参数,处理更多进程,加大缓冲区,只使用 AT/IDE 磁盘驱动,网络支持,8 个远程终端登录。
    ---------------------------------------------------------------------------------------------


    #define NR_PROCS 64

    #if (MACHINE == IBM_PC && _WORD_SIZE == 4)
    #define NR_BUFS 2048 /* # blocks in the buffer cache */
    #define NR_BUF_HASH 4096 /* size of buf hash table; MUST BE POWER OF 2*/
    #endif

    #define ENABLE_CACHE2 0

    #define ENABLE_DOSFAT 1 /* enable DOS FAT file virtual disk driver */

    #define DMA_SECTORS 64 /* DMA buffer size (must be >= 1) */

    #define ENABLE_NETWORKING 1 /* enable TCP/IP code (main switch) */

    #define NR_CONS 4 /* # system consoles (1 to 8) */
    #define NR_RS_LINES 2 /* # rs232 terminals (0 to 4) */
    #define NR_PTYS 16 /* # pseudo terminals (0 to 64) */


    ---------------------------------------------------------------------------------------------
      主核心 Makefile 在 /usr/src/tools。用命令 ‘make hdboot’编译新映像,并把其拷贝到 /minix/ 。
    ---------------------------------------------------------------------------------------------


    ! cd tools/
    ! make hdboot
    cd ../kernel && exec make -
    exec cc -c -m -I/usr/include mpx.s
    exec cc -c -m -I/usr/include start.c
    exec cc -c -m -I/usr/include protect.c
    exec cc -c -m -I/usr/include klib.s
    exec cc -c -m -I/usr/include table.c
    .
    .
    .
    install -S 192w init
    installboot -image image ../kernel/kernel ../mm/mm ../fs/fs ../inet/inet init
    text data bss size
    75600 12284 142740 230624 ../kernel/kernel
    12544 1180 39560 53284 ../mm/mm
    28928 2200 2190188 2221316 ../fs/fs
    85488 20220 134420 240128 ../inet/inet
    6748 2036 1356 10140 init
    ------ ------ ------ -------
    209308 37920 2508264 2755492 total
    exec sh mkboot hdboot
    cp image /dev/hd1a:/minix/2.0.2r0
    Done.

     

    ---------------------------------------------------------------------------------------------
      Ctrl+D 退出后用 ‘root’登录,用‘shutdown’命令关闭系统。此时进入启动管理器,可关机,也可修改启动参数。现在修改启动参数,关闭 RAM 盘,设置网卡参数,NE2000 或 NE2000 兼容网卡 I/O 地址 300, IRQ 10。保存并引导。
    ---------------------------------------------------------------------------------------------


    ! shutdown
    Broadcast message from root@noname (console)
    Tue Jun 29 20:56:33 2004...

    The system will shutdown NOW

    System Halted
    hd1a>unset ramsize
    hd1a>DPETH0=300:10
    hd1a>save
    hd1a>boot


    ---------------------------------------------------------------------------------------------
      启动后,要设置本机的 IP 地址,子网掩码。建立‘/etc/rc.net’文件,内容是‘ifconfig -h 192.168.1.20 -n 255.255.255.0’。
    修改‘/etc/rc’文件,如下:
    在‘
    # Network initialization.
    (</dev/eth </dev/tcp) 2>/dev/null && net=true # Is there a TCP/IP server?
    ’后加上以下语句

    if [ "$net" -a -f /etc/rc.net ]
    then
    # There is a customized TCP/IP initialization script; run it.
    . /etc/rc.net
    elif [ "$net" ] && [ "`hostaddr -e`" = 0:0:0:0:0:0 ]
    then
    # No network hardware, configure a fixed address to run TCP/IP alone.
    ifconfig -h 192.168.1.20
    fi
    ---------------------------------------------------------------------------------------------


    Minix 2.0.2 Copyright 1998 Prentice-Hall, Inc.

    Executing in 32-bit protected mode

    dp8390#0: NE2000 at 300:10
    at-hd0: QUANTUM TRB850

    Memory size = 130633K MINIX = 2700K RAM disk = 0K Available = 127934K

    Wed Jun 30 19:50:44 GMT 2004
    /dev/hd1c 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

    noname login: root
    #


    ---------------------------------------------------------------------------------------------
      最后,建立‘/etc/hosts’,‘etc/ethers’文件。
    ---------------------------------------------------------------------------------------------


    # echo nameserver 192.168.1.20 >/etc/resolv.conf


    ---------------------------------------------------------------------------------------------
      建立‘/etc/rc.net’,‘/etc/hosts’,‘etc/ethers’文件。
    ---------------------------------------------------------------------------------------------


                .
                .
                .
    # shutdown -r
    发布人:会游泳的鱼 来自:www.linuxbyte.net