[求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
sekiqyq
帖子: 36
注册时间: 2008-07-23 21:49

[求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#1

帖子 sekiqyq » 2008-12-17 10:37

各位大侠!小弟新手,刚刚开始用Linux。先说明下情况!
装好XP(Hitachi 250G SATA),用了一段时间想学学Linux,把原来旧电脑的硬盘(SAMSUNG 120G IDE)接上,没格
之后在IDE上装了ubuntu8.04 引导没问题(主引导放在IDE上)
下了ubuntu8.10,光盘启动,在原来的IDE上格式化覆盖安装,之后引导菜单里虽然有XP,但选XP后出现error 13 说不认识格式
8.10仍然正常引导

请各位帮忙想我该怎么办?先谢谢各位的帮助了!
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#2

帖子 adagio » 2008-12-17 10:55

你先执行一下

代码: 全选

sudo fdisk -l
把结果贴上来
连同menu.lst文件内容一起贴上来
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
sekiqyq
帖子: 36
注册时间: 2008-07-23 21:49

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#3

帖子 sekiqyq » 2008-12-17 11:09

sudo fdisk -l 的运行结果:

Disk /dev/sda: 120.0 GB, 120060444672 bytes
255 heads, 63 sectors/track, 14596 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8b03492b

Device Boot Start End Blocks Id System
/dev/sda1 * 1 14220 114222118+ 83 Linux
/dev/sda2 14221 14596 3020220 5 Extended
/dev/sda5 14221 14596 3020188+ 82 Linux swap / Solaris

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19da19d9

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 2550 20482843+ 7 HPFS/NTFS
/dev/sdb2 2551 30400 223705125 f W95 Ext'd (LBA)
/dev/sdb5 2551 7649 40957686 7 HPFS/NTFS
/dev/sdb6 7650 12748 40957686 7 HPFS/NTFS
/dev/sdb7 12749 30400 141789658+ 7 HPFS/NTFS


menu.lst的内容如下:


title Ubuntu 8.10, kernel 2.6.27-9-generic
uuid cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-9-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-9-generic (recovery mode)
uuid cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14
kernel /boot/vmlinuz-2.6.27-9-generic root=UUID=cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-9-generic

title Ubuntu 8.10, kernel 2.6.27-7-generic
uuid cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14 ro locale=zh_CN quiet splash
initrd /boot/initrd.img-2.6.27-7-generic
quiet

title Ubuntu 8.10, kernel 2.6.27-7-generic (recovery mode)
uuid cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14
kernel /boot/vmlinuz-2.6.27-7-generic root=UUID=cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14 ro locale=zh_CN single
initrd /boot/initrd.img-2.6.27-7-generic

title Ubuntu 8.10, memtest86+
uuid cd1c7bd2-5a65-4275-a1a5-8fbd2a5b4c14
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional
root (hd0,0)
savedefault
makeactive
chainloader +1

感谢回复
另外,刚才把menu.lst的关于XP那部分 root(hd0,0) =>root(hd0,1)之后,出现错误代码12
我是不是多此一举了。。。呵呵 :em06
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#4

帖子 billbear » 2008-12-17 13:38

试试
title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1)+1
sekiqyq
帖子: 36
注册时间: 2008-07-23 21:49

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#5

帖子 sekiqyq » 2008-12-17 14:43

billbear 写了:试试
title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1)+1
绝望中的一点光啊!我去试试~
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#6

帖子 adagio » 2008-12-17 15:03

sekiqyq 写了:
billbear 写了:试试
title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1)+1
绝望中的一点光啊!我去试试~
title Microsoft Windows XP Professional
root (hd0,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader (hd1)+1

记得加上红字部分
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
头像
adagio
论坛版主
帖子: 22110
注册时间: 2008-02-17 23:47
来自: 美丽富饶的那啥星球

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#7

帖子 adagio » 2008-12-17 15:05

还有啊,鼻子熊
既然两个硬盘互相映射交换了,是不是最后这句应该这样啊?
chainloader (hd0)+1
明天就换大三八!
——8核CPU、8G内存、8T硬盘……
8卡交火,80寸大屏放8个……
IPv8的光纤要8条……

---------------------------------------------------------------------------------
[图片版]新手当自强(续)FAQ
[新手进阶]挂载、fstab、调整linux分区
[图片版]E17桌面环境配置手把手
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#8

帖子 billbear » 2008-12-17 15:22

映射来映射去的,好像只是为了骗 xp
应该还是 chainloader (hd1)+1 的,不过 bios 这东西也说不准。试试不行就 (hd0)
其实就 chainloader (hd1,0)+1 好了,再从 sata 的 mbr 开始引导有点傻,而且不知道他的 xp mbr 还在不在...

那个 root (hd0,0) 什么意思?
sekiqyq
帖子: 36
注册时间: 2008-07-23 21:49

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#9

帖子 sekiqyq » 2008-12-17 20:45

billbear 写了:映射来映射去的,好像只是为了骗 xp
应该还是 chainloader (hd1)+1 的,不过 bios 这东西也说不准。试试不行就 (hd0)
其实就 chainloader (hd1,0)+1 好了,再从 sata 的 mbr 开始引导有点傻,而且不知道他的 xp mbr 还在不在...

那个 root (hd0,0) 什么意思?
billbear,this is sekiqyq.now i start my PC useing ubuntu's LiveCD
i had reinstallded XP and ubuntu,it still doesn't work!!
the message seems like don't know which booter is ritht...
(first i reinstalled XP into SATA,without IDE.then connected IDE ,and installed ubuntu into it.)
please tell me how to do?
OR installing both them into SATA (or IDE) is better?
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#10

帖子 billbear » 2008-12-18 14:24

哦?重装了?其实可以用 xp 的那块硬盘作为第一启动,然后用 grub4dos 引导 ubuntu
sekiqyq
帖子: 36
注册时间: 2008-07-23 21:49

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#11

帖子 sekiqyq » 2008-12-18 14:33

嗯,但还是看了你的文章(viewtopic.php?f=139&t=167130第七楼)后才弄明白的。谢谢
我虽然用你教的方法,但还是要做点修改:最后一行=>

代码: 全选

chainloader (hd1)+1
你会做live usb吗?
我用ubuntu8.10里自带的程序做了一个,没加任何改动的。重起后跟空气一样,根本没有引导的效果
看了好多贴子,有点晕
billbear
帖子: 3681
注册时间: 2008-05-03 23:42

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#12

帖子 billbear » 2008-12-18 14:40

换台机器引导看看,可能你的机器 usb 启动有问题
sekiqyq
帖子: 36
注册时间: 2008-07-23 21:49

Re: [求助!]ubuntu8.10和XP双系统引导问题!看了好久没有这种情况的

#13

帖子 sekiqyq » 2008-12-19 10:18

你的意思是说,8.10自带的那个制作程序做出来的USB在一般情况下是可用的对吗?
回复