在我的电脑里有三个操作系统
首先我安装了Windows 7,然后我安装了Ubuntu 10.04
在上次我安装了redhat 5.1
NOW我知道一件事,因为我安装了红帽,然后由Ubuntu的GRUB安装将被redhat gr over覆盖….我知道,看到所有三个操作syetm在启动时,我必须进入/ boot / grub / cfg进入/启动/grub/menu.lst文件
现在问题就是这样
在以前的版本,这是非常容易与Ubuntu的GRUB文件玩,但现在这个文件被修改.. NOW我不知道是从Ubuntu的/grub/grub.cfg文件,以便我可以在红帽/ boot / grub / menu.lst文件
总之,我不能把grub.cfg文件的input到redhat menu.lst文件..你会帮我PLZ我想工作在这些三个EOS ..
Ubuntu最近发布的版本是grub2,它使用不同的语法来configurationgrub1的configuration文件(我相信这是redhat使用的)。
如果你看看ubuntu下的/boot/grub/grub.cfg文件,你应该find一个看起来像这样的部分
### BEGIN /etc/grub.d/10_linux ### menuentry 'Ubuntu, with Linux 2.6.32-21-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,3)' search --no-floppy --fs-uuid --set 5cf7c0d3-8b4d-428f-a54a-ea43ce486654 linux /boot/vmlinuz-2.6.32-21-generic root=UUID=5cf7c0d3-8b4d-428f-a54a-ea43ce486654 ro quiet splash initrd /boot/initrd.img-2.6.32-21-generic }
转换为以下menu.lst条目
title Ubuntu, with Linux 2.6.32-21-generic root (hd0,3) kernel /boot/vmlinuz-2.6.32-21-generic root=UUID=5cf7c0d3-8b4d-428f-a54a-ea43ce486654 ro quiet splash initrd /boot/initrd.img-2.6.32-21-generic
当然,您将需要根据您的configuration调整磁盘UUID和分区号。