3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

grub rescue になった時の対策

Posted at

grub rescue

ブート直後に次のようになりました。

grub rescue>

ls, set などを使って、コマンドが使えることを確認します。

grub rescue>ls
grub rescue>set

insmod が使えることを確認します。

insmod (hd0,msdos1)/boot/grub/i386-pc/echo.mod
echo Hello

起動するために次のコマンドを実行しました。

insmod (hd0,msdos1)/boot/grub/i386-pc/normal.mod
error: symbol 'grub_disk_get_size' not found

解決方法が分からずギブアップしました。

usb boot

USB でブートしました。

grub-install が使えることを確認

# which grub-install

パーティションをマウント

# mkdir /mnt/sda1
# mount /dev/sda1 /mnt/sda1

grub を修復

# grub-install --boot-directory=/mnt/sda1/boot /dev/sda

ディスクで再起動して、問題の解決を確認

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?