China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 16:52
中国DOS联盟论坛 » GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to guide Ubuntu 9.10 View 2,694 Replies 5
Original Poster Posted 2010-03-09 16:58 ·  中国 辽宁 沈阳 沈河区 电信
初级用户
Credits 52
Posts 18
Joined 2008-09-27 17:54
17-year member
UID 126810
Gender Male
Status Offline
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 [ -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 ###
Floor 2 Posted 2010-03-09 17:06 ·  中国 上海 杨浦区 电信
版主
★★
Pfc.YangZJ
Credits 412
Posts 223
Joined 2008-12-31 19:28
17-year member
UID 135466
Gender Male
From 上海杨浦
Status Offline
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
Floor 3 Posted 2010-03-25 15:14 ·  中国 香港 电讯盈科有限公司
初级用户
Credits 42
Posts 21
Joined 2009-10-09 21:25
16-year member
UID 152857
Gender Male
Status Offline
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
Floor 4 Posted 2010-05-06 00:20 ·  中国 天津 电信
新手上路
Credits 14
Posts 6
Joined 2010-02-10 16:48
16-year member
UID 160490
Gender Male
Status Offline
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
Floor 5 Posted 2010-05-18 08:19 ·  中国 广西 南宁 电信
新手上路
Credits 9
Posts 9
Joined 2007-05-22 18:24
19-year member
UID 88990
Gender Male
Status Offline
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 ]
Floor 6 Posted 2010-05-18 19:53 ·  中国 辽宁 沈阳 电信
初级用户
Credits 52
Posts 18
Joined 2008-09-27 17:54
17-year member
UID 126810
Gender Male
Status Offline
Forum Jump: