还是ubuntu的启动问题无法进XP(9.10),有点疑惑

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
rosickey
帖子: 7
注册时间: 2009-06-14 18:46

还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#1

帖子 rosickey » 2009-06-14 19:15

这个问题弄了几天了,今天来问问,希望大家帮忙解决。

前天下的9.10 刻CD安装

C盘是XP,还有dos winpe
d,e是XP系统下的

f是光驱
g盘里安装的UB

安装后开机只能选择UBUNTU的系统选项,无法进入XP

而且网络上说的BOOT离得menu.lst更本就不再UBUNTU的系统所在的盘里,而是在C盘


希望大家帮忙解决

#####矮人工作室收集制作
#########
password hahaha
timeout 15
###########
default 0
fallback 1
fontfile (hd0,0)/boot/grub/fonts
###########
splashimage (hd0,0)/boot/grub/bj2008.xpm.gz
title 运行 矮人工作室DOS工具盘4
###########
#########
##
root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
###########
###########
initrd (hd0,0)/boot/grub/ar4.img
#####
###
title 运行 GHOST 8.2 向导工具盘
####root (hd0,0)
kernel (hd0,0)/boot/grub/memdisk.gz
###########
initrd (hd0,0)/boot/grub/ghost.img
####
title 调用 从光盘启动系统
scdrom --bootcd
###########
title Microsoft Windows XP Professional
map (hd0) (hd2)
map (hd2) (hd0)
rootnoverify (hd2,0)
makeactive
chainloader +1
############矮人工作室,你多的乐园!!!############
title winxp
root (hd0,0)
makeactive
chainloader +1

这是分区的信息

255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x40d1317c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 784 6297448+ 7 HPFS/NTFS
/dev/sda2 785 7296 52307640 f W95 Ext'd (LBA)
/dev/sda5 785 3825 24426801 7 HPFS/NTFS
/dev/sda6 3826 5197 11020558+ 7 HPFS/NTFS
/dev/sda7 5524 6774 10048626 83 Linux
/dev/sda8 6775 6932 1269103+ 82 Linux swap / Solaris
/dev/sda9 6933 7273 2739051 83 Linux
/dev/sda10 7274 7296 184716 82 Linux swap / Solaris

Disk /dev/sdb: 1066 MB, 1066926080 bytes
255 heads, 63 sectors/track, 129 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004ea3d

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 130 1041888+ c W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
phys=(128, 254, 63) logical=(129, 181, 52)
rosickey@rosickey-laptop:~$




看看怎么修改,谢谢大家了先
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#2

帖子 leeaman » 2009-06-14 19:24

你这个menu.lst是哪里的?
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#3

帖子 hcym » 2009-06-14 19:29

(9.10)无法进XP

:em04

代码: 全选

sudo grub-install /dev/sda

sudo update-grub
加注释
# hiddenmenu

再去注释

# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#


代码: 全选

title		XP Pro
root		(hd0,0)
savedefault
makeactive
chainloader	+1
(hd0,0)参照自己的改一下,试试lilo也行,我这是不行
rosickey
帖子: 7
注册时间: 2009-06-14 18:46

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#4

帖子 rosickey » 2009-06-14 19:37

leeaman 写了:你这个menu.lst是哪里的?
C盘奥
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#5

帖子 leeaman » 2009-06-14 19:40

不知道你什么装的?明显起作用的不是这个menu.lst的,进9.10把/boot/grub/menu.lst贴出来看看
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
rosickey
帖子: 7
注册时间: 2009-06-14 18:46

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#6

帖子 rosickey » 2009-06-14 19:44

leeaman 写了:不知道你什么装的?明显起作用的不是这个menu.lst的,进9.10把/boot/grub/menu.lst贴出来看看



前面提到了,ubuntu系统所在的文件系统下没有menu.lst


只在C盘boot/grub/menu.lst 有
附件
Screenshot-grub - 文件浏览器.png
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#7

帖子 leeaman » 2009-06-14 19:47

难道是装了grub2?那就贴/boot/grub/grub.conf吧,call 一只眼帮忙,好像最近他在搞这个,我以前弄过,那个grub2的分区写的有点问题,分区号不对的
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
rosickey
帖子: 7
注册时间: 2009-06-14 18:46

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#8

帖子 rosickey » 2009-06-14 19:51

leeaman 写了:难道是装了grub2?那就贴/boot/grub/grub.conf吧,call 一只眼帮忙,好像最近他在搞这个,我以前弄过,那个grub2的分区写的有点问题,分区号不对的

谢谢。这个是编辑的UBUNTU的启动选项,我想能看到XP UB还有其他的选择


#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,7)
search --fs-uuid --set 7bc0d9f3-0330-497e-acb4-8e7489369c7c
if loadfont /usr/share/grub/ascii.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
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, linux 2.6.30-8-generic" {
set root=(hd0,7)
search --fs-uuid --set 7bc0d9f3-0330-497e-acb4-8e7489369c7c
linux /boot/vmlinuz-2.6.30-8-generic root=UUID=7bc0d9f3-0330-497e-acb4-8e7489369c7c ro quiet splash
initrd /boot/initrd.img-2.6.30-8-generic
}
menuentry "Ubuntu, linux 2.6.30-8-generic (recovery mode)" {
set root=(hd0,7)
search --fs-uuid --set 7bc0d9f3-0330-497e-acb4-8e7489369c7c
linux /boot/vmlinuz-2.6.30-8-generic root=UUID=7bc0d9f3-0330-497e-acb4-8e7489369c7c ro single
initrd /boot/initrd.img-2.6.30-8-generic
}
### END /etc/grub.d/10_linux ###

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

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#9

帖子 leeaman » 2009-06-14 19:56

看样子比我上次安装debian时的grub更加烂,没有xp的项目,要自己写的,google一下吧,我也不知道了,上次我的是hd0它自己生成的写成hd1吧,改一下就好了,你的看样子要自己添加了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
rosickey
帖子: 7
注册时间: 2009-06-14 18:46

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#10

帖子 rosickey » 2009-06-14 19:59

再问个弱弱的问题,语言已经更新了,但还是有乱
%PRODUCTTAGLINE%=°«È˹€×÷ÊÒ ÄãÎÒµÄÀÖÔ°£¡£¡£¡

%COMPANYNAME%=°«È˹€×÷ÊÒ

%COPYRIGHT%=°«È˹€×÷ÊÒÌṩ

文本编辑器里怎么办阿
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#11

帖子 leeaman » 2009-06-14 20:04

gedit乱码论坛有很多帖子了已经,大概是用gconf-editor添加编码支持
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
rosickey
帖子: 7
注册时间: 2009-06-14 18:46

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#12

帖子 rosickey » 2009-06-14 20:45

leeaman 写了:gedit乱码论坛有很多帖子了已经,大概是用gconf-editor添加编码支持

恩,都已经弄好了。能进入XP的选择菜单,但是不幸的是 蓝屏~~~~~~~~~


WINPE查看 只有一个70M多的没有一个分区,那是WINPE的 ,哎
rosickey
帖子: 7
注册时间: 2009-06-14 18:46

Re: 还是ubuntu的启动问题无法进XP(9.10),有点疑惑

#13

帖子 rosickey » 2009-06-14 22:07

现在是XP下了。

格掉UBUNTU的几个盘就能进了,幸好有winpe
回复