Board logo

标题: 如何引导ubuntu9.10 [打印本页]

作者: cci163     时间: 2010-3-9 16:58    标题: 如何引导ubuntu9.10

系统有xp 原先的ubuntu8.04升级出了毛病.想重装一个ubuntu 在网上找了一下..找到了ubuntu-9.10-alternate-i386.iso 用grub4dos安装成功.但重启能进ubuntu9.10进不了xp 我日常的工作都在xp下进行. 只好在dos下执行fdisk/mbr 找回了xp 但是ubuntu进不了.不知道在grub4dos下ubuntu9.10的启动代码是什么.能前的ubuntu8.04是用grub4dos引导的.有哪位大侠有代码给发一下.有办法也行.谢谢.


# 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,7)
search --no-floppy --fs-uuid --set 8e76bd24-037a-4036-989e-a2d32e570736
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,7)
search --no-floppy --fs-uuid --set 8e76bd24-037a-4036-989e-a2d32e570736
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8e76bd24-037a-4036-989e-a2d32e570736 ro quiet splash
initrd /boot/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,7)
search --no-floppy --fs-uuid --set 8e76bd24-037a-4036-989e-a2d32e570736
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=8e76bd24-037a-4036-989e-a2d32e570736 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ ${timeout} != -1 ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###
作者: kirov     时间: 2010-3-9 17:06
这回的问题,个人理解为三个神打架了。

一个NT的引导,一个GRUB,一个ubuntu……

重点是你是想用GRUB来引导其他两个系统么?

去研究下。顺便希望知道的朋友也来给个法子……
作者: simonszehh     时间: 2010-3-25 15:14
在 Grub4DOS 加上 Linux Ubuntu 9.1 的選項

title Start LINUX Ubuntu 9.10
find --set-root /grub/core.img
kernel /grub/core.img
boot
作者: mi53     时间: 2010-5-6 00:20
root=(hda,6)
kernel (hda,6)/boot/vmlinuz-2.6.31-14-generic root=UUID=8e76bd24-037a-4036-989e-a2d32e570736 ro single
initrd (hda,6)/boot/initrd.img-2.6.31-14-generic
作者: ZULGMG     时间: 2010-5-18 08:19
先更新您的GRUB4DOS……

# title 启动 Ubuntu 9.10 Linux 2.6.31-14 (有BOOT独立分区)
# find --set-root --ignore-floppies --ignore-cd /grub/core.img
# kernel /grub/core.img
# boot

# title 启动 Ubuntu 9.10 Linux 2.6.31-14 (无BOOT独立分区)
# find --set-root --ignore-floppies --ignore-cd /boot/grub/core.img
# kernel /boot/grub/core.img
# boot

# 如果系统文件为 Ext4 格式您可以试试下面的,注意您的内核,后加rootfstype=ext4:
# kernel /vmlinuz-2.6.31-14-generic root=UUID=dd9d9f5d-0c46-4e32-874a-505bdce82ece ro quiet splash rootfstype=ext4
# initrd /initrd.img-2.6.31-14-generic
# quiet

[ Last edited by ZULGMG on 2010-5-18 at 08:20 ]
作者: cci163     时间: 2010-5-18 19:53
谢谢已经成功