[ 永远的UNIX::UNIX技术资料的宝库 ]

首页 > 系统管理 > Linux > 正文
轻轻松松的安装Slackware Linux -- 4.如何在硬碟建置Linux系统
本文出自: 作者: 曾瑞源 (yuan@UUserv.Net.tw ) (2001-06-21 20:10:00)

    在前面章节中, 我们已经介绍过了 Slackware Linux 安装磁片
的制作方法, 以及Slackware Linux 软体的取得, 本章中我们就来看
看如何真正进行系统软体的安装。

     系统安装的步骤
     使用 bootdisk及rootdisk 磁片来开机
     关於 root 使用者
     关於虚拟萤幕 (Virtual Console)
     fdisk 硬碟分割区规划示范
     系统软体安装前的说明
     set up 六程序
     setup 启动
     启动虚拟记忆体
     指定安装目的分割区 (Target)
     指定安装来源 (Source)
     选择安装软体
     Install 实际安装
     系统设定


□ 系统安装的步骤

    我们简化来看, 安装的步骤可以说有三个步骤, 这三步骤都是用
Slackware Linux安装磁片启动系统後, 接着一步步来进行。 我们现
在就来看看这三步骤。

步骤一: fdisk 规划分割区 (Partitioning)
    安装 Linux 的最低要求, 要有一个分割区[注], 但是这样一套系
统所需要的虚拟记忆空间, 只能用 Swap File方法制作, 对学生来说,
这或许适合, 但是系统效率与安全性就差些。 至於比较好一些的情况
,我们为 Linux 规划出两个分割区, 一个用来安置整个档案系统, 另
外一个作为 Swap Partition 虚拟记忆体。 至於最佳情况, 则是将系
统规划出多重档案系统, 将 / 保留尽可能的小, /usrⅱ /tmpⅱ /var
及 /home 等等可以分为各自独立的档案系统, 也就是各自有专属的分
割区, 最後并加上一个独立的分割区, 作为 Swap Partition 虚拟记
忆体。 这样设定的一部 Linux 系统在笔者看来, 就是一个最符合系
统安全要求ⅱ 以及系统运转效率的一个多工多使用者作业系统环境。

注: 其实可以又例外, 用umsds144.gz 来做rootdisk, 可以在原本 MSDOS
    分割区内安装并执行 Linux, 但是笔者不推荐这样做, 尤其对把 Linux
    摆在严肃场合的朋友来说, 不要这样做。


步骤二: 建置档案系统 (格式化)
    完成了硬碟分割, 事实上硬碟内仍然什麽也没有, 我们只是用逻
辑上的方法, 把一个硬碟, 分割成好几个来用, 新规划出来的分割区
仍然空空如也, 这样的分割规划动作, 比较接近硬体层次。

    建置档案系统工作则是比较接近作业系统层次的规划动作, 我们
在某个分割区建制档案系统後, 该分割区就变成一个拥有特殊结构属
性的分割区。 我们以大家熟悉的 DOS来说, 我们对硬碟或软碟执行
FORMAT动作, 这动作就是建置档案系统, 比方说 C:\> format a:/s。

    Linux 环境下的档案系统建置动作, 是用 mkfs 或 mke2fs 等等
工具程式来做。 在本章系统安装示范过程中, 我们执行 Slackware
Linux 安装程式时, 可以手工执行 mkfs (或mke2fs) 动作, 也可以
在软体安装时, 让安装程式自动判别, 那时再决定是否 mkfs。

    不过假如您事後有机会要手工进行系统维护时, 就会有需要用指令
来建造档案系统, 比方说制造一个 Linux 属性 (ext2fs) 的磁碟片就
是一个典型的例子

步骤三: 把 Slackware Linux 安装到硬碟

    这个步骤是我们真正期待的, 这步骤会把软体从磁片 (或者 CD-
ROMⅱ 远端 NFS server 或硬碟都行) 安装到硬碟内指定的分割区。
注意, 这步骤也会拷贝一份新的 Kernel 到硬碟去, 不过, 这份
Kernel 不同於 bootdisk 磁片上的 Kernel, 实际安装时, 安装程式
会询问您安装 IDE Kernel 或 SCSI Kernel, 您一定要正确回答, 也
就是根据您硬碟控制卡形式, 选用其中之一 (假如您不知道您硬碟的
规格, 那大概就是 IDE)。

    再次提醒读者, 这步骤一定要正确且仔细的安装, 最好也要尽量
完整的安装, 最好您至少安装 A (系统基本工具)ⅱ B (最基本的常
用应用软体) 及 N (网路应用软体) 等系列软体, 另外您想编译系统
核心的话 (这几乎是绝对有必要的动作), D 系列包含有系统发展工具
以及系统核心服务程式码 (Kernel source code) 也有绝对必要, 除
此之外, F 系列包含各式 FAQ (常见问与答) 文件, I 系列 Info
page 线上手册等等最好也都安装, 以及颇为重要的 Q系列, 这是针对
不同硬体设备以及应用需求所事先编译好的系统核心服务程式 (Kernel),
您可以从这里选择一个来用。 总之, 把Linux定位在玩票性质的话, 您
不妨选择性安装, 至於严肃场合则尽量全部安装。 不甚漏失安装一些必
要软体, 会带给自己无谓的困扰。


□ 使用 bootdisk及 rootdisk 磁片 开机

    安装系统的第一步骤, 就是拿刚刚制作好的 bootdisk 磁片, 塞
入第一部软碟机, 启动电源。 正常的话, 您会在萤幕上看到以下画
面。

<< 画面 4-1 >>
LILO

Welcome to the Slackware Linux 2.0.2 Bootkernel disk!

