- 论坛徽章:
- 0
|
配置挂载点和格式化文件系统
现在进入挂载点的最后配置。如果你已经用disklable配置好了挂载点,这里你只需确定一下你的选择。但是,你也可在此指定它们。
Mount point for wd0d (size=122976k)? (or 'none' or 'done') [/tmp] 回车
Mount point for wd0e (size=82152k)? (or 'none' or 'done') [/var] 回车
Mount point for wd0g (size=3145968k)? (or 'none' or 'done') [/usr] 回车
Mount point for wd0h (size=4194288k)? (or 'none' or 'done') [/home] 回车
Mount point for wd0d (size=122976k)? (or 'none' or 'done') [/tmp] done
No more disks to initialize.
OpenBSD filesystems:
wd0a /
wd0d /tmp
wd0e /var
wd0g /usr
wd0h /home
The next step *DESTROYS* all existing data on these partitions!
Are you really sure that you're ready to proceed? [no] y
/dev/rwd0a: 307440 sectors in 305 cylinders of 16 tracks, 63 sectors
150.1MB in 1 cyl groups (306 c/g, 150.61MB/g, 19328 i/g) //若你需要安装多系统,注意这一行显示的内容“/dev/rwd0a”,在后面的多系统启动中这个会用的着。
/dev/rwd0d: 245952 sectors in 244 cylinders of 16 tracks, 63 sectors
120.1MB in 1 cyl groups (244 c/g, 120.09MB/g, 15360 i/g)
/dev/rwd0e: 164304 sectors in 163 cylinders of 16 tracks, 63 sectors
80.2MB in 1 cyl groups (164 c/g, 80.72MB/g, 10368 i/g)
/dev/rwd0g: 6291936 sectors in 6242 cylinders of 16 tracks, 63 sectors
3072.2MB in 20 cyl groups (328 c/g, 161.44MB/g, 20608 i/g)
/dev/rwd0h: 8388576 sectors in 8322 cylinders of 16 tracks, 63 sectors
4096.0MB in 26 cyl groups (328 c/g, 161.44MB/g, 20608 i/g)
/dev/wd0a on /mnt type ffs (rw, asynchronous, local, ctime=Thu Oct 20 00:03:14 2
005)
/dev/wd0h on /mnt/home type ffs (rw, asynchronous, local, nodev, nosuid, ctime=T
hu Oct 20 00:03:14 2005)
/dev/wd0d on /mnt/tmp type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Th
u Oct 20 00:03:15 2005)
/dev/wd0g on /mnt/usr type ffs (rw, asynchronous, local, nodev, ctime=Thu Oct 20
00:03:15 2005)
/dev/wd0e on /mnt/var type ffs (rw, asynchronous, local, nodev, nosuid, ctime=Th
u Oct 20 00:03:15 2005)
你也许会问installer为什么还要问挂载点。这个允许你从(用disklable时建立的)任何错误的或者冗余的挂载点中恢复过来。比如,安装程序会自动删除在disklable创建时输入的任何重复的挂载点。disklable允许你输入重复的挂载点,因此退出disklable后就应该再次确认它们。被删除的挂载点将使得分区没有挂载点,所以为了使用你需要指定新的挂载点。
注意"Are you really sure that you are ready to proceed?"默认为no,所以你需要特意告诉它继续且格式化你的 分区。如果选择no,你会进入一个shell,在那可以输入install或者重起计算机来重新启动安装程序。
在此,所有的分区将被格式化。可能要花一些时间,这取决你的分区大小和硬盘速度。
设置主机名(hostname)
现在你必须设置主机名。 这里的设置和DNS域名一样被保存在文件 /etc/myname中,该文件用于在一般启动使设置好系统的主机名。如果你不设置主机名的话, 将会使用默认值"my.domain".
设置好主机名是很重要的,因为系统在安装后首次启动时生成加密密钥的时候要使用主机名,这个通常取决于网络是否已经进行了配置。
Enter system hostname (short form, e.g. 'foo'): puffy
网络配置
现在就开始配置网络了。如果你要使用FTP或者NFS进行安装的话,就必须配置好网络,确定好你的相应信息,并回车。下面是安装程序中配置网络的整个过程:
Configure the network? [yes] 回车
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] 回车
Symbolic (host) name for fxp0? [puffy] 回车
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] 回车
IP address for fxp0? (or 'dhcp') 199.185.137.55
Netmask? [255.255.255.0] 回车
IPv6 address for fxp0? (or 'rtsol' or 'none') [none] 回车
No more interfaces to initialize.
DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [none] 199.185.137.1
Use the nameserver now? [yes] 回车
Default route? (IP address, 'dhcp' or 'none') 199.185.137.128
add net default: gateway 199.185.137.128
Edit hosts with ed? [no] E回车
Do you want to do any manual network configuration? [no] 回车
上例中我们使用的是一个静态的IP地址,在那些支持dhcp环境的平台上,你也可以使用"dhcp"来代替之。在DHCP配置中,大部分的信息将从DHCP服务器上得到,在此你也有机会对那些信息进行核实。下面就是安装过程中配置DHCP网络的例子:
Configure the network? [yes] 回车
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] 回车
Symbolic (host) name for fxp0? [puffy] 回车
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] 回车
IP address for fxp0? (or 'dhcp') dhcp
Issuing hostname-associated DHCP request for fxp0.
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 199.185.137.128
DHCPREQUEST on fxp0 to 255.255.255.255 port 67
DHCPACK from 199.185.137.128
New Network Number: 199.185.137.0
New Broadcast Address: 199.185.137.255
bound to 199.185.137.55 -- renewal in 43200 seconds.
Done - no available interfaces found.
DNS domain name? (e.g. 'bar.com') [example.org] 回车
DNS nameserver? (IP address or 'none') [199.185.137.1] 回车
Use the nameserver now? [yes] 回车
Default route? (IP address, 'dhcp' or 'none') [199.185.137.128] 回车
Edit hosts with ed? [no] 回车
Do you want to do any manual network configuration? [no] 回车
注意:在安装时使用DHCP只能配置一个网络界面(interface).如果你想配置多个网络界面使用DHCP,将会出错。你需要在安装后手工配置其他的界面。
现在,我们设置root用户的密码:
Password for root account? (will not echo) pAssWOrd
Password for root account? (again) pAssWOrd
你应该为root设置一个安全的密码。在系统启动后,你也要创建另外一个用户。从passwd(1)我们知道:
新密码至少为6个字符长,并且白能全为字母。它的长度也不能大于_PASSWORD_LEN(目前为128字符长)。我们推荐大小写字母和数字以及其他符号混合使用。
这部分基本上是拷贝的
未完,待续....
[ 本帖最后由 wuyanxiao 于 2006-3-8 18:06 编辑 ] |
|