链式加载 Grub2 时的 VirtualBox 错误

链式加载 Grub2 时的 VirtualBox 错误

关于这一点:如何在一张磁盘上安装带有加密 VG 的 Fedora&Ubuntu?

所以启动到 Ubuntu..然后我运行这个脚本:

#!/bin/bash

# show the bootlist of grub when booting pc
sed -i.backup 's/^GRUB_HIDDEN_TIMEOUT=/#GRUB_HIDDEN_TIMEOUT=/' /etc/default/grub
sed -i 's/^GRUB_TIMEOUT=10/GRUB_TIMEOUT=5/' /etc/default/grub
# update-grub # we will use this later too.. don't need it here

# add the "chainload grub" function
cp /etc/grub.d/40_custom /etc/grub.d/40_custom.backup
echo "#!/bin/sh
exec tail -n +3 \$0
menuentry 'FEDORA' {
    insmod chain
    set root=(hd0,3)
    chainloader +1
}" > /etc/grub.d/40_custom
chmod 755 /etc/grub.d/40_custom
update-grub

sync
sync
sync

好的,很好,没有错误消息..

我正在使用: VirtualBox-3.2-3.2.12_68302_fedora14-1.i686

现在我想重新启动 virtualbox 机器来测试整个事情..这是我选择后几秒钟得到的结果grub2 引导列表中的“FEDORA”:

图片主机 #1-图片主机 #2

伟大的! .. :(
其他事情:VBox.log;2011-04-17-15-23-37.048-VirtualBox-12365.log
谁能帮我?这个错误有解决方法吗?

谢谢你!

相关内容