我想使用 RedHat 和 Ubuntu 在不同的分区中双启动我的笔记本电脑。我的硬盘包含以下分区:
/boot ==> redhat boot partition 300MB
/SWAP ===> 8GB
/ ===> UBUNTU ROOT
/ ===> RedHat Root.
/Sharing ==> to be shared between the two linux os.
我首先安装了没有 grub 选项的 RedHat,然后安装了 Ubuntu,并将 grub 安装在“/dev/sda”(MBR)中。我的问题是我无法启动 RedHat,我尝试了所有可用的工具来配置 grub,但都失败了。我在 Ubuntu 中将旧版 grub 更新为 Grub2。
以下是 ubuntu 的 grub 条目===>
#BEGIN /etc/grub.d/10_linux
menuentry 'Ubuntu, with Linux 2.6.32-38-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0275f7b6-ff36-42a2-9d89-03195b9de12a
linux /boot/vmlinuz-2.6.32-38-generic root=UUID=0275f7b6-ff36-42a2-9d89-03195b9de12a ro quiet splash
initrd /boot/initrd.img-2.6.32-38-generic
}
menuentry 'Ubuntu, with Linux 2.6.32-38-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0275f7b6-ff36-42a2-9d89-03195b9de12a
echo 'Loading Linux 2.6.32-38-generic ...'
linux /boot/vmlinuz-2.6.32-38-generic root=UUID=0275f7b6-ff36-42a2-9d89-03195b9de12a ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-38-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0275f7b6-ff36-42a2-9d89-03195b9de12a
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod ext2
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 0275f7b6-ff36-42a2-9d89-03195b9de12a
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
#RedHat Menu by pato
menuentry 'RedHat Enterprise 5.4' {
set root='(hd0,4)'
linux /boot/vmlinuz-2.6.18-164.el5 root=/dev/sda4
initrd /boot/initrd-2.6.18-164.el5.img
}
### END /etc/grub.d/40_custom ###
=====================end of ubuntu Grub.=================
请通过一步一步的指南来帮助安装两个 Linux 操作系统并配置 grub 实现双启动。