出于测试目的,我安装了Natty。在安装过程中,我选择将它安装在我的10.10“安全”安装旁边。
这个安装似乎仍然存在,但是我不能再从GRUB引导它了。它根本没有显示出来。不过,引导纳蒂很有魅力。
我如何使它再次出现,以便我可以启动安装?
sudo update-grub输出
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.38-1-generic
Found initrd image: /boot/initrd.img-2.6.38-1-generic
Found linux image: /boot/vmlinuz-2.6.37-12-generic
Found initrd image: /boot/initrd.img-2.6.37-12-generic
Found memtest86+ image: /boot/memtest86+.bin
done发布于 2011-02-02 18:00:52
就连我也有同样的问题。你知道我是怎么修好的吗?是的,一种痛苦的方法-用手。
让我来解释一下我是怎么做到的。我需要将这个条目添加到/boot/grub/grub.cfg中
在继续之前先备份一下文件
menuentry 'Ubuntu, with Linux 2.6.35-25-generic' --class ubuntu --class gnu-linux --> class gnu --class os {
recordfail
insmod part_msdos
insmod reiserfs
set root='(hd0,msdos7)'
search --no-floppy --fs-uuid --set ada5fcfd-84b7-4ffa-9c52-db45d17518a7
linux /boot/vmlinuz-2.6.35-25-generic root=UUID=ada5fcfd-84b7-4ffa-9c52-db45d17518a7 ro quiet splash
initrd /boot/initrd.img-2.6.35-25-generic
}菜单项名称可以是'Ubuntu, with Linux 2.6.35-25-generic'或您选择的任何名称。
将set root='(hd0,msdos7)'更改为set root='(hd0,msdosx)',x表示驱动器的分区no
insmod reiserfs可以更改为insmod ext4或您选择的文件系统(信息来自我刚才搜索到的链接)。因为我的所有/参数都是reiserfs,所以我不需要改变这一点。
最后两行中的ada5fcfd-84b7-4ffa-9c52-db45d17518a7可以被分区UUID替换。可以通过运行以下命令获得分区UUID
ls -l /dev/disk/by-uuid
/boot/vmlinuz-2.6.35-25-generic是安装ubuntu的分区中的/boot文件夹中的一个文件。你的可以是一个不同的版本号。文件应该以vmlinuz开头。
就像/boot/vmlinuz-2.6.35-25-generic一样,/boot/initrd.img-2.6.35-25-generic也是如此
在启动并选择此选项后,我发现出现了一个错误。离开它几秒钟,使它继续,我现在键入从安装条目,我添加了grub列表。
脚注: GRUB2仍然是个谜。有更简单的配置文件
发布于 2011-02-02 15:22:32
您是否尝试过运行"sudo update-grub“来查看它是否检测到了另一个系统?
https://askubuntu.com/questions/24470
复制相似问题