|
cci163
初级用户
 
积分 52
发帖 18
注册 2008-9-27
状态 离线
|
『楼 主』:
如何引导ubuntu9.10
使用 LLM 解释/回答一下
系统有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 ###
The system has XP. The original Ubuntu 8.04 had problems during the upgrade. I want to reinstall Ubuntu. I found ubuntu-9.10-alternate-i386.iso online and successfully installed it with grub4dos. But after restarting, I can enter Ubuntu 9.10 but not XP. My daily work is all done under XP. So I had to execute fdisk/mbr under DOS to get XP back, but then Ubuntu can't be entered. I don't know what the boot code for Ubuntu 9.10 is under grub4dos. The original Ubuntu 8.04 was guided by grub4dos. Is there any great expert who can send the code or have a way? Thanks.
# 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 ; then
have_grubenv=true
load_env
fi
set default="0"
if ; 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 ; 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 ; 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 ; 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 ; 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 ###
|
|
2010-3-9 16:58 |
|
|
kirov
版主
        Pfc.YangZJ
积分 412
发帖 223
注册 2008-12-31 来自 上海杨浦
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
这回的问题,个人理解为三个神打架了。
一个NT的引导,一个GRUB,一个ubuntu……
重点是你是想用GRUB来引导其他两个系统么?
去研究下。顺便希望知道的朋友也来给个法子……
This time's problem, I personally understand as three "gods" fighting.
One is the NT boot, one is GRUB, one is ubuntu...
The key is do you want to use GRUB to boot the other two systems?
Go study it. By the way, I hope friends who know can also give a way...
|

以牙还牙,加倍奉还。
----BH4EAW 杨志杰
Blog:我的blog |
|
2010-3-9 17:06 |
|
|
simonszehh
初级用户
 
积分 42
发帖 21
注册 2009-10-9
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
在 Grub4DOS 加上 Linux Ubuntu 9.1 的選項
title Start LINUX Ubuntu 9.10
find --set-root /grub/core.img
kernel /grub/core.img
boot
Add options for Linux Ubuntu 9.1 in Grub4DOS
title Start LINUX Ubuntu 9.10
find --set-root /grub/core.img
kernel /grub/core.img
boot
|
|
2010-3-25 15:14 |
|
|
mi53
新手上路

积分 14
发帖 6
注册 2010-2-10
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
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
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
|
|
2010-5-6 00:20 |
|
|
ZULGMG
新手上路

积分 9
发帖 9
注册 2007-5-22
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
先更新您的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 ]
First update your GRUB4DOS...
# title Boot Ubuntu 9.10 Linux 2.6.31-14 (with separate BOOT partition)
# find --set-root --ignore-floppies --ignore-cd /grub/core.img
# kernel /grub/core.img
# boot
# title Boot Ubuntu 9.10 Linux 2.6.31-14 (without separate BOOT partition)
# find --set-root --ignore-floppies --ignore-cd /boot/grub/core.img
# kernel /boot/grub/core.img
# boot
# If the system file is in Ext4 format, you can try the following. Note your kernel, add rootfstype=ext4 later:
# 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 ]
|
|
2010-5-18 08:19 |
|
|
cci163
初级用户
 
积分 52
发帖 18
注册 2008-9-27
状态 离线
|
|
2010-5-18 19:53 |
|