installXX.img
;若是虚拟机体验,请下载 installXX.iso
。(注:截止 OpenBSD 7.1 时,请不要使用 ventory 引导实体机安装。)Welcome to the OpenBSD/amd64 7.1 installation program.(I)nstall, (U)pgrade or (S)hell?i
System hostname? (short form, e.g. 'foo')XiaoMing
XiaoMing.DHCP
这样的主机名。Available network interfaces are: em0 rtwn0.Which one do you wish to configure? (or 'done') [em0]
?
,详细了解网络名称后再选择。如本例中 em0
为有线网络,rtwn0
为无线网络。Password for root account? (will not echo)
Password for root account? (again)
no
Setup a user? (enter a lower-case loginname, or 'no') [no]XiaoMing
Full user name for XiaoMing?
Password for XiaoMing account? (will not echo)
Password for XiaoMing account? (again)
What timezone are you in? ('?' for list) [US/Eastern]Asia/Shanghai
Available disks are: sd0, sd1, sd2. Which one is the root disk? (or 'done') [sd0]?
?
列出识别的所有硬盘。请务必记住所有的盘符:所要安装系统的盘符,以及我们的U盘 盘符。然后输入需要安装的位置,如 sd0
。Use (W)hole disk MBR, whole disk (G)PT or (E)dit? [gpt] 在这里,bios 主板选择w
,UEFI 主板选择g
。
Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout? [a] 这里我们直接回车,选择系统默认分区。(文末附有自定义分区设置,仅供参考,不推荐新用户尝试。)
Let's install the sets! Location of sets? (cd disk ftp http or 'done') [cd]disk
disk
。这里我们选择安装盘为软件地址。Is the disk partition already mounted? [yes]no
?
查看。-game*
来取消 game71.tgz
,其它都勾选。X11
选项,否则部分软件可能无法正常运行。Location of sets? (cd disk ftp http or 'done') [done]
swap 2GB
,/
为剩下的全部容量。/ 32GB
,swap 4GB
,/home
为剩下的全部容量。C
,即 自定义设置
。p m
p m
来显示硬盘。其它选项如下表:>a
partition: [a]offset: [64]size: [xxxxxxxx]20g
Rounding size to cylinder (bbbbb sectors): yyyyyyyyFS type: [4.2BSD]mount point: [none]/
Rounding size to bsize (w sectors): zzzzzzz>
阴影框
为我们输入的设置,其余的皆为回车键默认选择。>a
partition: [b]offset: []size: [xxxxxxxxxx]4g
Rounding size to cylinder (w sectors): zzzzzzFS type: [swap]>
阴影框
为我们输入的设置,其余的皆为回车键默认选择。>a
partition: [d]offset: [aaaaaaaaa]size: [ASDFGHJKL]FS type: [4.2BSD]mount point: [none]/home
Rounding size to bsize (w sectors): zzzzzzzz>
size
一栏里我们并未输入数值,而是直接回车,意味着上步余下的全部容量都给了该分区,即 /home
分区。q
确认。>q