联想 家悦 电脑,grub无法引导XP

启动讨论 grub/grub2/syslinux/grub4dos/Lilo
回复
头像
freesky3555
帖子: 138
注册时间: 2007-03-12 17:59
来自: 山西榆次

联想 家悦 电脑,grub无法引导XP

#1

帖子 freesky3555 » 2009-08-14 15:02

这是从U盘上启动Ubuntu9.04安装盘后制作的文件:

#fdisk -l

代码: 全选

Disk /dev/sda: 80.0 GB, 80032038912 bytes
255 heads, 63 sectors/track, 9730 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdcb5dcb5

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1913    15366141    c  W95 FAT32 (LBA)
/dev/sda2            1914        8010    48974152+   f  W95 Ext'd (LBA)
/dev/sda3            8011        9730    13815900   12  Compaq diagnostics
/dev/sda5            1914        4463    20482843+   b  W95 FAT32
/dev/sda6            4464        8010    28491246    7  HPFS/NTFS

Disk /dev/sdb: 2021 MB, 2021654528 bytes
20 heads, 19 sectors/track, 10390 cylinders
Units = cylinders of 380 * 512 = 194560 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       10390     1974090+  83  Linux
#dd if=/dev/sda of=mbr bs=1 count=1024
#xxd mbr

代码: 全选

