CentOS 6 が熱暴走後にログイン画面を表示しなくなった (kernel アップデートのせいかもしれないが・・・)。CUIのログイン画面に切り替えることすらできない。無限にCentOS 6 のログが表示され続ける状態。Xserver 回りのエラーか何かかと思い、
$ vi /var/log/Xorg.0.log
にてコマンド "/EE" を実行してエラー内容を確認。
(EE) NVIDIA: Failed to load the NVIDIA kernel module. Please chechk your ... 以下略
とある。ドライバ壊れたか?と思いドライバを再インストールすることに.
まず、kernel-devel と gcc がインストールされている必要がある。また、CentOS 6 ではrun relvel 3 で起動してもログイン画面までの間に標準ドライバ(nouveau)が起動する. nouveau がGPUのドライバを占拠しているせいで、nvidiaのドライバをインストールできない。したがって、こいつを無効にする必要もある
以下のファイルを編集する。ランレベルを5から3へ.
# emacs /etc/inittab
の一部を以下に。
d:3:initdefault:
GRUBの挙動を変更するため、以下のファイルを編集.
# /boot/grub/grub.conf
"kernel"から始まる行の末尾に
nouveau.modeset=0
を追加。
再起動後、青、水色、白が伸びてくる起動進捗が表示されたらnouveauが動いていない証拠。
ログインし、root 権限でドライバをインストール。
# wget URL # sh ./hogehoge.rum
いろいろEorrorとかwarning がでるが全部Accept, Yes, OK押した。
ERROR: File '/usr/lib64/xorg/modules/extensions/libglx.so' is not a symbolic link. WARNING: Your driver installation has been altered since it was initially installed; this may happen, for example, if you have since installed the NVIDIA driver through a mechanism other than nvidia-installer (such as your distribution's native package management system). nvidia-installer will attempt to uninstall as best it can. Please see the file '/var/log/nvidia-installer.log' for details. OK Would you like to run the nvidia-xconfig utility to automatically update your X configuration file so that the NVIDIA X driver will be used when you restart X? Any pre-existing X configuration file will be backed up. Yes No
最後に、ランレベルを3から5に直して再起動。
とりあえず、ログイン画面表示される様になったものの、画面サイズの設定がおかしい。 NVIDIA X Server Settingsから設定すればいいのか?
CPU温度がヤバくなったので、ここで終了。液冷式冷却器が壊れているんだよね・・・。Tchhshさんが今週にきて、ラジエーターを交換してくれる模様。