このブログを検索

2012/08/17

Fedora14再起動が出来ない場合の対処

  • reboot
  • shutdown -r now
  • GUIによる再起動
上記の手法で再起動しても、正常に再起動してくれず、以下のメッセージが表示され固まる.(シャットダウンは正常に行なわれる)
[ xxx.xxxxx ] Restarting sytem.
検索してみると、下記ファイルのカーネルの末尾にrebootオプションを追加してあげれば解決との事.
# vim /etc/grub.conf
reboot=pci
上記のようにカーネルパラメータを追加した状態でリブートしてあげると、再起動で固まる事はなくなった.
ちなみに、カーネルパラメータが追加された状態で起動されているか確認するか確認するには以下のコマンドで確認できる.
cat /proc/cmdline
他のカーネルパラメータが気になり、検索してみると沢山のパラメータが用意されているようだ.
Kernel Parameters 
http://www.kernel.org/doc/Documentation/kernel-parameters.txt
そもそも、なぜrebootオプションにpciを付与するとリブートできるようになったのだろうか?調べた結果「port CF9」と「PCI reset registar」という言葉が浮上してきたが、今日はここまでにしよう。

※ reboot.cの中身を見てみるとパラメータの書き方は「reboot=p」でも問題ないようだ.
 /* reboot=b[ios] | s[mp] | t[riple] | k[bd] | e[fi] [, [w]arm | [c]old] | p[ci]    warm   Don't set the cold reboot flag    cold   Set the cold reboot flag    bios   Reboot by jumping through the BIOS (only for X86_32)    smp    Reboot by executing reset on BSP or other CPU (only for X86_32)    triple Force a triple fault (init)    kbd    Use the keyboard controller. cold reset (default)    acpi   Use the RESET_REG in the FADT    efi    Use efi reset_system runtime service    pci    Use the so-called "PCI reset register", CF9    force  Avoid anything that could hang. */
参考:
During shutdown or reboot system will hang.
http://www.novell.com/support/kb/doc.php?id=7009779
HOWTO: Fix Linux hang/freeze during reboots and restarts{
http://linux.koolsolutions.com/2009/08/04/howto-fix-linux-hangfreeze-during-reboots-and-restarts/




0 件のコメント:

コメントを投稿