初期の起動状態をシリアルコンソールで見ると、SWAPで faild のエラーが出るようです。 (出ないで正常にSWAP領域が構築される場合もあります。)
途中からですがこんな感じです。

INIT: version 2.86 booting
Activating swap...Unable to find swap-space signature
failed.
この対策もネット上には載っています。

[kurobox:~# free
      total    used   free   shared  buffers   cached
Mem: 126384 123992 2392 0 100888 10120
-/+ buffers/cache: 12984 113400
Swap:      0     0     0

kurobox:~# mkswap /dev/sda3
Adding 136544k swap on /dev/sda3. Priority:-1 extents:1
kurobox:~# swapon -a
kurobox:~# free
       total     used     free   shared   buffers   cached
Mem:   126384   124052     2332     0    100904   10120
-/+ buffers/cache:   13028   113356
Swap:   136544      0    136544
kurobox:~#


上記のように、mkswap /dev/sda3とswapon -a を行えば良いようです。
この作業で電源LEDが点滅状態になるようですが、電源をいったん切って再起動すると大丈夫のようです。


現状では電源の切断は、halt や shutdown -h now のコマンドでも行う事はできません。
勿論、電源スイッチを長押ししての切断は玄箱特有のものですから無理です。
起動しているのを、ACコンセントを抜いて切断するのも精神衛生上良くありませんからコマンドで切断できるようにします。

[kurobox:~# vi /etc/default/halt
# Default behaviour of shutdown -h / halt. Set to "halt" or "poweroff".
HALT=halt

HALT=poweroff を HALT=halt に書き換えるだけです。
これで、halt 又はshutdown -h nowで電源が切れるようになります。
こんなに簡単に出来るとは露とも知らずに、私は何回コンセントを引き抜いたか知れません。

次に誰でも行う作業は,update と upgrade でしょう。
不都合が出る場合もありますが、その時はその時です。

[kurobox:~# apt-get update
Get:1 http://security.debian.org etch/updates Release.gpg [189B]
Get:2 http://security.debian.org etch/updates Release [37.6kB]
Ign http://security.debian.org etch/updates/main Packages/DiffIndex
Ign http://security.debian.org etch/updates/contrib Packages/DiffIndex
Ign http://security.debian.org etch/updates/non-free Packages/DiffIndex
Get:3 http://security.debian.org etch/updates/main Packages [253kB]
Hit http://security.debian.org etch/updates/contrib Packages
Hit http://security.debian.org etch/updates/non-free Packages
Get:4 http://ftp.jp.debian.org etch Release.gpg [378B]
Get:5 http://ftp.jp.debian.org etch Release [58.2kB]
Ign http://ftp.jp.debian.org etch/main Packages/DiffIndex
Ign http://ftp.jp.debian.org etch/contrib Packages/DiffIndex
Ign http://ftp.jp.debian.org etch/non-free Packages/DiffIndex
Get:6 http://ftp.jp.debian.org etch/main Packages [5451kB]
Get:7 http://ftp.jp.debian.org etch/contrib Packages [53.6kB]
Get:8 http://ftp.jp.debian.org etch/non-free Packages [71.0kB]
Fetched 5925kB in 38s (156kB/s)
Reading package lists... Done
kurobox:~#


[kurobox:~# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
The following packages will be upgraded:
aptitude bsdutils debconf debconf-i18n debian-archive-keyring e2fslibs
e2fsprogs findutils gnupg gpgv libblkid1 libc6 libcomerr2 libdb4.2 libkrb53
libnewt0.52 libpam-modules libpam-runtime libpam0g libss2 libssl0.9.8
libuuid1 login lsb-base man-db mount nano openbsd-inetd passwd perl-base tar
tzdata update-inetd util-linux vim-common vim-tiny whiptail
37 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 18.8MB of archives.
After unpacking 164kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://ftp.jp.debian.org etch/main tzdata 2007j-1etch1 [690kB]
Get:2 http://security.debian.org etch/updates/main bsdutils 1:2.12r-19etch1 [68.5kB]
Get:3 http://ftp.jp.debian.org etch/main libc6 2.3.6.ds1-13etch4 [3940kB]
Get:4 http://security.debian.org etch/updates/main mount 2.12r-19etch1 [151kB]
Get:5 http://security.debian.org etch/updates/main tar 1.16-2etch1 [671kB]
Get:6 http://security.debian.org etch/updates/main util-linux 2.12r-19etch1 [389kB]
Get:7 http://ftp.jp.debian.org etch/main e2fslibs 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 [90.4kB]
Get:8 http://ftp.jp.debian.org etch/main e2fsprogs 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 [598kB]
Get:9 http://ftp.jp.debian.org etch/main findutils 4.2.28-1etch1 [343kB]
Get:10 http://ftp.jp.debian.org etch/main libpam-runtime 0.79-5 [64.4kB]
Get:11 http://ftp.jp.debian.org etch/main libpam0g 0.79-5 [78.8kB]
Get:12 http://ftp.jp.debian.org etch/main libpam-modules 0.79-5 [184kB]
Get:13 http://ftp.jp.debian.org etch/main login 1:4.0.18.1-7 [796kB]
Get:14 http://ftp.jp.debian.org etch/main perl-base 5.8.8-7etch1 [760kB]
Get:15 http://ftp.jp.debian.org etch/main lsb-base 3.1-23.2etch1 [16.6kB]
Get:16 http://ftp.jp.debian.org etch/main debconf-i18n 1.5.11etch1 [151kB]
Get:17 http://ftp.jp.debian.org etch/main debconf 1.5.11etch1 [146kB]
Get:18 http://ftp.jp.debian.org etch/main gpgv 1.4.6-2 [151kB]
Get:19 http://ftp.jp.debian.org etch/main gnupg 1.4.6-2 [1835kB]
Get:20 http://ftp.jp.debian.org etch/main debian-archive-keyring 2007.07.31~etch1 [9318B]
Get:21 http://ftp.jp.debian.org etch/main libblkid1 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 [42.7kB]
Get:22 http://ftp.jp.debian.org etch/main libcomerr2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 [31.7kB]
Get:23 http://ftp.jp.debian.org etch/main libss2 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 [37.0kB]
Get:24 http://ftp.jp.debian.org etch/main libuuid1 1.39+1.40-WIP-2006.11.14+dfsg-2etch1 [35.0kB]
Get:25 http://ftp.jp.debian.org etch/main aptitude 0.4.4-4 [3071kB]
Get:26 http://ftp.jp.debian.org etch/main libdb4.2 4.2.52+dfsg-2 [377kB]
Get:27 http://ftp.jp.debian.org etch/main libnewt0.52 0.52.2-10 [63.1kB]
Get:28 http://ftp.jp.debian.org etch/main libssl0.9.8 0.9.8c-4etch1 [805kB]
Get:29 http://ftp.jp.debian.org etch/main man-db 2.4.3-6 [705kB]
Get:30 http://ftp.jp.debian.org etch/main nano 2.0.2-1etch1 [549kB]
Get:31 http://ftp.jp.debian.org etch/main update-inetd 4.27-0.5 [10.8kB]
Get:32 http://ftp.jp.debian.org etch/main openbsd-inetd 0.20050402-6 [34.6kB]
Get:33 http://ftp.jp.debian.org etch/main vim-tiny 1:7.0-122+1etch3 [548kB]
Get:34 http://ftp.jp.debian.org etch/main vim-common 1:7.0-122+1etch3 [206kB]
Get:35 http://ftp.jp.debian.org etch/main whiptail 0.52.2-10 [34.4kB]
Get:36 http://ftp.jp.debian.org etch/main passwd 1:4.0.18.1-7 [776kB]
Get:37 http://ftp.jp.debian.org etch/main libkrb53 1.4.4-7etch4 [390kB]
Fetched 18.8MB in 1m14s (255kB/s)

途中省略

lqqqqqqqqqqqqqqqqqqqqqqqqu Configuring libssl0.9.8 tqqqqqqqqqqqqqqqqqqqqqqqqk
x x
x Security holes were fixed with this release. Services may not use these x
x fixes until they are restarted. Note: restarting sshd should not affect x
x any existing connections. x
x x
x Following is a list of detected services that need to be restarted. x
x Please correct the list, if you think it is incorrect. The services x
x names must be identical to the script names in /etc/init.d and must be x
x separated by spaces. If you clear the list, no services will be x
x restarted. x
x x
x If other services begin to fail mysteriously after this upgrade, it may x
x be necessary to restart them too. We strongly recommend you to reboot x
x your machine to avoid the SSL related trouble. x
x x
x <Ok> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

Package configuration

lqqqqqqqqqqqqqqqqqqqqqqqu Configuring libssl0.9.8 tqqqqqqqqqqqqqqqqqqqqqqqk
x Which services should be restarted to make them use the new libraries? x
x x
x ssh____________________________________________________________________ x
x x
x <Ok> x
x x
mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

選択画面のカーソルの移動はTABキーで行います。

Restarting services possibly affected by the upgrade:
ssh: stopping...starting...done.

Services restarted successfully.

Setting up man-db (2.4.3-6) ...
Building database of manual pages in the background.

Setting up update-inetd (4.27-0.5) ...

Setting up openbsd-inetd (0.20050402-6) ...
Stopping internet superserver: inetd.
Not starting internet superserver: no services enabled.

kurobox:~#


無事に終了したようです。

[戻る] [TOP] [次へ]