在把gentoo折腾挂第n次后,我在硬盘上装了一个ubuntu10.04,用于在gentoo挂掉后恢复gentoo。最近升级ubuntu到11.04后,ubuntu无法启动,而且覆盖了gentoo的grub。
光盘启动然后chroot到gentoo后,grub-install --no-floppy /dev/hda,提示:
/dev/sda does not have any corresponding BIOS drive
对其进行修复
grub-install --recheck /dev/sda
报告:
Could not find device for /boot: not found or not a block device
查阅了一下,发现是/etc/mtab被修改或者没有更新引起的,更新该文件:
cp /proc/mounts /etc/mtab
重新
grub-install --no-floppy /dev/hda
顺利通过。
在将Ubuntu升级至11.04后,由于Grub被覆盖导致无法启动Ubuntu,通过修复/etc/mtab文件并使用grub-install命令成功解决了Ubuntu无法启动的问题,并确保了Gentoo系统的恢复。
1万+

被折叠的 条评论
为什么被折叠?



