呃,现在重新弄了一次,写详细点。
XP和win7安装在一个阵列里(SCSI*3,分三个区),XP在第一个分区,WIN7在第三个分区。
拔下阵列卡,单独安装Ubuntu在80G硬盘上,已经确保单盘启动时可以进入Ubuntu。
现在插上阵列卡,设置阵列卡第一项启动,80G为第二项。
开机无疑是bootmgr引导。
在win7用bcdedit引导GRUB4DOS。重启可以再bootmgr看到添加的GRUB4DOS,可是不能进入Ubuntu,按Esc退到menu.lst菜单,选择自己添加的Ubuntu 9.10后也不进入,显示
menu.lst的内容是:kernel /boot//vmlinuz-2.6.31-14-generic root=UUID=443cbfd1-e925-4d86-8ef2-ab5e39b0c866 ro quiet splash
file non found
设置安装Ubuntu的硬盘第一项启动,进入/boot/grub复制grub.cfg出来,内容如下:debug off
hiddenmenu
default 0
timeout 0
fallback 1
title Ubuntu 9.10
root (hd1,0)
kernel /boot//vmlinuz-2.6.31-14-generic root=UUID=443cbfd1-e925-4d86-8ef2-ab5e39b0c866 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
quiet
title commandline
commandline
title reboot
reboot
title halt
halt
用wingrub看了/boot在(hd1,0)#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,3)
search --no-floppy --fs-uuid --set 443cbfd1-e925-4d86-8ef2-ab5e39b0c866
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 8a10b310-b776-40fa-a219-2cb01e1afc44
linux /vmlinuz-2.6.31-14-generic root=UUID=443cbfd1-e925-4d86-8ef2-ab5e39b0c866 ro quiet splash
initrd /initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set 8a10b310-b776-40fa-a219-2cb01e1afc44
linux /vmlinuz-2.6.31-14-generic root=UUID=443cbfd1-e925-4d86-8ef2-ab5e39b0c866 ro single
initrd /initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (loader) (on /dev/sdb1)" {
insmod fat
set root=(hd1,1)
search --no-floppy --fs-uuid --set dcc7-567f
drivemap -s (hd0) ${root}
chainloader +1
}
### 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.
### END /etc/grub.d/40_custom ###
现在依旧不知道怎么引导Ubuntu。
咳,新手难免问题多多,麻烦大家帮帮忙,谢谢!
=================================================
用了ptptptptpt大的g2ldr搜索启动搞定的
代码: 全选
menuentry "Search and boot ubuntu 9.10 (/grub/core.img)" {
insmod ext2
insmod reiserfs
insmod xfs
insmod jfs
search --set -f /grub/core.img
multiboot /grub/core.img
}