
今天的更新(2011 年 11 月 22 日)之後,Ubuntu 選項從我的雙分割區上的 grub 11.10 中消失。
fdisk -l 的一些內容:
Device Boot System
/dev/sda1 * HPFS/NTFS/exFAT
/dev/sda2 Extended
/dev/sda5 Linux
/dev/sda6 Linux swap / Solaris
Device Boot ID System
/dev/sdb1 * c W95 FAT32 (LBA)
我也運行了這個:
grub-probe -t device /boot/grub
查看 grub 出現此錯誤的位置:
grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
也做了這個:
sudo update-grub
得到相同的錯誤:/usr/sbin/grub-probe:錯誤:找不到/的裝置(是否安裝了/dev?)。
我也嘗試啟動修復 Gui,但它只顯示 MBR 選項,沒有 grub。當我打開計算機時,我得到:
No such file:
grub rescue>
任何幫助將非常感激。
編輯:我還安裝了linux分割區:
sudo mount /dev/sda5 /mnt
mount: /dev/sda5 already mounted or /mnt busy
mount: according to mtab, /dev/sda5 is already mounted on /mnt
並運行上述命令並得到與上面相同的錯誤。
也依照tohuwawohu的指示做了:
umount /mnt
sudo fsck -p /dev/sda5
fsck from util-linux 2.19.1
/dev/sda5: clean,
再次感謝。任何幫助都是極好的。
答案1
也許是啟動修復工具會有幫助(另請參閱這個答案)。您可以使用以下命令將其安裝在即時系統中:
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update && sudo apt-get install -y 啟動修復 && 啟動修復
這是一些訊息如何進入 grub 救援模式。