久しぶりにgentooをアップデートしてみると約300近くのアップデートがあり愕然としましたが、1週間のコンパイルでどうにかアップデートが終了しました。
ほっときすぎましたのでカーネルもアップデートすることに。
まずは新しいカーネルがきているか確認してみます。
#ls -l /usr/src
現在のカーネルはlinux-2.6.28-gentoo-r5ですがlinux-2.6.29-gentoo-r5がきています。
幾度となく行っていますが覚えが悪いのでここから先は個人的な備忘録として手順を記載。
.configファイルをコピーする
#cd /usr/src/linux-2.6.29-gentoo-r5
#cp ../linux/.config ./
リンク張替え
#cd /usr/src
#ls -l linux
lrwxrwxrwx 1 root root 22 2009-04-26 08:42 linux -> linux-2.6.28-gentoo-r5
#rm linux
#ln -s linux-2.6.29-gentoo-r5 linux
#ln -l linux
lrwxrwxrwx 1 root root 22 2009-07-05 17:37 linux -> linux-2.6.29-gentoo-r5
カーネルコンパイルとインストール
#make && make modules_install
#cp arch/i386/boot/bzImage /boot/kernel-2.6.29-gentoo-r5
grub設定編集
#vi /boot/grub/menu.lst
以下を追加
title Gentoo Linux 2.6.29-r5 bootsplash
root (hd4,0)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/hdh3 video=vesafb:640×480-24@60,mttr:3,ywrap splash=silent,theme:livecd-2007.0 quiet console=tty1 acpi=force
initrd /boot/initrd-640×480_livecd-2007.0
nVidiaドライバのインストール
#emerge nvidia-drivers
カーネルモジュールの読み込み
#modprobe nvidia
#update-modules
これでカーネルアップデート完了!