If you have any extra parameters to pass to the kernel, enter them at the
prompt below. For instance, you might need something like this to detect the
hard drive on PS/1 and ValuePoint models from IBM:

   ramdisk hd=cyl,hds,secs (Where "cyl", "hds", and "secs" are the number of
                            cylinders, sectors, and heads on the drive. Most
                            machine won't need this.)

Also, in a pinch, you can boot your system with a command like:
   mount root=/dev/hda1

On machines with low memory, you can mount root=/dev/fd1 or
mount root=/dev/fd0 to install without a ramdisk. See LOWMEM.TXT for details.

If you wold rather load the root/install disk from your second floppy drive:
   drive2  (or even this: ramdisk root=/dev/hd1)

DON'T SWITCH ANY DISKS YET! This prompt is just for entering extra paramters.
If you don't need to enter any paramters, hit ENTER to conitnue.

boot:

    萤幕画面在此处停止了。 正常的话, 在这里我们碰一下 
键, 可以继续。


<< 画面 4-2 >>
...........

Please remove the boot kernel disk from your floppy drive, insert a
root/install disk (such as one of the Slackware color144, colrlite,
tty144, or tty12 disks) or some other disk you wish to load into a
ramdisk and boot, and then press ENTER to continue.


    接着您可以在萤幕上看到开机磁片侦测到硬体周边装置的一系列
讯息, 这些讯息此处简略掉了。 一直到下面画面,  萤幕再度停住,
此处, 我们浏览一下其说明, 其意思是说, 把刚开机用的 bootdisk
拿出来, 把 rootdisk (也就是系统安装磁片的第二片) 插进磁碟机
。


<< 画面 4-3 >>
VFS: Disk change detected on device 2/28
RAMDISK: Loading 1440 blocks into RAM disk ..................................
.............................................................................


 
<< 画面 4-4 >>

Welcome to the Slackware Linux installation disk, (v. 2.0.2)
 
###### IMPORTANT! READ THE INFORMATION BELOW CAREFULLY. ######
- You will need one or more partitions of type "Linux native" prepared. It is
  also recommended that you create a swap partition (type "Linux swap") prior
  to installation. Most users can use the Linux "fdisk" utility to create and
  tag the types of all these partitions. OS/2 Boot Manager users, however,
  should create their Linux partitions with OS/2 "fdisk", add the bootable
  (root) partition to the Boot Manager menu, and then use the Linux "fdisk" to
  tag the partitions as type "Linux native".
- If you have 4 megabytes or less of RAM, you MUST activate a swap partition
  before running setup. After making the partition with fdisk, use:
mkswap /dev/  ; swapon /dev/
- Once you have prepared the disk partitions for Linux, and activated a swap
  partition if you need one, type "setup" to begin the installation process.
- If you want the install program to use monochrome displays, type:
TERM=vt100
  before you start "setup".
 
You may now login as "root".
 
slackware login:

    以上连续画面到<<画面 4-4>> 停止, 就算开机成功, 接下来我们
可以 root 进入系统 (此时的环境已经是一个运转中的 Linux系统),
之後, 就可以正式进行系统硬碟规划以及安装动作。

    本节最後我们介绍一个相关的问题。 有时候, bootdisk 磁片开
机时, 没有能够自动侦测到您的硬体设备, 最常见的, 就是网路卡以
及CD-ROM 控制卡。 遇到这种情况时, 我建议您用 bootdisk 磁片开
机时, 在 boot: 提示符号後, 输入以下指令:

  boot: ramdisk sbpcd=0xAAA,LaserMate 针对 Panasonic 562B/563B 光碟机

  boot: ramdisk ether=B,0xCCC,eth0    针对网路卡

  boot: ramdisk sbpcd=0xAAA,LaserMate ether=B,0xCCC,eth0 合在一起

  以上: AAA: 该唯独光碟机控制卡之 IO port
        B:   该网路卡的 IRQ
        CCC: 开网路卡之 IP port


□ 关於 root 使用者


    root 是系统环境中, 最特殊的一个使用者帐号。 在Unix环境,
root是个虚拟的使用者, 这帐号用来让系统管理者(这时就是您) 以
最高的特权进入系统, 之後执行系统维护及管理等工作。

    这里暂时我们只需要知道这麽多, 在本系列Linux第二册〔轻轻
松松管理Linux> 里, 我有更详细说明。


□  关於虚拟萤幕 (Virtual Console, VC)

    即便只是进行系统安装工作, 我们也已经可以享用 Virtual
Console (VC) 所带来的便利, 第一次接触这观念的朋友, 不妨把 VC
想成有多的萤幕的 Linux 工作站。

    当您开机完成後, 在萤幕上您所看到的, 是第一个 VC, 您可以
用 -F2 (按下  键不放, 再按 F2键) 切换到第二个萤幕,
同理, -F3 是第三个萤幕, -F4 为第二个萤幕。

    Linux 是多人多工的作业系统, 所以在每一个 VC 下, 您都可以
执行各自独立的工作, 执行系统安装时也不例外。 额外一提, 本章往
下介绍中, 笔者所需要的画面摘录, 就是用这方法取得, 也就是在当
第一个 VC 执行安装工作时, 第二个 VC 执行记录与画面摘录, 这样
一边安装一边记录画面。


□ fdisk 硬碟分割区规划示范

    接下来我们就要进行硬碟分割区规划, 请读者特别小心操作这些
步骤, 以下我们是用 fdisk /dev/hdb 指定来执行分割动作, 假如您
只以一颗 IDE 硬碟, 您可以使用 fdisk /dev/hda 指令, 假如您只有
一颗 SCSI 硬碟, 则可以 fdisk /dev/sda 指令。

    这里所执行的环境, 仍然是用 bootdisk/rootdisk 磁片开机, 以
root 帐号进入系统後所看到的环境。


<< 画面 4-5 >>
# fdisk /dev/hdb       ← 规划编号第二个硬碟
 
Command (m for help): p
 
Disk /dev/hdb: 16 heads, 63 sectors, 826 cylinders
Units = cylinders of 1008 * 512 bytes
 
   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/hdb1           1       1     100   50368+  83  Linux native
/dev/hdb2         101     101     405  153720    7  OS/2 HPFS
/dev/hdb3         536     536     736  101304   83  Linux native
/dev/hdb4   *     406     406     535   65520   a5  BSD/386
 
Command (m for help):


    本例子只算是个大杂烩的情况, 只有玩家才会把硬碟内安装有这
麽多的作业系统, 这不适合专业场合。 我们可以看到上面这例子一共
有四个分割区, 其中两个分给 Linux (其 IP 为 83), 剩下两个, 一
个安装 OS/2, 以及一个安装 FreeBSD。 对於玩票性质的学生来说,您
这样做倒是无妨。

   不过, 对於想把 Linux 摆在有实际生产力场合的朋友来说, 我们
就必须实际依照我们事先对於档案系统的规划, 来配合硬碟磁区的规
划。 比方说, 若我们想规划出如 <<画面 4-6>> 这样的一个系统, 我
们实际上就要有两个硬碟, 之後在第一个硬碟 (/dev/hda) 规划四个
分割区, 在第二个硬碟 (/dev/hdb) 规划三个分割区, 而且这一共六
个分割区其属性都必须是 Linux native (其中一个分割区的属性为
Linux swap, 这是用来做虚拟记忆体之用的, 此处没显示)。

<< 画面 4-6 >>
$ df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda1             139112  101280    30648     77%   /
/dev/hdb3             137825   54679    80299     41%   /var
/dev/hdb1             313715   96612   213515     31%   /var/spool/news
/dev/hda3              47586   36833     8289     82%   /home
/dev/hda2             198099   76000   111869     40%   /usr/local
/dev/hda4              19355     793    17563      4%   /tmp
/dev/sbpcd            660480  660480        0    100%   /cdrom

<< 画面 4-7 >>

$ fdisk /dev/hda
Using /dev/hda as default device!
 
Command (m for help): p
 
Disk /dev/hda: 15 heads, 62 sectors, 899 cylinders
Units = cylinders of 930 * 512 bytes
 
   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/hda1   *       2       2     310  143685   83  Linux native
/dev/hda2         311     311     750  204600   83  Linux native
/dev/hda3         751     751     856   49290   83  Linux native
/dev/hda4         857     857     899   19995    5  Extended
 

<< 画面 4-8 >>
$ fdisk /dev/hdb                       ← 指定规划第二颗硬碟
The number of cylinders for this disk is set to 1048.
This is larger than 1024, and may cause problems with some software.
 
Command (m for help): p      ← 用 p 指令来浏览目前分割区的配置
 
Disk /dev/hdb: 16 heads, 63 sectors, 826 cylinders
Units = cylinders of 1008 * 512 bytes
 
   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/hdb1           1       1     100   50368+  83  Linux native
/dev/hdb4   *     406     406     535   65520   a5  Unknown
 
Command (m for help): n                ← n 设立新分割区
Command action
   e   extended
   p   primary partition (1-4)
p                                      ← p 指定 primary 分割区

Partition number (1-4): 2              ← 2  指定第二个

First cylinder (101-826): 101          ← 指定第二分割区位置
                                          从 101 - 250 cylinder

Last cylinder or +size or +sizeM or +sizeK (101-405): 250
 
Command (m for help): n                ← n 设立新分割区
 
Command (m for help):
   e   extended
   p   primary partition (1-4)
p                                      ← p 指定 primary 分割区

Partition number (1-4): 3              ← 指定第三分割区位置
                                          从 251 - 250 cylinder

First cylinder (251-826): 251          ← 填入 251
Last cylinder or +size or +sizeM or +sizeK (251-405): 290  ← 填入 290
 
Command (m for help): p                ← 用 p 指令浏览设定结果
 
Disk /dev/hdb: 16 heads, 63 sectors, 826 cylinders
Units = cylinders of 1008 * 512 bytes
 
   Device Boot  Begin   Start     End  Blocks   Id  System
/dev/hdb1           1       1     100   50368+  83  Linux native
/dev/hdb2         101     101     250   75600   83  Linux native
/dev/hdb3         251     251     290   20160   83  Linux native
/dev/hdb4   *     406     406     535   65520   a5  Unknown
 
Command (m for help): t                ← 修改分割区类型
Partition number (1-4): 3              ← 指定修改第三个分割区

Hex code (type L to list codes): 82    ← 82 代表 Linux Swap Partition

Changed system type of partition 3 to 82 (Linux swap)

 
Command (m for help): wq               ← w: 储存 q: 结束跳出


    完成分割区规划後, 我们还不能立刻执行安装的工作, 现在我们
必须重新开机。 这时, 把 rootdisk 磁片从磁碟机拿出来, 再换插
bootdisk 磁片进去, 之後在提示符号下, 执行 reboot 指令从新启动
机器。

□ 系统软体安装前的说明

    到这里为止, 我们硬碟内实际上仍然没有东西, 我们只做了基本
的分割区规划, 更重要的档案系统ⅱ 系统软体ⅱ 系统核心服务程式
ⅱ系统工具程式以及应用软体等等, 都还未安装。

    刚刚我们完成分割区规划後, 重新开机, 并再次以 root 帐号进入
系统, 假如无误的话, 我们接下来要用 setup 指令, 完成全程安装动
作。 请读者留意, setup 的动作可以指定全自动, 也可以指定一步一
步监督安装。 这两不种不同方式其所需的时间相差很大, 我建议读者
第一次执行的话, 指定一步一步慢慢来 (这是内定方式), 这样您可以
浏览整个过程, 也就可以对系统有更深的了解。 还有一点很重要的,
由於您不想由於您的不慎, 以致於安装了一套有潜在瑕疵的 Linux 系
统, 可是明显的您又没有经验, 怎麽办呢? 简单, 先把第一次安装当
作是测试, 不论成功与否, 都仔细观察仔细学, 之後, 再重新从头开
始一次, 仔细的一步步进行硬碟规划ⅱ 建置档案系统ⅱ 及系统软体
安装。

□ set up 六程序
    Slackware Linux 的安装可以大略分解为六个步骤, 其实这些步
骤其在彩色安装画面上都已经有清楚显示, 读者此处不妨快速浏览即
可。 以下这六个步骤可以是连贯动作, 但也可以个别独立操作。

1. 启动 SWAP PARTITION
    除非您硬碟内已经没有可用的分割区, 最好您第一个步骤就要先
设置 SWAP PARTITION, 让系统所需要的虚拟记忆体立刻生效, 这对
记忆体很小的机器尤其重要, 否则您甚至可能没有办法继续进行安装
工作。


2. 指定安装目的分割区 (Target)
    第二个步骤, 就是告诉系统安装程式, 究竟您想把系统安装到哪
一个 (或者哪几个) 硬碟分割区。 实际执行这步骤时, 您只需要把游
标移到萤幕上的 Target 选项, 按下  键, 之後回答一些问题
即可。

3. 指定安装来源 (Source)
    您首先要告诉安装程式, 您究竟想用什麽方式安装, 比方磁片ⅱ
硬碟ⅱ CD-ROMⅱ 网路远端一部 NFS server 或 磁带等等, 这就是
安装来源。 实际执行操作时, 您可以在刚刚指定 Target的阶段之後
面, 接着进行指定 Source, 或者, 也可以在萤幕上选择 Source选项
。

4. 选择安装软体 (DISK SETS)
    执行这项操作时, 首先我们要选择安装哪些软体, 或者哪些不安
装。

5. 实际安装 (Install)
   这步骤就是真枪实弹把软体从 Source 安装到 Target 的过程。

6. 最後系统设定 (Configuration)

    前面五个步骤完成後, 基本上整个系统所需的软体都已经安装完
成, 只不过, 这仍然是一套死的系统, 因为大部分的功能都还没有办
法正确运转, 这是为什麽, 我们需要进一步做最後的设定。 这步骤实
际上的作法, 也是回答一些问题, 之後安装软体会自动执行。



□ setup 启动

    透过上面的说明, 我们大慨已经明了 setup 所执行的工作, 接下
来我们就要实际来执行 setup 的各项细节。

    我们先来回忆一下。 刚刚用 bootdisk 及 rootdisk 开机成功後
, 我们首先以 root 帐号进入系统, 我们眼前就已经是一个阳春的
Linux/Unix 作业环境, 使用 sh (Bounre Shell) 与系统打交道。

    以下我们在 Shell提示符号下键入 setup 指令, 就可以开始执
行安装程序。

$ setup

<< 画面 4-9 >>
     ______________ Slackware Linux Setup (version FD-2.0.2) ______________?
    ? Welcome to Slackware Linux Setup.                                   ?
    ? Select an option below using the UP/DOWN keys and SPACE or ENTER.   ?
    ? Alternate keys may also be used: '+', '-', and TAB.                 ?
    ? __________________________________________________________________??
    ??HELP       Read the Slackware Setup HELP file                    ??
    ??KEYMAP     Remap your keyboard if you're not using a US one      ??
    ??QUICK      Choose quick or verbose install mode [now: VERBOSE]   ??
    ??MAKE TAGS  Experts may customize tagfiles to preselect packages  ??
    ??ADDSWAP    Set up your swap partition(s)                         ??
    ??TARGET     Set up your target partitions                         ??
    ??SOURCE     Select source media                                   ??
    ??DISK SETS  Decide which disk sets you wish to install            ??
    ??INSTALL    Install selected disk sets                            ??
    ??CONFIGURE  Reconfigure your Linux system                         ??
    ??EXIT       Exit Slackware Linux Setup                            ??
    ? __________________________________________________________________??
    ?_____________________________________________________________________?
    ?                       <  OK  >                              ?
     ______________________________________________________________________?
 

    在这画面中, 我们可以移动上下方向键, 萤幕上的反白就会跟着
移动, 我们把反白移动到某一行, 之後按  键, 就是要执行该
选项工作。

    至於萤幕底端有  两个选项, 可个可以 
键或者左右方向键来跳跃选择, 您也同样可以游标移动, 假如移到
  处, 接着按 , 这就会取消目前的作业。

    下面说明则是该画面的中文翻译说明。

    HELP       阅读线上安装说明
    KEYMAP     更改键盘排列
    QUICK      快速安装模式, 假如使用这选项的话, 系统安装过程
               就不会停下来一一询问您问题。 另外, 这选项可以,
               搭配下面 "MAKE TAGS", 但是, 不是专家的话, 请勿
               使用。
    MAKE TAGS  改变软体内键安装选项
    ADDSWAP    启动 swap partition, 使虚拟记忆体即刻生效
    TARGET     指定目的硬碟分割区
    SOURCE     指定来源 source media
    DISK SETS  选择安装软体系列
    INSTALL    开始安装
    CONFIGURE  系统设定
    EXIT       结束安装作业


□ 启动虚拟记忆体


    前面主服务画面 (< 画面 4-9 >) 下第五个选项 ADDSWAP, 我们
用方向键往下移动到此, 之後按  键。 这画面中的 /dev/hdb2
是系统自己抓到的, 无须额外手工指定, 不过, 前提是之前进行硬碟
分割时, 已经把 /dev/hdb2 的分割区型态 (Partition Type) 正确
设定为 〃Linux swap〃。

    以下自动化程序所作的有三个动作, 第一就是对现有的 Swap
Partition 执行规划动作 (mkswap), 第二个动作, 是让该新规划好的
Swap partition 即刻生效 (swapon)。 最後一步, 则是安装到将来系
统的 /etc/fstab, 这样系统安装完成後, 每次系统开机时就会自动启
动虚拟记忆体。


<< 画面 4-10 >>
      ______________________  SWAP SPACE DETECTED ________________________
     ?                                                                   ?
     ? Slackware Setup has detected a swap partition:                    ?
     ?                                                                   ?
     ?    Device Boot  Begin   Start     End  Blocks   Id  System        ?
     ? /dev/hdb2         101     101     160   30240   82  Linux swap    ?
     ?                                                                   ?
     ? Do you wish to install this as your swap partition?               ?
     ?                                                                   ?
     ?___________________________________________________________________?
     ?                       < Yes >      <  No  >                       ?
      ____________________________________________________________________?
 
    上面这画面下, 按  就可以继续到下面画面, 假若要中断
的话, 按  键可以移动反白到 < No > 区域。

 
<< 画面 4-11 >>
       ________________________ MKSWAP WARNING ________________________
      ? IMPORTANT NOTE: If you have already made any of your swap      ?
      ? partitions active (using the swapon command), then you         ?
      ? should not allow Setup to use mkswap on your swap partitions,  ?
      ? because it may corrupt memory pages that are currently         ?
      ? swapped out. Instead, you will have to make sure that your     ?
      ? swap partitions have been prepared (with mkswap) before they   ?
      ? will work. You might want to do this to any inactive swap      ?
      ? partitions before you reboot.                                  ?
       ________________________________________________________________ ?
      ?                           <  OK  >                             ?
       ________________________________________________________________ ?
 

 
<< 画面 4-12 >>
        ________________________  USE MKSWAP? ________________________
       ?  Do you want Setup to use mkswap on your swap partitions?   ?
        ______________________________________________________________?
       ?                    < Yes >      <  No  >                    ?
        ______________________________________________________________?


    以上三个连续画面所执行的, 也可以用下面这个指令手工完成, 这
提供读者叁考。
 
    $ /sbin/mkswap /dev/hdb2 30240

    还有一点要注意, 假如以前已经做过这指令, 此处就不要重复。
至於操作方法, 上面画面中, 可以移动  键, 选择 No 不安装,
这样会直接跳到下面画面。 假若以前没有操作过, 可以直接按 
,这样会自动执行 mkswap动作。


    下面画面则无论如何一定要执行, 这样就立刻才可以使 Swap
Partition 生效。 以此例来说, 会立刻增加约 30MB 的虚拟记忆体。

<< 画面 4-13 >>
           __________________ ACTIVATE SWAP SPACE? __________________
          ? If you have not already activated your swap partitions  ?
          ? with 'swapon', you should do so at this time. Activate  ?
          ? swap partitions with 'swapon'?                          ?
           __________________________________________________________?
          ?                  < Yes >      <  No  >                  ?
           __________________________________________________________?
 
 
    上面画面所执行的, 就等同於以下这指令:

    $ /sbin/swapon /dev/hdb2

    下面这画面, 安装程式询问说要不要更改 /etc/fstab, 这效果是
以後系统 (指安装完成後的系统) 每次开机後, 会自行启动该 Swap
Partition, 此处我们按  键, 选择安装。

 
 
<< 画面 4-14 >>
     ______________________  SWAP SPACE CONFIGURED ________________________
    ? Your swapspace has been configured. This information will           ?
    ? be added to your /etc/fstab:                                        ?
    ?                                                                     ?
    ? /dev/hdb2        swap        swap        defaults                   ?
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
     ______________________________________________________________________?
    ?                              <  OK  >                               ?
     ______________________________________________________________________?
 
 
    下面是最後一个画面, 安装程式询问我们是否接下来继续执行我
前面介绍的 『2. 指定安装目的分割区 (Target)』, 若按 
回答 Yes, 则会立刻接续下去, 若按  选择 No, 则回到最外层
主服务画面。

 
<< 画面 4-15 >>
           ______________ CONTINUE WITH INSTALLATION? ______________
          ? Now that you've set up your swap space, you may         ?
          ? continue on with the installation. Otherwise, you'll    ?
          ? be returned to the main menu. Would you like to         ?
          ? continue the installation and set up your TARGET        ?
          ? drive(s)?                                               ?
           __________________________________________________________?
          ?                  < Yes >      <  No  >                  ?
           __________________________________________________________?
 
 

□ 指定安装目的分割区

    在这步骤里, 我们要一一的告诉系统安装程式, 哪一个分割区我
们想作为 / 档案系统, 哪一个分割区指定为 /usr 档案系统, 等等。
除此以外, 假如硬碟某一个分割区已经安装有 DOS 或 OS/2, 也可以
在此告诉系统安装程式, 这样子将来就可以直些在 Linux 档案系统
下取用 DOS与 OS/2 档案系统内的东西 (Linux支援 DOS FAT 及 OS2
HPFS 等档案系统)。

    这一阶段的实际操作步骤也很简单。 我们首先指定所要安装
Linux 的分割区, 接着安装程式会询问确认该分割区的属性, 然後
们需决定要不要对该分割区规划出档案系统 (make filesystem)。

    下面画面中, 我们可以看到, 系统安装程式会自动侦测出所有属
性为 Linux native (Partition ID 为 83) 的分割区。 这画面中,
我们被询问的第一个话题, 就是 / 档案系统将设於何处?  这里笔
者回答 /dev/hdb3, 这是第二颗硬碟的第三个分割区。 额外一提,
Linux 可以安装在第一或第二颗硬碟, 悉听尊便。


<< 画面 4-16 >>
     _____________________________________________________________________
    ?                                                                     ?
    ?    Device Boot  Begin   Start     End  Blocks   Id  System          ?
    ? /dev/hdb1           1       1     100   50368+  83  Linux native    ?
    ? /dev/hdb3         536     536     736  101304   83  Linux native    ?
    ?                                                                     ?
    ? Which device would you like to use for your root Linux partition?   ?
    ? __________________________________________________________________  ?
    ??dev/hdb3                                                         ??
    ? __________________________________________________________________??
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
    ?                                                                     ?
     ______________________________________________________________________?
    ?                       <  OK  >                              ?
     ______________________________________________________________________?
 
 
    接下来读者会看到下面这画面, 这里询问档案系统型态, 我建议
读者选择 ext2, 因为绝大多数人都是选用这个。 我们用方向键把反
白移至 ext2 这行, 之後按 键。


<< 画面 4-17 >>
        __________________  CHOOSE LINUX FILESYSTEM __________________
       ? There are two main filesystem types that are used for        ?
       ? Linux. These are the xiafs filesystem, and the second        ?
       ? extended filesystem (ext2). Ext2 seems to be the current     ?
       ? standard. Xiafs hasn't really been changed in quite some     ?
       ? time. Ext2 has one really nice feature that xiafs doesn't    ?
       ? have: as an ext2 partition is unmounted, a clean bit is      ?
       ? written to it. When the machine is rebooted, checking is     ?
       ? skipped for any partitions that have the clean bit on them.  ?
       ? Xiafs may be a better choice for machines with low memory,   ?
       ? however, so it's still supported. What filesystem do you     ?
       ? plan to use on your root partition (/dev/hdb3), ext2fs or    ?
       ? xiafs?                                                       ?
       ? __________________________________________________________   ?
       ??         ext2   Linux Second Extended Filesystem          ??
       ??         xiafs  Linux Xiafs                               ??
       ? __________________________________________________________   ?
        ______________________________________________________________ ?
       ?                   <  OK  >                           ?
        ______________________________________________________________ ?
 
 
    选择 ext2 档案系统後, 接着又询问我们是否要真的执行建造动
作 (相当於DOS的格式化动作), 假如这是我们第一次安装, 很可能我
要就要选择 Format 或 Check, 但是如果确定以前已经做过, 这里也
可以选择 No。 至於 Format 与 Check的不同, Check 除了做 Format
动作外, 还额外检测硬碟是否有坏轨, 假如您硬碟有瑕疵的话, 记得
选用 Check。

<< 画面 4-18 >>
      ________________________  FORMAT PARTITION ________________________
     ? If this partition has not been formatted, you should format it.   ?
     ? NOTE: This will erase all data on it. If you are trying to        ?
     ? upgrade an existing Linux partition, you should use setup from    ?
     ? your hard drive, not from the boot/root disk. (The versions of    ?
     ? setup supplied on the hard drive and the boot/root disk differ)   ?
     ? Would you like to format this partition?                          ?
     ? ________________________________________________________________??
     ??       Format  Quick format with no bad block checking         ??
     ??       Check   Slow format that checks for bad blocks          ??
     ??       No      No, do not format this partition                ??
     ? ________________________________________________________________??
      ____________________________________________________________________?
     ?                      <  OK  >                             ?
      ____________________________________________________________________?
 
 
    以下我选择 Format, 系统就立刻执行 mkfs 动作, 额外一提, 这
动作相同於 $ mke2fs /dev/hdb3 101304 指令, 读者朋友以後进行正
常系统管理时, 会用到这命令。


<< 画面 4-19A >>


       ______________________SELECT INODE DENSITY ______________________
       ? Ext2fs defaults to one inode per 4096 bytes of drive space.  ?
       ? If you're going to have many small files on your drive,      ?
       ? then you may need more inodes (one is used for each file     ?
       ? entry). You can change the density to one inode per 2048     ?
       ? bytes, or even per 1024 bytes. Select '2048' or '1024', or   ?
       ? just hit enter to accept the default of 4096 bytes. NOTE:    ?
       ? If you are going to run from CD using a small (<60MB)        ?
       ? partition, use 1024 to be safe. Each link uses an inode and  ?
       ? it's easy to run out of space.                               ?
       ?____________________________________________________________??
       ??         4096  1 inode per 4096 bytes. (default)          ??
       ??         2048  1 inode per 2048 bytes.                    ??
       ??         1024  1 inode per 1024 bytes.                    ??
       ?____________________________________________________________??
        _______________________________________________________________
       ?                   <  OK  >                           ?
        _______________________________________________________________?
 
    画面 4-19A 的选择, 笔者建议, 若是用来作为 News spool 区域
(也就是 /var/spool/news) 的档案系统, 不妨选择 1024 这一栏, 这
结果会造成一个 Block (照内定, 一个Block等於1024 bytes) 等於一
个 Inode 除此以外的正常状况, 选择第一选项 4096, 这结果一个Inode
会等於 4096 bytes。 以上若读者无法明白什麽是 Bloack/Inode, 请
忽略无妨, 这些观念并不重要。


<< 画面 4-19B >>
                  ______________  FORMATTING ________________
                 ? Formatting /dev/hdb3                     ?
                 ? Size in 1K blocks:    70560              ?
                 ? Filesystem type: ext2                    ?
                  __________________________________________
 

    以上连续几个动作已经成功的指定某一个分割区作为系统的 /
(root) 档案系统, 假如您只有一个 Linux属性的分割区, 这时 / 档
案系统就是您唯一的档案系统。 不过, 假如您有一个以上, 您就可
以看到下面画面, 这画面告诉我们说, 本电脑硬碟下有不只一个 Linux
属性分割区, 而 /dev/hdb3 已经指定作为 / 档案系统, 这时是否要
把剩下的分割区也包含进来, 比方独立出 /usr 或 /usr/X11 档案系
统等等的?

    这里我回答是。 再重复一次, 把 / 档案系统规划小一些, 也就
是把 /usrⅱ /varⅱ /homeⅱ /tmp 独立出来对系统执行效率以及系
统安全都会有助益。 不过, 对 Linux 或 Unix经验仍薄弱的朋友, 我
强烈建议您就此停住, 先不要顾虑效率或安全, 先跑看看, 增加一些
经验, 之後, 再考虑重新设定一个最佳的系统。

<< 画面 4-20 >>
      ____________________________________________________________________
     ? You seem to have more than one partition tagged as Linux native.  ?
     ? You may use these to distribute your Linux system across more     ?
     ? than one partition. Currently, you have /dev/hdb3 mounted as      ?
     ? your / partition. You might want to mount large directories such  ?
     ? as /usr or /usr/X11 or seperate partitions. You should not try    ?
     ? to mount /etc, /sbin, or /bin on their own partitions since they  ?
     ? contain utilities needed to bring the system up and mount         ?
     ? partitions. Would you like to use some of the other Linux         ?
     ? partitions to mount some of your directories?                     ?
     ?                                                                   ?
      ____________________________________________________________________?
     ?                       < Yes >      <  No  >                       ?
      ____________________________________________________________________?
 
 
 
    以下重复进行刚刚的动作, 这里我回答 /dev/hdb1 分割区。 另
外一点要注意的是, 假如这时您临时决定不再增加任何分割区, 可以
键入 q , 之後按  键即可。

<< 画面 4-21 >>
    ______________________________________________________________________
   ?                                                                      ?
   ? These are your Linux partitions:                                     ?
   ? /dev/hdb1           1       1     100   50368+  83  Linux native     ?
   ? /dev/hdb3         536     536     736  101304   83  Linux native     ?
   ?                                                                      ?
   ? These partitions are already in use:                                 ?
   ? /dev/hdb1 on /mnt type ext2 (rw)                                     ?
   ?                                                                      ?
   ? Please enter the partition you would like to use, or                 ?
   ? type [q] to quit adding new partitions:                              ?
   ? __________________________________________________________________   ?
   ??/dev/hdb1                                                         ??
   ? __________________________________________________________________ ??
   ?                                                                      ?
   ?                                                                      ?
   ?                                                                      ?
   ?                                                                      ?
   ?                                                                      ?
    ______________________________________________________________________ ?
   ?                       <  OK  >                               ?
    ______________________________________________________________________ ?
 
 
    以下同样指定 ext2。

 
<< 画面 4-22 >>
        __________________  CHOOSE LINUX FILESYSTEM __________________
       ? There are two main filesystem types that are used for        ?
       ? Linux. These are the xiafs filesystem, and the second        ?
       ? extended filesystem (ext2). Ext2 seems to be the current     ?
       ? standard. Xiafs hasn't really been changed in quite some     ?
       ? time. Ext2 has one really nice feature that xiafs doesn't    ?
       ? have: as an ext2 partition is unmounted, a clean bit is      ?
       ? written to it. When the machine is rebooted, checking is     ?
       ? skipped for any partitions that have the clean bit on them.  ?
       ? Xiafs may be a better choice for machines with low memory,   ?
       ? however, so it's still supported. What filesystem do you     ?
       ? plan to use on your root partition (/dev/hdb3), ext2fs or    ?
       ? xiafs?                                                       ?
       ? __________________________________________________________   ?
       ??         ext2   Linux Second Extended Filesystem          ??
       ??         xiafs  Linux Xiafs                               ??
       ? __________________________________________________________   ?
        ______________________________________________________________ ?
       ?                   <  OK  >                           ?
        ______________________________________________________________ ?
 
 
<< 画面 4-23 >>

                  ______________  FORMATTING ________________
                 ? Formatting /dev/hdb3                     ?
                 ? Size in 1K blocks:    70560              ?
                 ? Filesystem type: ext2                    ?
                  __________________________________________
 

    假如您硬碟内规划有很多 Linux 分割区, 这时您重复以上动作就
可以。 以下接着安装程式侦测到我第一个硬碟内有 DOS 分割区 (C:
碟), 就问我们说, 是否要把这DOS分割区包含进来, 成为系统的档案
系统之一, 於是我们可以在 Linux系统下直接存取原本 C: 磁碟内的
东西。 这里按  回答是, 若不想要, 按  (或方向键),
把反白移到 No, 之後按 。


<< 画面 4-24 >>
    ____________________  DOS AND OS/2 PARTITION SETUP ____________________ ?
   ?                                                                       ?
   ? The following DOS FAT or OS/2 HPFS partitions were found:             ?
   ?                                                                       ?
   ? /dev/hda1   *       1       1    1000  127491+   6  DOS 16-bit >=32M  ?
   ?                                                                       ?
   ? Would you like to make some of these partitions visible from Linux?   ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
   ?                                                                       ?
    ________________________________________________________________________?
   ?                         < Yes >      <  No  >                         ?
    ________________________________________________________________________?
 
 
    由於我回答 Yes, 以下就要进一步回答 /dev/hda1。

 
<< 画面 4-25 >>
   __________________________  CHOOSE PARTITION ____________________________?
  ? These DOS or OS/2 partitions are available to mount:                   ?
  ? /dev/hda1   *       1       1    1000  127491+   6  DOS 16-bit >=32M   ?
  ? Please enter the partition you want to access from Linux,              ?
  ? or type [q] to quit adding new partitions:                             ?
  ? ____________________________________________________________________   ?
  ??dev/hda1                                                            ??
  ? ____________________________________________________________________ ??
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
  ?                                                                        ?
   ________________________________________________________________________ ?
  ?                        <  OK  >                                ?
   ________________________________________________________________________ ?
 
 
    以下画面则是要选择 Mount Point, 这个就是说把 C: 磁碟挂在
系统的哪里, 注意, Linux/Unix 没有 C: 磁碟观念 (C: 是 DOS的观
念与用法), 我们可以设立比方说 /msdos 目录, 之後把 C: 所在的分
割区, 挂在这 /msdos 目录下, 这样就可以很方便存取 该 C: 内的
DOS档案。 以下, 我就指定 /msdos 为这个挂点 (Mount Point)。
 
<< 画面 4-25 >>
        ____________________  SELECT MOUNT POINT ______________________
       ? Now this new partition must be mounted somewhere in your     ?
       ? directory tree. Please enter the directory under which       ?
       ? you would like to put it. for instance, you might want to    ?
       ? reply /dosc, /dosd, or something like that. NOTE: This       ?
       ? partition won't actually be mounted until you reboot.        ?
       ?                                                              ?
       ? Where would you like to mount /dev/hda1?                     ?
       ? __________________________________________________________ ??
       ??msdos                                                     ??
       ? __________________________________________________________ ??
        ______________________________________________________________ ?
       ?                   <  OK  >                           ?
        ______________________________________________________________ ?
 

    以下画面按 。
 
<< 画面 4-26 >>
   __________________  CURRENT DOS/HPFS PARTITION STATUS __________________ ?
  ?                                                                        ?
  ? DOS partition added to /etc/fstab:                                     ?
  ?                                                                        ?
  ? /dev/hda1        /msdos        msdos        defaults                   ?
  ?                                                                        ?
   ________________________________________________________________________ ?
  ?                               <  OK  >                                 ?
   ________________________________________________________________________ ?
 
 
    下面画面问我们要不要进一步接着进行「指定安装来源」作业,
若回答 Yes, 则立刻接续到之後的操作, 若 No, 则回到最外层画面
。

<< 画面 4-27 >>
           ______________________  CONTINUE? ________________________
          ? Now that you've set up your target partitions, would    ?
          ? you like to go on to the SOURCE section and select      ?
          ? your installation media?                                ?
           __________________________________________________________?
          ?                  < Yes >      <  No  >                  ?
           __________________________________________________________?
 

□ 指定安装来源 (Source)

    接下来我们要指定用什麽方式安装, 以下画面就是询问用什麽方
法来安装, 其实也就是问存放媒体是什麽。 以下五种方法中, NFS
应该算是轻松愉快的安装方法, 假如读者可以上 Internet网路, 或
者您区域网路中已经有 NFS server, 且其内存放有 Slackware Linux
软体, 这就可以用 NFS安装。 以下笔者五种方法全部做介绍, 不过
读者们选择其中之一叁考即可, 其他跳过去无妨。

    其实这五个安装方法都有其类似之处, 就是无论哪一种方法, 都
必须在安装之前或过程, 把安装来源 (软碟ⅱ硬碟ⅱCD-ROM 或 NFS
等等) 挂 (Mount) 在安装软体系统 (其实已经是一个阳春 Linux系
统) 之下的一个目录。 以硬碟来安装来说, 很多朋友的作法是先把
Linux系统软体存放在同一部电脑的硬碟内 DOS 系统分割区内, 这情
况的作法, 是把该 DOS 分割区挂上来, 并指定切确路径。 CD-ROM
安装法也很类似, 但我们必须先拿支援该品牌 CD-ROM 的bootdisk,
启动後把 CD-ROM drive挂上来成为系统的一部份, 并指定切确路径。
NFS 也是一样, 不过一些起码网路基本常识要具备, 程序上也类似,
只不过多了一道网路设定程序, 网路设定成功後, 把远端 NFS server
所 export 的目录挂上来。

    以上所描述的操作动作, 并不需要透过命令执行, 而是在萤幕画
面上回答一些问题或者做一些选择即可。 细节的操作请看下面例子。


软碟安装法

    选择磁片安装的话, 我们必须事先拷贝所有的磁片, 要嘛从CD-ROM
拷贝下来, 或者从 Internet FTP 档案库, 或者从 BBS或任何地方都
可以。 确定您要由磁片安装後, 操作上下方向键, 把反白移至选项
〃2〃, 之後按  键。

<< 画面 4-28 >>
 
        __________________  SOURCE MEDIA SELECTION ____________________
       ?                                                              ?
       ? Where do you plan to install Slackware Linux from?           ?
       ?                                                              ?
       ? __________________________________________________________   ?
       ??         1  Install from a hard drive partition           ??
       ??         2  Install from floppy disks                     ??
       ??         3  Install via NFS                               ??
       ??         4  Install from a pre-mounted directory          ??
       ??         5  Install from CD-ROM                           ??
       ? __________________________________________________________ ??
        ______________________________________________________________ ?
       ?                   <  OK  >                           ?
        ______________________________________________________________ ?
 

     接下来步骤是选择磁碟机规格, 其中有四个选项, <在画面 4-29>
请选择其中之一。

 
<< 画面 4-29 >>
       ______________________ SELECT FLOPPY DRIVE ______________________
      ?                                                                ?
      ? The base Slackware series (A) can be installed from 1.2M       ?
      ? or 1.44M media. Most of the other disks will not fit on        ?
      ? 1.2M media, but can be downloaded to your hard drive and       ?
      ? installed from there later.                                    ?
      ?                                                                ?
      ? Which drive do you want to install from?                       ?
      ? ____________________________________________________________ ??
      ??               /dev/fd0H1440  1.44M drive a:                ??
      ??               /dev/fd1H1440  1.44M drive b:                ??
      ??               /dev/fd0h1200  1.2M drive a:                 ??
      ??               /dev/fd1h1200  1.2M drive b:                 ??
      ? ____________________________________________________________ ??
      ?                                                                ?
       ________________________________________________________________ ?
      ?                    <  OK  >                            ?
       ________________________________________________________________
 
 

NFS网路 安装法

    透过 NFS 安装其实没有想像困难, 以下的操作过程, 一开始先
设定 NFS 网路部份, 我们要指定我们这机机器的 IP, 以及网路上另
外一部 NFS server的 IP, 接着, 我们指定该 server的档案存放路
径, 就是这样。

    至於有关於网路的技术部份, 我们在此完全没有解释, 比方以下
所需要的基本网路资料, 像是本机器的 IP地址ⅱ Netmaskⅱ Broadcast
及 Gateway 位址等等资料, 您必须自行询问您所属网路管理单位, 不
要引用下面资料。 至於网路上公开性的 NFS server, 交大资工提供有这
服务, 其 NFS server IP 地址是 140.113.235.252 (linux.csie.nctu.edu.tw)
, 其存放路径是 /Slcakware (请注意大小写)。
 

<< 画面 4-30 >>
        __________________  SOURCE MEDIA SELECTION ____________________
       ?                                                              ?
       ? Where do you plan to install Slackware Linux from?           ?
       ?                                                              ?
       ? __________________________________________________________ ??
       ??         1  Install from a hard drive partition           ??
       ??         2  Install from floppy disks                     ??
       ??         3  Install via NFS                               ??
       ??         4  Install from a pre-mounted directory          ??
       ??         5  Install from CD-ROM                           ??
       ? __________________________________________________________ ??
        ______________________________________________________________ ?
       ?                   <  OK  >                           ?
        ______________________________________________________________ ?


    以下讯息浏览一下, 之後按 , 开始进行设定 NFS client。
 
 
<< 画面 4-31 >>
       ____________________ INSTALLATION THROUGH NFS ____________________?
      ?                                                                 ?
      ? WARNING! Installing via NFS can be a real time-saver if you're  ?
      ? good with TCP/IP, but is a tricky installation choice for the   ?
      ? beginner. Some of the things you may have to do to get this     ?
      ? option to work include:                                         ?
      ?                                                                 ?
      ? -- Setting up an /etc/networks file on the bootdisk             ?
      ? -- Mandatory: getting the source directory exported from        ?
      ?    your NFS server                                              ?
      ? -- Starting up 'portmap'                                        ?
      ?                                                                 ?
      ? Are you sure you want to try to install via NFS?                ?
      ?                                                                 ?
       __________________________________________________________________?
      ?                      < Yes >      <  No  >                      ?
       __________________________________________________________________?
 
 
    下面画面回答所安装这部机器的 IP 地址。
 

<< 画面 4-32 >>
        ______________________ ASSIGN IP ADDRESS ______________________?
       ?                                                              ?
       ? You will need to enter the IP address you wish to            ?
       ? assign to this machine. Example: 111.112.113.114             ?
       ?                                                              ?
       ? What is your IP address?                                     ?
       ? ___________________________________________________________  ?
       ??92.168.1.148                                              ??
       ? ___________________________________________________________  ?
       ?                                                              ?
        _______________________________________________________________ 
       ?                   <  OK  >                           ?
        _______________________________________________________________ 
 

    下面回答 Netmask。
 

<< 画面 4-33 >>
        ______________________  ASSIGN NETMASK ________________________?
       ?                                                              ?
       ? Now we need to know your netmask.                            ?
       ? Typically this will be 255.255.255.0                         ?
       ? but this can be different depending on                       ?
       ? your local setup.                                            ?
       ?                                                              ?
       ? What is your netmask?                                        ?
       ? ___________________________________________________________  ?
       ??55.255.255.0                                              ??
       ? ___________________________________________________________  ?
       ?                                                              ?
        _______________________________________________________________ 
       ?                   <  OK  >                           ?
        _______________________________________________________________ 
 

    以下填入 Broadcast 地址。

 
<< 画面 4-34 >>
        __________________ ASSIGN BROADCAST ADDRESS ___________________ 
       ?                                                              ?
       ? Typically your broadcast address will be the same as         ?
       ? your IP address with 255 replacing the final value.          ?
       ? Example: 111.112.113.255                                     ?
       ?                                                              ?
       ? What is your broadcast address?                              ?
       ? ___________________________________________________________  ?
       ??92.168.1.255                                              ??
       ? ___________________________________________________________  ?
       ?                                                              ?
        _______________________________________________________________ 
       ?                   <  OK  >                           ?
        _______________________________________________________________ 
 

    下面则回答网路地址。

 
<< 画面 4-35 >>
        __________________  ASSIGN NETWORK ADDRESS ____________________?
       ?                                                              ?
       ? Now we need your network address.                            ?
       ?                                                              ?
       ? Your network address will usually be the same as your IP     ?
       ? address, with the last value replaced by 0.                  ?
       ? For example: 111.112.113.0                                   ?
       ?                                                              ?
       ? What is your network address?                                ?
       ? ___________________________________________________________  ?
       ??92.168.1.0                                                ??
       ? ___________________________________________________________  ?
       ?                                                              ?
        _______________________________________________________________ 
       ?                   <  OK  >                           ?
        _______________________________________________________________ 
 

    底下再问, 您这部机器需不需要经过 Gateway才能连线出去。
由於笔者示范是透过内部网路安装, 所以没有 Gateway。 不过, 绝
大部分 Internet 连线的机器, 是有 Gateway的。

 
<< 画面 4-36 >>
 
                          ____________________________?
                         ?  Do you have a gateway?   ?
                         ?                           ?
                          ____________________________?
                         ?   < Yes >      <  No  >   ?
                          ____________________________?
 
 
     下面回答 NFS server 所在 IP 地址, 在台湾的读者, 若有
Internet 连线的话, 以下可以填入 140.113.235.252, 或者其他
您知道有提供此服务的机器的 IP 地址也行。


<< 画面 4-37 >>
 
      __________________ ENTER IP ADDRESS OF NFS SERVER __________________?
     ?                                                                   ?
     ? Good! We're all set on the local end, but now we need to know     ?
     ? where to find the software packages to install. First, we need    ?
     ? the IP address of the machine where the Slackware sources are     ?
     ? stored.                                                           ?
     ?                                                                   ?
     ? What is the IP address of your NFS server?                        ?
     ? ________________________________________________________________??
     ??92.168.1.150                                                   ??
     ? ________________________________________________________________??
     ?                                                                   ?
     ?                                                                   ?
     ?                                                                   ?
      ____________________________________________________________________?
     ?                      <  OK  >                             ?
      ____________________________________________________________________?
 
 
    底下问说, 本机器之网路界面卡是外接式, 或者是一般内接式,
一般桌上型电脑用的都是内接式。

 
<< 画面 4-38 >>
      ____________________ ETHERNET DEVICE SELECTION _____________________ 
     ?                                                                   ?
     ? Slackware can configure either an INTERNAL ethernet card, or an   ?
     ? EXTERNAL D-Link adaptor.                                          ?
     ?                                                                   ?
     ? Which type of ethernet device do you have?                        ?
     ? ________________________________________________________________??
     ??              Internal  Internal ethernet card                 ??
     ??              External  External D-Link adaptor                ??
     ? ________________________________________________________________??
     ?                                                                   ?
      ____________________________________________________________________?
     ?                      <  OK  >                             ?
      ____________________________________________________________________?
 

    下面回答 该 NFS server存放 Slackware Linux系列软体之路径。
 
<< 画面 4-39 >>
 
        __________________  SELECT SOURCE DIRECTORY ___________________
       ?                                                              ?
       ?  There must be a directory on the server with the Slackware  ?
       ?  sources for each disk in subdirectories beneath it.         ?
       ?                                                              ?
       ?  The installation script needs to know the name of the       ?
       ?  directory on your server that contains the disk             ?
       ?  subdirectories. For example, if your A3 disk is found at    ?
       ?  /slackware/a3, then you would respond: /slackware           ?
       ?                                                              ?
       ?  What is the Slackware source directory?                     ?
       ? ___________________________________________________________  ?
       ??root/slackware-2.0.2                                      ??
       ? ___________________________________________________________  ?
        _______________________________________________________________ 
       ?                   <  OK  >                           ?
        _______________________________________________________________ 
 

<< 画面 4-40 >>

We'll switch into text mode here so you can see if you have any errors.

We'll switch into text mode here so you can see if you have any errors.
 
Configuring ethernet card...
Mounting NFS...
mount: 192.168.1.150:/root/slackware-2.0.2 failed, reason given by server:
No such file or directory
 
Current mount table:
/dev/fd0 on / type minix (rw)
none on /proc type proc (rw)
/dev/hdb1 on /mnt type ext2 (rw)
Do you think you need to try this again ([y]es, [n]o)?
 
    上面是最後一个问题, 这里是问说, 我们要不要再事一次, 通常
我们从萤幕上并没有看到错误讯息的话, 就可以回答 n 。 本例子中,
由於路径回答错误, 所以我必须回答 y, 之後, 从新来一次。
 

□ 硬碟安装法

     前面说过, 从硬碟安装很简单。 底下我就是过程实际示范出来。
 
     至於以下我们选择 1 或选择与 4  其实是一样的, 不同的是,
选项 4可以配合我们事先手工挂上来的目录, 而不论来源是硬碟ⅱ
NFS 或 CD-ROM drive。 以底下 < 画面 4-42 > 的操作来说, 我们
先要哪一个硬碟分割区,  之後再决定目录的路径以及档案属性等等
。
 
<< 画面 4-41 >>
        __________________  SOURCE MEDIA SELECTION ____________________?
       ?                                                              ?
       ? Where do you plan to install Slackware Linux from?           ?
       ?                                                              ?
       ? ___________________________________________________________  ?
       ??         1  Install from a hard drive partition           ??
       ??         2  Install from floppy disks                     ??
       ??         3  Install via NFS                               ??
       ??         4  Install from a pre-mounted directory          ??
       ??         5  Install from CD-ROM                           ??
       ? ___________________________________________________________  ?
        _______________________________________________________________ 
       ?                   <  OK  >                           ?
        _______________________________________________________________ 
 
 
    选择选项 1 硬碟安装後, 我们进一步要指定分割区所在。 下面
画面中, 由於我 Slackware Linux 软体放在第一个硬碟的第一个分割
区, 我回答 /dev/hda1。 假如您不清楚哪一个分割区, 可以光按
 键, 这可以浏览您硬碟内所有的分割区。

 
<< 画面 4-42 >>
      ____________________ INSTALLING FROM HARD DISK _____________________ 
     ?                                                                   ?
     ? In order to install directly from the hard disk you must          ?
     ? have a partition with a directory containing the Slackware        ?
     ? distribution such that each disk other than the boot disk         ?
     ? is contained in a subdirectory. For example, if the               ?
     ? distribution is in /stuff/slack, then you have to have            ?
     ? directories named /stuff/slack/a1, /stuff/slack/a2, and so        ?
     ? on each containing the files that would be on that disk.          ?
     ? You may install from DOS, HPFS, or Linux partitions.              ?
     ? Please enter the partition where the Slackware sources can        ?
     ? be found, or [enter] to see a partition list:                     ?
     ?                                                                   ?
     ? ________________________________________________________________??
     ??dev/hda1                                                       ??
     ? ________________________________________________________________??
     ?                                                                   ?
      ____________________________________________________________________?
     ?                      <  OK  >                             ?
      ____________________________________________________________________?
 
 
    接下来画面我们要回答路径所在, 这里我回答 /slakware, 这路
径实际上是 C:\SLAKWARE。

 
<< 画面 4-43 >>
        __________________  SELECT SOURCE DIRECTORY ___________________
       ?                                                              ?
       ? Now we need to know what directory on this partition         ?
       ? the Slackware sources can be found in. (The directory        ?
       ? in which the subdirectories for each disk is found)          ?
       ? NOTE: You must give the directory name relative to the       ?
       ? top of the partition.  So, for example, if you're going      ?
       ? to mount this partition under /usr, don't include the        ?
       ? '/usr'at the beginning of the pathname.                      ?
       ?                                                              ?
     
(http://www.fanqiang.com)

    进入【UNIX论坛

相关文章
轻轻松松的安装Slackware Linux -- 5.其他非标准安装程序解析 (2001-06-21 21:04:01)
轻轻松松的安装Slackware Linux -- 4.如何在硬碟建置Linux系统 (2001-06-21 20:10:00)
轻轻松松的安装Slackware Linux -- 3.认识 Slackware Linux 及制作系统安装磁片 (2001-06-21 19:00:00)
轻轻松松的安装Slackware Linux -- 2.作业系统安装初步 (2001-06-21 18:08:00)
轻轻松松的安装Slackware Linux -- 1.如何选购Linux可以搭配的机器 (2001-06-21 17:04:00)
轻轻松松的安装Slackware Linux -- 0.自序,观念篇 (2001-06-21 16:10:01)
 

★  樊强制作 欢迎分享  ★