内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
01_linux
»
99_その他
»
GRUBで起動しない
トレース:
01_linux:99_その他:grubで起動しない
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== GRUBで起動しない ====== ===== だいたいはこれで起動する。 ===== CDロムから起動して <box 50% left round orange> boot: linux rescue </box> <box 50% left round orange> # chroot /mnt/sysimage \\ # grub-install /dev/sda </box> ==== chrootができない場合 ==== <box 50% left round orange> # mkdir /mnt/sysimage \\ # mount /dev/sda1 /mnt/sysimage \\ # ln -s /usr/sbin/grub /usr/bin/ \\ # grub-istall rootdirectory=/mnt/sysimage /dev/sda </box> ===== たまにgrub-installできない場合がある ===== たまにですが、どうやってもgrub-installできない場合がある\\ その時は、grubコマンドで直接grubをセットアップすると治った事があります。 <box 50% left round orange> # chroot /mnt/sysimage/ \\ # grub-install /dev/sda \\ /dev/md0 does not have any corresponding BIOS drive \\ # grub-install --recheck /dev/sda \\ /dev/md0 does not have any corresponding BIOS drive \\ # </box> <box 50% left round orange> # grub \\ grub> root (hd0,0) \\ root (hd0,0) \\ Filesystem type is ext2fs, partition type 0xfd \\ grub> setup (hd0) \\ setup (hd0) \\ Checking if "/boot/grub/stage1" exists... no \\ Checking if "/grub/stage1" exists... yes \\ Checking if "/grub/stage2" exists... yes \\ Checking if "/grub/e2fs_stage1_5" exists... yes \\ Running "embed /grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. \\ succeeded \\ Running "install /grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/grub/stage2 /grub/grub.conf"... succeeded \\ Done. \\ grub> quit \\ # reboot \\ </box> ===== エラー ===== たまにgrub-installしても下記のエラーで失敗することがある。 does not have any corresponding BIOS drive ==== 対応方法 ==== 下記でデバイスが違っている場合があるので修正するとgrub-installできます。 # cat /boot/grub/device.map # this device map was generated by anaconda (hd0) /dev/xvda {{tag>Grub}}
01_linux/99_その他/grubで起動しない.txt
· 最終更新: 2020/04/03 03:06 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