Ubuntuのパーティションを削除した後、コンピュータを再起動したところ、プロンプトが表示されるだけでした。
grub rescue >
コマンド ls
は
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
一つ一つチェックしていきます。
ls (hd0,msdos5)/
ls (hd0,msdos1)/
しかし、正しいパーティションが見つかりません。
以下をお試しください。
grub rescue > ls
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1) (hd1) (hd1,msdos1)
grub rescue > ls (hd0,msdos1) # try to recognize which partition is this
grub rescue > ls (hd0,msdos2) # let's assume this is the linux partition
grub rescue > set root=(hd0,msdos2)
grub rescue > set prefix=(hd0,msdos2)/boot/grub # or wherever grub is installed
grub rescue > insmod normal # if this produced an error, reset root and prefix to something else ..
grub rescue > normal
恒久的な解決策としては、起動に成功した後に以下を実行してください。
sudo update-grub
sudo grub-install /dev/sdX
ここで、/dev/sdX
はブートドライブです。
UbuntuのライブCDまたはライブUSBでコンピュータを起動します。
その後、このリンクから「2nd option : install Boot-Repair in Ubuntu」のセクションに従ってください。