安装 OpenBSD 3.9 (by cd39.iso) 的流水帐记录
关键词:
OpenBSD BSD
作者:辛亚平
日期:2006年5月14日
erase ^?, weras ^W, Kill ^U, intr ^C, status ^T
(I)nstall, (U)pgrade or (S)hell? I
Welcome to the OpenBSD/i386 3.9 install program.
This program will help you install OpenBSD in a simple and rational way. At any prompt except password prompts you can run a shell command by typing '!foo', or escape to a shell by typing '!'. Default answers are shown in []'s and are selected by pressing RETURN. At any time you can exit this program by pressing Control-C and then RETURN, but quitting during an install can leave your system in an inconsistent state.
Terminal type? [vt220] <RETURN>
kbd(8) mapping? ('L' for list) [none] <RETURN>
IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this program can cause SIGNIFICATION data lose.
It is often helpful to have the installation notes handy. For complex disk configurations, releavant disk hardware manuals and a calculator are useful.
Proceed with install? [no] y
Cool! Let's get to it.
You will now initialize the disk(s) that OpenBSD will use. To enable all available security features you should configure the disk(s) to allow the creation of separate filesystem for /, /tmp, /var, /usr, and /home.
Available disks are: wd0.
Which one is the boot disk? (or 'done') [wd0] <RETURN>
Do you want to use *all* of wd0 for OpenBSD? [no] y
Putting all of wd0 into an active OpenBSD MBR partition (type 'A6')...done.
You will now create an OpenBSD disklabel inside the OpenBSD MBR partition. The disklabel defines how OpenBSD splits up the MBR partition into OpenBSD partitions in which filesystems and swap space are created.
The offsets used in the disklabel are ABSOLUTE, i.e, relative to the start of the disk, NOT the start of the OpenBSD MBR partition.
# Inside MBR partition 3: type A6 start 63 size 50443281
Treating sectors 63-50443344 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.
Initial label editor (enter '?' for help at prompt)
> ?
Available commands:
p [unit] - print label.
M - show entire OpenBSD man page for disklabel.
e - edit drive parameters.
a [part] - add new partition.
b - set OpenBSD disk boundaries.
c [part] - change partition size.
d [part] - delete partition.
D - set label to default.
g [d|b] - Use [d]isk or ios geometry.
m [part] - modify existing partition.
n [part] - set the mount point for a partition.
r - recalculate free space.
u - undo last change.
s [path] - save label to file.
w - write label to disk.
q - quit and save changes.
x - exit without saving changes.
X - toggle expert mode.
z - zero out partition table.
Numeric parameters may use suffixes to indicate units:
'b' for bytes, 'c' for cylinders, 'k' for kilobytes, 'm' for megabytes,
'g' for gigabytes or no suffix for sectors (usually 512 bytes).
'%' for percent of total disk size, '&' for percent of free space.
Non-sector units will be rounded to the nearest cylinder.
Entering '?' at most prompts will give you (simple) context sensitive help.
> p
device: /dev/rwd0c
type: ESDI
disk: ad0s1
label:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 50043
total sectors: 50444101
free sectors: 0
rpm: 3600
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 1048576 63 4.2BSD 2048 16384 8
b: 2962576 1048639 swap
c: 50443281 63 unused 0 0
d: 3577856 4011215 4.2BSD 2048 16384 28552
e: 1048576 7589071 4.2BSD 2048 16384 8
f: 41805697 8637647 4.2BSD 2048 16384 28552
>
| Note: As can be seen above, OpenBSD was set up on this system before. We are going to deleteall ofthe old partitionsandcreatenewones. |
> d a
> d b
> d d
> d e
> d f
> p
device: /dev/rwd0c
type: ESDI
disk: ad0s1
label:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 50043
total sectors: 50444101
free sectors: 50443281
rpm: 3600
8 partitions:
# size offset fstype [fsize bsize cpg]
c: 50443281 63 unused 0 0
> a a
offset: [63] <RETURN>
size: [50443281] 128M
Rounding to nearest cylinder: 262017
FS type: [4.2BSD] <RETURN>
mount point: [none] /
> a b
offset: [262080] <RETURN>
size: [50181264] 2048M
Rounding to nearest cylinder: 4194288
FS type: [swap] <RETURN>
> a d
offset: [4456368] <RETURN>
size: [45986976] 1024M
Runding to nearest cylinder: 2097648
FS type: [4.2BSD] <RETURN>
mount point: [none] /tmp
> a e
offset: [6554016] <RETURN>
size: [43889328] 4096M
Rounding to nearest cylinder: 8388576
FS type: [4.2BSD] <RETURN>
mount point: [none] /var
> a f
offset: [14942592] <RETURN>
size: [35500752] 6144M
Rounding to nearest cylinder: 12582864
FS type: [4.2BSD] <RETURN>
mount point: [none] /home
> a h
offset: [27734112] <RETURN>
size: [22709232] <RETURN>
FS type: [4.2BSD] <RETURN>
mount point: [none] /usr
> w
> p
device: /dev/rwd0c
type: ESDI
disk: ad0s1
label:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 50043
total sectors: 50444101
free sectors: 0
rpm: 3600
8 partitions:
# size offset fstype [fsize bsize cpg]
a: 262017 63 4.2BSD 2048 16384 16 # /
b: 4194288 262080 swap
c: 50443281 63 unused 0 0
d: 2097648 4456368 4.2BSD 2048 16384 16 # /tmp
e: 8388576 6554016 4.2BSD 2048 16384 16 # /var
f: 12582864 14942592 4.2BSD 2048 16384 16 # /home
h: 22709232 27734112 4.2BSD 2048 16384 16 # /usr
> q
No label changes.
Mount point for wd0d (size=1048824k)? (or 'none' or 'done') [/tmp] /tmp
Mount point for wd0e (size=4194288k)? (or 'none' or 'done') [/var] /var
Mount point for wd0f (size=6291432k)? (or 'none' or 'done') [/home] /home
Mount point for wd0h (size=11354616k)? (or 'none' or 'done') [/usr] /usr
Mount point for wd0d (size=1048824k)? (or 'none' or 'done') [/tmp] done
No more disks to initialize.
OpenBSD filesystem:
wd0a /
wd0d /tmp
wd0e /var
wd0f /home
wd0h /usr
The next step *DESTROYS* all existing data on these partitions!
Are you really sure that you're ready to proceed? [no] y
/dev/rwd0a: 262017 sectors in 63 cylinders of 16 tracks, 63 sectors
127.9M in 1 cyl groups (260 c/g, 127.97MB/g, 16384 i/g)
/dev/rwd0d: 2097648 sectors in 2081 cylinders of 16 tracks, 63 sectors
1024.2M in 1 cyl groups (328 c/g, 161.44MB/g, 20608 i/g)
/dev/rwd0e: 8388576 sectors in 8322 cylinders of 16 tracks, 63 sectors
4096.0M in 1 cyl groups (260 c/g, 127.97MB/g, 20608 i/g)
/dev/rwd0f: 12582864 sectors in 12483 cylinders of 16 tracks, 63 sectors
6144.0M in 1 cyl groups (260 c/g, 127.97MB/g, 20608 i/g)
/dev/rwd0h: 22709232 sectors in 22529 cylinders of 16 tracks, 63 sectors
11088.5M in 69 cyl groups (328 c/g, 102.38MB/g, 13056 i/g)
/dev/wd0a on /mnt type ffs (rw, asynchronous, local, ctime=Sun May 14 08:22:36 2006)
/dev/wd0f on /mnt/home type ffs (rw, asynchronous, local, ctime=Sun May 14 08:22:36 2006)
/dev/wd0d on /mnt/tmp type ffs (rw, asynchronous, local, ctime=Sun May 14 08:22:36 2006)
/dev/wd0h on /mnt/usr type ffs (rw, asynchronous, local, ctime=Sun May 14 08:22:36 2006)
/dev/wd0e on /mnt/var type ffs (rw, asynchronous, local, ctime=Sun May 14 08:22:36 2006)
System hostname? (short form, e.g. 'foo') Jessie
Configure the network? [yes] <RETURN>
Available interfaces are: rl0.
Which one do you wish to initialize? (or 'done') [rl0] <RETURN>
Symbolic (host) name for rl0? [Jessie] <RETURN>
The default media for rl0 are currently
media: Ethernet autoselect
Do you want to change the media options? [no] <RETURN>
IPv4 address for rl0? (or 'none' or 'dhcp') dhcp
Issuing hostname-associated DHCP request for rl0.
DHCPDISCOVER on rl0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on rl0 to 255.255.255.255 port 67 interval 1
DHCPDISCOVER on rl0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 192.168.2.1
DHCPREQUEST on rl0 to 255.255.255.255 port 67
DHCPACK from 192.168.2.1
bound to 192.168.2.101 --renewal in 3600 seconds.
IPv6 address for rl0? (or 'rtsol' or 'none') [none] <RETURN>
No more interfaces to initialize.
DNS domain in name? (e.g. 'bar.com') [domain] Jessie.localhost
DNS nameserver? (IP address or 'none') [202.106.46.51 202.106.0.20] <RETURN>
Use the nameserver now? [yes] <RETURN>
Default IPv4 route? (IPv4 address, 'dhcp' or 'none') [dhcp] <RETURN>
Edit hosts with ed? [no] <RETURN>
Do you want to do any manual network configuration? [no] <RETURN>
Password for root account? (will not echo)
Password for root account? (again)
Let's install the sets!
Location of sets? (cd disk ftp http or 'done') [cd] ftp
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none] <RETURN>
Display the list of known ftp servers? [yes] <RETURN>
......
......
Server? (IP address, hostname, list#, 'done' or '?') 192.168.2.2
Does the server support passive mode ftp? [yes] <RETURN>
Server directory? [pub/OpenBSD/3.9/i386] /openbsd/3.9/i386
Login? [anonymous] xinsoft
Password? (will not echo)
Select sets by entering a set name, a file name pattern or 'all'. De-select sets by prepending a '-' to the set name, file name pattern or 'all'. Selected sets are labelled '[X]'.
[X] bsd
[X] bsd.rd
[ ] bsd.mp
[X] base39.tgz
[X] etc39.tgz
[X] misc39.tgz
[X] comp39.tgz
[X] man39.tgz
[X] game39.tgz
[ ] xbase39.tgz
[ ] xetc39.tgz
[ ] xshare39.tgz
[ ] xfont39.tgz
[ ] xserver39.tgz
Set name? (or 'done') [bsd.mp] <RETURN>
Set name? (or 'done') [xbase39.mp] <RETURN>
Set name? (or 'done') [xetc39.mp] <RETURN>
Set name? (or 'done') [xshare39.mp] <RETURN>
Set name? (or 'done') [xfont39.mp] <RETURN>
Set name? (or 'done') [xserver39.mp] <RETURN>
Set name? (or 'done') [done] <RETURN>
Ready to install sets? [yes] <RETURN>
Getting bsd ...
100% |*********************| 5332 KB 00:01
Getting bsd.rd ...
100% |*********************| 5332 KB 00:01
Getting bsd.mp ...
100% |*********************| 5374 KB 00:01
Getting base39 ...
100% |*********************| 39523 KB 00:20
Getting etc39 ...
100% |*********************| 1126 KB 00:01
Getting misc39 ...
100% |*********************| 2222 KB 00:01
Getting comp39 ...
100% |*********************| 73524 KB 00:28
Getting man39 ...
100% |*********************| 7258 KB 00:05
Getting game39 ...
100% |*********************| 2538 KB 00:00
Getting xbase39 ...
100% |*********************| 10313 KB 00:04
Getting xetc39 ...
100% |*********************| 90404 00:00
Getting xshare39 ...
100% |*********************| 2029 KB 00:04
Getting xfont39 ...
100% |*********************| 32456 KB 00:10
Getting xserver39 ...
100% |*********************| 19410 KB 00:07
Location of sets? (cd disk ftp http or 'done') [done] <RETURN>
Start sshd(8) by deafult? [yes] <RETURN>
Start ntpd(8) by deafult? [no] <RETURN>
Do you expect to run the X Window System? [yes] <RETURN>
Change the default console to com? [no] <RETURN>
Saving configuration files...done.
Generating initial host.random file...done.
What timezone are you in? ('?' for list) [Canada/Mountain] Asia/
What sub-timezone if 'Asia/' are you in? ('?' for list) Chongqing
Setting local timezone to 'Asia//Chongqing'...done.
Making all device nodes...done.
Installing boot block...
/install[258]: cannot create /mnt/boot: Is a directory
boot: /mnt/boot
proto: /usr/mdec/biosboot
devie: /dev/rwd0c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
/mnt/boot is 1 blocks x 16384 bytes
fs block shift 2; part of offset 27525456; inode block 24, ofset 808
using MBR partition 3: type 166 (0xa6) offset 63 (0x3f)
done.
CONGRATULATIONS! Your OpenBSD install has been successfully completed!
To boot the new system, enter halt at the command prompt. Once the system has halted, reset the machine and boot from the disk.
# halt
Syncing disks...done
The operating system has halted.
Please press any key to reboot.