0000000: eb48 90d0 bc00 7cfb 5007 501f fcbe 1b7c  .H....|.P.P....|
0000010: bf1b 0650 57b9 e501 f3a4 cbbd be07 b104  ...PW...........
0000020: 386e 007c 0975 1383 c510 e2f4 cd18 8bf5  8n.|.u..........
0000030: 83c6 1049 7419 382c 74f6 a0b5 07b4 0302  ...It.8,t.......
0000040: 8000 0080 1bc0 2100 0008 fa90 90f6 c280  ......!.........
0000050: 7502 b280 ea59 7c00 0031 c08e d88e d0bc  u....Y|..1......
0000060: 0020 fba0 407c 3cff 7402 88c2 52be 7f7d  . ..@|<.t...R..}
0000070: e834 01f6 c280 7454 b441 bbaa 55cd 135a  .4....tT.A..U..Z
0000080: 5272 4981 fb55 aa75 43a0 417c 84c0 7505  RrI..U.uC.A|..u.
0000090: 83e1 0174 3766 8b4c 10be 057c c644 ff01  ...t7f.L...|.D..
00000a0: 668b 1e44 7cc7 0410 00c7 4402 0100 6689  f..D|.....D...f.
00000b0: 5c08 c744 0600 7066 31c0 8944 0466 8944  \..D..pf1..D.f.D
00000c0: 0cb4 42cd 1372 05bb 0070 eb7d b408 cd13  ..B..r...p.}....
00000d0: 730a f6c2 800f 84ea 00e9 8d00 be05 7cc6  s.............|.
00000e0: 44ff 0066 31c0 88f0 4066 8944 0431 d288  D..f1...@f.D.1..
00000f0: cac1 e202 88e8 88f4 4089 4408 31c0 88d0  ........@.D.1...
0000100: c0e8 0266 8904 66a1 447c 6631 d266 f734  ...f..f.D|f1.f.4
0000110: 8854 0a66 31d2 66f7 7404 8854 0b89 440c  .T.f1.f.t..T..D.
0000120: 3b44 087d 3c8a 540d c0e2 068a 4c0a fec1  ;D.}<.T.....L...
0000130: 08d1 8a6c 0c5a 8a74 0bbb 0070 8ec3 31db  ...l.Z.t...p..1.
0000140: b801 02cd 1372 2a8c c38e 0648 7c60 1eb9  .....r*....H|`..
0000150: 0001 8edb 31f6 31ff fcf3 a51f 61ff 2642  ....1.1.....a.&B
0000160: 7cbe 857d e840 00eb 0ebe 8a7d e838 00eb  |..}.@.....}.8..
0000170: 06be 947d e830 00be 997d e82a 00eb fe47  ...}.0...}.*...G
0000180: 5255 4220 0047 656f 6d00 4861 7264 2044  RUB .Geom.Hard D
0000190: 6973 6b00 5265 6164 0020 4572 726f 7200  isk.Read. Error.
00001a0: bb01 00b4 0ecd 10ac 3c00 75f4 c300 0000  ........<.u.....
00001b0: 0000 0000 0000 0000 b5dc b5dc 0000 8001  ................
00001c0: 0100 0cfe ffff 3f00 0000 faef d401 0000  ......?.........
00001d0: c1ff 0ffe ffff 39f0 d401 9192 d605 0000  ......9.........
00001e0: c1ff 12fe ffff ca82 ab07 b8a0 a501 0000  ................
00001f0: 0000 0000 0000 0000 0000 0000 0000 55aa  ..............U.
0000200: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000210: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000220: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000230: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000240: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000250: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000260: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000270: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000280: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000290: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00002a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00002b0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00002c0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00002d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00002e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00002f0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000300: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000310: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000320: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000330: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000340: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000350: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000360: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000370: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000380: 0000 0000 0000 0000 0000 0000 0000 0000  ................
0000390: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00003a0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00003b0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00003c0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00003d0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00003e0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00003f0: 0000 0000 0000 0000 0000 0000 0000 0000  ................
说一遍很不容易
做一遍更难
做到车轻驾熟,信手拈来那一定是传说中的高手了……………………
强烈推介在这里混的网友使用vimperator!!!!!!!!!!
头像
freesky3555
帖子: 138
注册时间: 2007-03-12 17:59
来自: 山西榆次

Re: 联想 家悦 电脑,grub无法引导XP

#2

帖子 freesky3555 » 2009-08-14 15:06

XP安装在C盘上,即/dev/sda1上。应该

代码: 全选

>root (hd0,0)
>chainloader +1
>boot
就可以启动XP,但现在死活启动不了,又回到了grub的提示符下了。
说一遍很不容易
做一遍更难
做到车轻驾熟,信手拈来那一定是传说中的高手了……………………
强烈推介在这里混的网友使用vimperator!!!!!!!!!!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 联想 家悦 电脑,grub无法引导XP

#3

帖子 smallapple » 2009-08-14 15:10

是哪里启动的grub?
头像
freesky3555
帖子: 138
注册时间: 2007-03-12 17:59
来自: 山西榆次

Re: 联想 家悦 电脑,grub无法引导XP

#4

帖子 freesky3555 » 2009-08-14 15:20

U盘启动的,/dev/sda 上也安装了grub 也是从U盘上安装的。
说一遍很不容易
做一遍更难
做到车轻驾熟,信手拈来那一定是传说中的高手了……………………
强烈推介在这里混的网友使用vimperator!!!!!!!!!!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 联想 家悦 电脑,grub无法引导XP

#5

帖子 smallapple » 2009-08-14 15:23

代码: 全选

>root (hd0,0)
>chainloader +1
>boot
这个是从硬盘grub启动的


从U盘grub启动改这样试试

代码: 全选

>map (hd0) (hd1)
>map (hd1) (hd0)
>root (hd1,0)
>chainloader +1
>boot
头像
freesky3555
帖子: 138
注册时间: 2007-03-12 17:59
来自: 山西榆次

Re: 联想 家悦 电脑,grub无法引导XP

#6

帖子 freesky3555 » 2009-08-14 15:28

能使用 ntldr启动XP吗?我用

代码: 全选

>chainloader --force /ntldr
引导,只能出现一堆乱码。
说一遍很不容易
做一遍更难
做到车轻驾熟,信手拈来那一定是传说中的高手了……………………
强烈推介在这里混的网友使用vimperator!!!!!!!!!!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 联想 家悦 电脑,grub无法引导XP

#7

帖子 smallapple » 2009-08-14 15:32

chainloader /ntldr
是grub4dos的用法,ubuntu的grub不用这样用
头像
freesky3555
帖子: 138
注册时间: 2007-03-12 17:59
来自: 山西榆次

Re: 联想 家悦 电脑,grub无法引导XP

#8

帖子 freesky3555 » 2009-08-14 15:35

是不是联想的XP或MBR和普通的电脑不一样呢?
说一遍很不容易
做一遍更难
做到车轻驾熟,信手拈来那一定是传说中的高手了……………………
强烈推介在这里混的网友使用vimperator!!!!!!!!!!
头像
smallapple
论坛版主
帖子: 7868
注册时间: 2009-03-28 15:12

Re: 联想 家悦 电脑,grub无法引导XP

#9

帖子 smallapple » 2009-08-14 15:41

freesky3555 写了:是不是联想的XP或MBR和普通的电脑不一样呢?
不相干的。
用U盘启动时,U盘是(hd0) ,内置硬盘是 (hd1), XP所在分区就是(hd1,0),
但是XP用

代码: 全选

>root (hd1,0)
>chainloader +1
>boot
可能启动不了,要加map
头像
freesky3555
帖子: 138
注册时间: 2007-03-12 17:59
来自: 山西榆次

Re: 联想 家悦 电脑,grub无法引导XP

#10

帖子 freesky3555 » 2009-08-14 21:35

加map以后能启动了。同时还解决了个问题——启动第二块硬盘上的XP。由于两块盘都是独立安装的,所以grub引导的时候问题只能进入第一块盘的系统。第二块盘怎么也进不去。使用map以后能进去了。
说一遍很不容易
做一遍更难
做到车轻驾熟,信手拈来那一定是传说中的高手了……………………
强烈推介在这里混的网友使用vimperator!!!!!!!!!!
回复