logo
code:Haemophilus influenzae

ここに書かれていることは無保証です。同じことを行って問題が発生しても、 龍義は責任をとりません。

2006年1月29日

戻る

OpenBSD 3.8 へアップグレード

boot cd の作成をして、アップグレード。 cd からの理由は、フロッピーディスク
ドライブが付いていない PC という理由から。その後はネットワークを使って
アップグレードもできたけど、 CD の方が速度が早そうなので。早速、作成した
CD-ROM を入れて、マシンの起動。


erase ^?, werase ^W, kill ^U, intr ^C, status ^I
(I)nstall, (U)pgrade or (S)hell? u

Welcome to the OpenBSD/i386 3.8 upgrade program.

This program will help you upgrade 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 upgrade can leave
your system in an inconsistent state.

Terminal type? [vt220] RETURN
kbd(8) mapping? ('?' for list) [none] RETURN

IS YOUR DATA BACKED UP? As with anything that modifies disk contents, this
program can cause SIGNIFICANT data loss.

NOTE: once your system has been upgraded, you must manually merge any changes
to files in the 'etc' set into the files already on your system.

Proceed with upgrade? [no] yes
Cool! Let's get to it.
Available disks are: wd0.
Which one is the root disk? (or 'done') [wd0] RETURN
Root filesystem? [wd0a] RETURN
Checking root filesystem (fsck -fp /dev/wd0a) ... OK.
Mounting root filesystem...done.
Enable network using configuration stored on root filesystem? [yes] RETURN

〜snip〜

Resolver enabled.
Do you want to do any manual network configuration? [no] RETURN

The fstab is configured as follows:

/dev/wd0a / ffs rw 1 1
/dev/wd0g /home ffs rw,nodev,nosuid 1 2
/dev/wd0d /tmp ffs rw,nodev,nosuid 1 2
/dev/wd0f /usr ffs rw,nodev 1 2
/dev/wd0e /var ffs rw,nodev,nosuid 1 2

For the upgrade, filesystems in the fstab will be automatically mounted if the
'noauto' option is absent, and /sbin/mount_<fstype> is found, and the fstype is
not nfs. Non-ffs filesystems will be mounted read-only.

You can edit the fstab now, before it is used, but the edited fstab will only
be used during the upgrade. It will not be copied back to disk.
Edit fstab with ed? [no] RETURN
Checking non-root filesystems...
fsck -p /dev/wd0g...OK.
fsck -p /dev/wd0d...OK.
fsck -p /dev/wd0f...OK.
fsck -p /dev/wd0e...OK.
...done.
/dev/wd0a on /mnt type ffs (rw, local, ctime=Sun Jan 29 11:42:01 2006)
/dev/wd0g on /mnt/home type ffs (rw, local, nodev, nosuid, ctime=Sun Jan 29 11:
42:01 2006)
/dev/wd0d on /mnt/tmp type ffs (rw, local, nodev, nosuid, ctime=Sun Jan 29 11:4
2:01 2006)
/dev/wd0f on /mnt/usr type ffs (rw, local, nodev, ctime=Sun Jan 29 11:42:01 2006
)
/dev/wd0e on /mnt/var type ffs (rw, local, nodev, nosuid, ctime=Sun Jan 29 11:4
2:01 2006)

Let's upgrade the sets!
Location of sets (cd disk ftp http or 'done') [cd] RETURN
Available CD-ROMs are: cd0.
Which one contains the upgrade media? (or 'done') [cd0] RETURN
Pathname to the sets? (or 'done') [3.8/i386] i386

Select sets bu entering a set name, a file name pattern or 'all'. Be-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] base38.tgz
        [X] misc38.tgz
        [X] comp38.tgz
        [X] man38.tgz
        [X] game38.tgz
        [ ] xbase38.tgz
        [ ] xshare38.tgz
        [ ] xfont38.tgz
        [ ] xserv38.tgz

Set name? (or 'done') [bsd.mp] done
Ready to upgrade sets? [yes] RETURN
Getting bsd ...
100% |**************************************************|  5157 KB    00:05
Getting bsd.rd ...
100% |**************************************************|  4549 KB    00:04
Getting base38.tgz ...
100% |**************************************************| 35928 KB    00:41
Getting misc38.tgz ...
100% |**************************************************|  2222 KB    00:02
Getting comp38.tgz ...
100% |**************************************************| 20522 KB    00:29
Getting man38.tgz ...
100% |**************************************************|  7234 KB    00:09
Getting game38.tgz ...
100% |**************************************************|  2538 KB    00:02
Location of sets? (cd disk ftp http ot 'done') [done] RETURN
Making all device nodes...done.
Installing boot block...
boot: /mnt/boot
proto: /usr/mdec/biosboot
device: /dev/rwd0c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
/mnt/boot is 3 blocks x 16384 bytes
fs block shift 2; part offset 53; inode block 24, offset 6312
using MBR partition 3: type 166 (0xa6) offset 63 (0x3f)
done.

CONGRATULATIONS! Your OpenBSD upgrade 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.
#

再起動して、無事にアップグレード完了。思ったよりも簡単に終わってしまった
感じである。

[toyota@naboo]% uname -a
OpenBSD naboo.tatsuyoshi.net 3.8 GENERIC#138 i386

良い感じになった。あとは…、 patch 当てないと。


by Tatsuyoshi
since 2003