移动硬盘安装乌班图,引导不到XP

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
pele
帖子: 9
注册时间: 2007-08-12 20:55

移动硬盘安装乌班图,引导不到XP

#1

帖子 pele » 2009-09-10 0:58

我是拆了硬盘,把移动硬盘安装上去,安装ubuntu后,再把原来的硬盘安上。
这样的话,启动后显示ubuntu也显示xp,但每次xp都不成功,报Error13,请各位达达帮助看一下吧。

代码: 全选

menu.lst:

title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		fb474715-99f4-4532-ab7d-0a42d0840060
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=fb474715-99f4-4532-ab7d-0a42d0840060 ro locale=zh_CN quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet

title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		fb474715-99f4-4532-ab7d-0a42d0840060
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=fb474715-99f4-4532-ab7d-0a42d0840060 ro locale=zh_CN  single
initrd		/boot/initrd.img-2.6.28-11-generic

title		Ubuntu 9.04, memtest86+
uuid		fb474715-99f4-4532-ab7d-0a42d0840060
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
rootnoverify	 (hd0,0)
savedefault
makeactive
chainloader	+1

代码: 全选

sudo fdisk -l :

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9960b0e1

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5099    40957686    7  HPFS/NTFS
/dev/sda2            5100       38912   271602922+   f  W95 Ext'd (LBA)
/dev/sda5            5100       12748    61440561    7  HPFS/NTFS
/dev/sda6           12749       19122    51199123+   7  HPFS/NTFS
/dev/sda7           19123       25496    51199123+   7  HPFS/NTFS
/dev/sda8           25497       38912   107763988+   7  HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x63b3bcd0

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        5877    47206971   83  Linux
/dev/sdb2            5878        9728    30933157+   5  Extended
/dev/sdb5            6121        9728    28981228+   7  HPFS/NTFS
/dev/sdb6            5878        6120     1951834+  82  Linux swap / Solaris

Partition table entries are not in disk order

头像
youqika
帖子: 720
注册时间: 2008-09-25 20:56

Re: 移动硬盘安装乌班图,引导不到XP

#2

帖子 youqika » 2009-09-10 8:20

那你把hd0换成hd1试试,我猜的
UCHIHA
运气是为白痴准备的
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 移动硬盘安装乌班图,引导不到XP

#3

帖子 smallapple » 2009-09-10 9:15

代码: 全选

title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
makeactive
chainloader   +1
pele
帖子: 9
注册时间: 2007-08-12 20:55

Re: 移动硬盘安装乌班图,引导不到XP

#4

帖子 pele » 2009-09-10 20:04

youqika 写了:那你把hd0换成hd1试试,我猜的
我不能批评你,因为我没看清你说你是猜的。我今天在公司,按你的说法,结果,还是不行。后来拔了移动硬盘,天哪,总是到了windows进度条那里蓝屏。
只能重新安装了 :em19
XP的安装程序直接说C盘不识别了,要我格式化C盘。唉~~~~~~~~
pele
帖子: 9
注册时间: 2007-08-12 20:55

Re: 移动硬盘安装乌班图,引导不到XP

#5

帖子 pele » 2009-09-10 20:05

smallapple 写了:

代码: 全选

title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
makeactive
chainloader   +1
我马上试你的办法。
pele
帖子: 9
注册时间: 2007-08-12 20:55

Re: 移动硬盘安装乌班图,引导不到XP

#6

帖子 pele » 2009-09-10 20:13

smallapple 写了:

代码: 全选

title Microsoft Windows XP Professional
map (hd0) (hd1)
map (hd1) (hd0)
root (hd1,0)
makeactive
chainloader   +1
啥也不说了,非常感谢,这个办法真好使啊~~~~~~~
但我也有个问题,你写的代码好象就是做了一个映射,把hd1指向了hd0,那和默认的(hd0, 0)不是一样的么?呵呵
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 移动硬盘安装乌班图,引导不到XP

#7

帖子 wangdu2002 » 2009-09-10 20:14

不用拆硬盘,把硬盘的D形电源头拔掉就行了,硬盘不供电,Bios自然不会检测内置硬盘了。
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
leeaman
帖子: 30702
注册时间: 2007-02-02 18:14
系统: debian sid

Re: 移动硬盘安装乌班图,引导不到XP

#8

帖子 leeaman » 2009-09-10 20:18

dudu,如果共用一条IDE数据线是不行的,不过像我这样老古董的双ide的硬盘恐怕很少见了
醉了星星,醉月亮●●●●●The Long Way To Go(*^_^*)
头像
wangdu2002
帖子: 13284
注册时间: 2008-12-13 19:39
来自: 物华天宝人杰地灵

Re: 移动硬盘安装乌班图,引导不到XP

#9

帖子 wangdu2002 » 2009-09-10 20:24

leeaman 写了:dudu,如果共用一条IDE数据线是不行的,不过像我这样老古董的双ide的硬盘恐怕很少见了
现在双IDE硬盘才多大,随便一个新Sata硬盘都上TB级别了。留个IDE接口给DVD刻录机用用还行。明年搞个USB3.0的移动硬盘1TB就爽了。 :em05
行到水穷处,坐看云起时。
海内生明月,天涯共此夕。
--------------------吾本独!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 移动硬盘安装乌班图,引导不到XP

#10

帖子 smallapple » 2009-09-10 23:21

但我也有个问题,你写的代码好象就是做了一个映射,把hd1指向了hd0,那和默认的(hd0, 0)不是一样的么?呵呵
你如果从U盘启动,grub将U盘定为hd0,将内置硬盘定为hd1,但是XP(包括win2000,2003)不支持从hd1启动,只能支持从hd0启动,所以把实际的(hd1) 映射为(hd0)再启动xp。

(hd0,0) 实际上U盘的第一分区。当然启动不了xp。
回复