Arch LinuxでKernel再構築

カーネルパラメータによってですが、ABSでコンパイルすると、
header周りでイランもんをmodulesにコピーしようとしてエラーこく時があります。
PKGBUILDを見るとわかりますが、もう修正する気も起きません。。。
DVDやらMedia周りが特に。。。。

もう、Arch LinuxはABSでKernelは再構築しないほうがよさそうです。。。
公式もなんか中途半端な説明だし。。

今回はABSを使わない、通常のカーネル再構築をしてみます。
新Kernel・・・3.2.9-custom「EXTRAVERSION=で変更」

# uname -r
3.2.9-custom

となります。

続きを読む

Arch Linuxでopen-vm-toolsエラー

Arch LinuxのKernelを上げると、
open-vm-tools、open-vm-tools-modulesが
エラーで起動しなくなってしまいました。

Kernel・・・3.2.8-1-ARCH
open-vm-tools・・・2011.12.20-2
open-vm-tools-modules・・・2011.12.20-3

#uname -r
3.2.8-1-ARCH
#pacman -Ss open-vm-tools
community/open-vm-tools 2011.12.20-2 [installed]
    The Open Virtual Machine Tools (open-vm-tools) are the open source implementation of VMware
    Tools.
community/open-vm-tools-modules 2011.12.20-3 [installed]
    kernel modules for the open source implementation of VMware Tools

とりあえず、再インストールして起動してみます。

# packman -Syu open-vm-tools open-vm-tools-modules
#
# /etc/rc.d/open-vm-tools restart
:: Stopping Open Virtual Machine Tools [FAIL] 
:: Starting Open Virtual Machine Tools [BUSY] 
ERROR: could not insert 'vmsync': Exec format error
                                       [FAIL] 
#
# dmesg
[  130.338033] vmblock: disagrees about version of symbol module_layout
[ 2141.388555] vmci: disagrees about version of symbol module_layout
[ 2225.845851] vmsync: disagrees about version of symbol module_layout
[ 2526.868850] vmblock: disagrees about version of symbol module_layout

モジュールか起動スクリプトがオカシイみたいですね。

モジュール単体を読み込んでみます。

# insmod /lib/modules/extramodules-3.2-ARCH/vmhgfs.ko.gz 
  Error: could not insert module vmhgfs.ko.gz: Unknown symbol in module
#
# insmod /lib/modules/extramodules-3.2-ARCH/vmci.ko.gz 
  Error: could not insert module vmci.ko.gz: Unknown symbol in module
#
# insmod /lib/modules/extramodules-3.2-ARCH/vmsync.ko.gz 
  Error: could not insert module vmsync.ko.gz: Unknown symbol in module

ダメポですwどうやら、Open-vm-tools-modulesの再コンパイルが必要?
面倒なのでABSで再コンパイルします。

続きを読む

dpkg -lの[rc]について

Debian/Ubuntuでパッケージを削除したものの、
設定ファイルだけ残る場合があります。

# apt-get install w3m
# dpkg -l |grep w3m
ii  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

インストールされているのがわかります。

1)パッケージを削除してみる

dpkg -r

# dpkg -r w3m
# dpkg -l |grep w3m
rc  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

apt-get remove

# apt-get remove w3m
# dpkg -l |grep w3m
rc  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

aptitude remove

# aptitude remove w3m
# dpkg -l |grep w3m
rc  w3m 0.5.2-2.1ubuntu1.2 WWW browsable pager with excellent tables/frames support

どのパッケージ管理ソフトで削除しても「rc」がついています。
「r」・・・パッケージは削除済み
「c」・・・設定ファイルは残っている

設定ファイルが残っていないと
パッケージを再インストール等する場合に
いちいち設定ファイルを一から書き直しになってしまいます。。。

dpk、aptitude、apt-get共に
パッケージ削除の際「remove」の代わりに「purge」オプションを付加すると
設定ファイルも消してくれます。

続きを読む