中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 00:34
47,811 topics / 349,897 posts / today 0 new / 48,256 members
GRUB4DOS、SYSLINUX及其它启动管理软件讨论专区 » How to guide Ubuntu 9.10
Printable Version  2,831 / 5
Floor1 cci163 Posted 2010-03-09 16:58
初级用户 Posts 18 Credits 52
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 ###
Floor2 kirov Posted 2010-03-09 17:06
版主 Posts 223 Credits 412 From 上海杨浦
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...
Floor3 simonszehh Posted 2010-03-25 15:14
初级用户 Posts 21 Credits 42
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
Floor4 mi53 Posted 2010-05-06 00:20
新手上路 Posts 6 Credits 14
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
Floor5 ZULGMG Posted 2010-05-18 08:19
新手上路 Posts 9 Credits 9
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 ]
Floor6 cci163 Posted 2010-05-18 19:53
初级用户 Posts 18 Credits 52
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023