[求助]重装XP后按置顶贴安装引导失败

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
feng3243
帖子: 210
注册时间: 2006-08-29 23:08
来自: 广东茂名

[求助]重装XP后按置顶贴安装引导失败

#1

帖子 feng3243 » 2007-01-29 10:16

重装XP后按置顶贴安装引导失败

我的硬盘中,共分区对应如下:
1 2 3 4 5 6 7
C D E F G EXT3 SWAP

在第6个分区中安装了UBUNTU6.06


重装XP后,我按照置顶贴“重裝windows後無法進入ubuntu?看这里。”
viewtopic.php?t=2461

的步骤进行:

1、用livecd(强烈推荐)
sudo su
grub
root (hdx,y)
setup(hdx)
quit


然而,当我用邮寄过来的UBUNTU6.06用光驱启动,打开终端按步骤做时出现了下列现象:

ubuntu@ubuntu:~$ grub
Probing devices to guess BIOS drives. This may take a long time.


GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

(按了下TAB键)
grub>
Possible commands are: blocklist boot cat chainloader clear cmp color configfi
le debug device displayapm displaymem dump embed find fstest geometry halt help
hide impsprobe initrd install ioprobe kernel lock makeactive map md5crypt modu
le modulenounzip pager partnew parttype password pause quit read reboot root ro
otnoverify savedefault serial setkey setup terminal terminfo testload testvbe u
nhide uppermem vbeprobe

grub>
Possible commands are: blocklist boot cat chainloader clear cmp color configfi
le debug device displayapm displaymem dump embed find fstest geometry halt help
hide impsprobe initrd install ioprobe kernel lock makeactive map md5crypt modu
le modulenounzip pager partnew parttype password pause quit read reboot root ro
otnoverify savedefault serial setkey setup terminal terminfo testload testvbe u
nhide uppermem vbeprobe




grub> root(hd0,5)

Error 27: Unrecognized command

grub> setup(hd0,5)

Error 27: Unrecognized command

grub>




2、我再按照wiki里的教程
http://wiki.ubuntu.org.cn/RecoveringUbu ... ingWindows
进行

使用LiveCD,同时保留Windows Bootloader
从Live CD(如Ubuntu Live,Knoppix,Mepis或者相类似的)启动。
打开终端。切换为超级用户(SuperUser)。(在Ubuntu中输入"sudo -i",在Ubuntu以外的其它发行版中输入"su")。输入根用户密码。

1、从Live CD(如Ubuntu Live,Knoppix,Mepis或者相类似的)启动。
2、打开终端。切换为超级用户(SuperUser)。(在Ubuntu中输入"sudo -i",在Ubuntu以外的其它发行版中输入"su")。输入根用户密码。
3、输入"grub",会出现GRUB命令提示。
4、输入"find /boot/grub/stage1"。会出现如同"(hd0)"样的结果,在我的电脑上是"(hd0,3)"。在下面的命令中使用您电脑中得到的结果。
5、输入"root (hd0,3)"。
6、输入"setup (hd0,3)"。这里是关键。在其它一些指南中使用"(hd0)", 如果您想将GRUB写入MBR的话,那使用"(hd0)"是没有问题的。如果您想将GRUB写入您的Linux根分区的话,则您需要在逗号之后加上数字,形如"(hd0,3)"。
7、输入"quit"。
8、取出Live CD,重新启动电脑。



我按我的情况进行,可出现了下列事情:

ubuntu@ubuntu:~$ sudo-i
bash: sudo-i: command not found
ubuntu@ubuntu:~$ grub
Probing devices to guess BIOS drives. This may take a long time.



GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For
the first word, TAB lists possible command
completions. Anywhere else TAB lists the possible
completions of a device/filename. ]

(按了TAB键)
grub>
Possible commands are: blocklist boot cat chainloader clear cmp color configfi
le debug device displayapm displaymem dump embed find fstest geometry halt help
hide impsprobe initrd install ioprobe kernel lock makeactive map md5crypt modu
le modulenounzip pager partnew parttype password pause quit read reboot root ro
otnoverify savedefault serial setkey setup terminal terminfo testload testvbe u
nhide uppermem vbeprobe

grub>
Possible commands are: blocklist boot cat chainloader clear cmp color configfi
le debug device displayapm displaymem dump embed find fstest geometry halt help
hide impsprobe initrd install ioprobe kernel lock makeactive map md5crypt modu
le modulenounzip pager partnew parttype password pause quit read reboot root ro
otnoverify savedefault serial setkey setup terminal terminfo testload testvbe u
nhide uppermem vbeprobe





grub> find/boot/grub/stage

Error 27: Unrecognized command

grub> root(hd0,5)

Error 27: Unrecognized command

grub> setup(hd0,5)

Error 27: Unrecognized command

grub>


到底出了什么问题呢,不是为了这个引导又重装UBUNTU吧,请各位帮忙看看,指点指点。

先谢过。。。。。。。
做一个精通linux的高手--不易;
做一个熟练的linux使用者--不难。
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#2

帖子 BigSnake.NET » 2007-01-29 10:17

live的grub是有点郁闷。。试一下grub-setup
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#3

帖子 yohu » 2007-01-29 10:23

grub> root (hd0,5)

注意root后面加个空格,运行完之后会出现
Filesystem type is ext2fs, partition type 0x83

如果出现
Filesystem type unknown,……

说明你分区指定错误,换~
如果正常,运行
setup (hd0)

setup后面也记得加空格。
然后quit退出,重启就可以了。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
头像
hualang0929
帖子: 1226
注册时间: 2006-11-11 10:23
来自: Mars
联系:

#4

帖子 hualang0929 » 2007-01-29 13:27

live的grub是有点郁闷。。试一下grub-setup
liveCD里面的grub没问题啊,我昨天刚帮一个同学用liveCD修复了一次,是lz自己把命令写错而已。
抬头望星空一片晴,我独行,夜已渐寒……
feng3243
帖子: 210
注册时间: 2006-08-29 23:08
来自: 广东茂名

[继续求助]装了引导,可进入不了UBUNTU系统

#5

帖子 feng3243 » 2007-01-29 13:34

先多谢各位 ,按照提醒,注意空格后,安装了引导,可是引导进入不了UBUNTU系统,具体如下:

grub> root (hd0,5)
Filesystem type is fat, partition type 0xb
grub> root (hd0,6)
Filesystem type is fat, partition type 0xb
grub> root (hd0,7)
Filesystem type is fat, partition type 0xb
grub> root (hd0,8)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,8)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded Done. grub> To run a command as administrator (user "root"), use "sudo ". See "man sudo_root" for details.

quit

重启后,出现了引导,可是进入是出现

Booting 'Ubuntu, kernel 2.6.15-27-386'

root (hd0,9)
Filesyster type unknow,partition type 0x82 kernel.
/boot/vmlinuz-2.6.15-27-386 root=/dev/hda10 ro quiet splash.

Error 17:Connot mount selected partition.

Press any key to continue...

按一个键后,又倒回到前面的引导菜单。


前面用“grub> root (hd0,8) ”命令,这里出现了“root (hd0,9)”,我安装时用的命令是“grub> setup (hd0) ”,难道是没有指定分区,便再用“grub> setup (hd0,8) ”,可是结果还是一样。

我再按照wiki的教程进行
1、从Live CD(如Ubuntu Live,Knoppix,Mepis或者相类似的)启动。
2、打开终端。切换为超级用户(SuperUser)。(在Ubuntu中输入"sudo -i",在Ubuntu以外的其它发行版中输入"su")。输入根用户密码。
3、输入"grub",会出现GRUB命令提示。
4、输入"find /boot/grub/stage1"。会出现如同"(hd0)"样的结果,在我的电脑上是"(hd0,3)"。在下面的命令中使用您电脑中得到的结果。
5、输入"root (hd0,3)"。
6、输入"setup (hd0,3)"。这里是关键。在其它一些指南中使用"(hd0)", 如果您想将GRUB写入MBR的话,那使用"(hd0)"是没有问题的。如果您想将GRUB写入您的Linux根分区的话,则您需要在逗号之后加上数字,形如"(hd0,3)"。
7、输入"quit"。
8、取出Live CD,重新启动电脑

可是还是一样——进入不了UBUNTU系统,我的那一步错了呢?
上次由 feng3243 在 2007-01-29 13:41,总共编辑 1 次。
做一个精通linux的高手--不易;
做一个熟练的linux使用者--不难。
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#6

帖子 yohu » 2007-01-29 13:40

晕,看起来好像你分区变了。
试试用livecd启动,修改根分区下/boot/grub/menu.lst里面的(hd0,9)改成(hd0,8)。
不要再修改setup(hd0)了,hd0表示安装到主引导记录,不要指定分区,这个是没有错的。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#7

帖子 yohu » 2007-01-29 13:44

补充一下:/dev/hda10 也要相应改为/dev/hda9。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
feng3243
帖子: 210
注册时间: 2006-08-29 23:08
来自: 广东茂名

#8

帖子 feng3243 » 2007-01-29 13:45

多谢yohu

决定————
继续战斗 :P :lol: :o :P :wink:
做一个精通linux的高手--不易;
做一个熟练的linux使用者--不难。
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#9

帖子 yohu » 2007-01-29 13:46

如果可以启动的话,你的fstab估计也要改了,不然个别分区应该就挂不上来了。你分区顺序都变了。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
feng3243
帖子: 210
注册时间: 2006-08-29 23:08
来自: 广东茂名

#10

帖子 feng3243 » 2007-01-29 14:05

bu hao yi si,qing wen:xiu gai de ming ling shi shen me?


"修改根分区下/boot/grub/menu.lst里面的(hd0,9)改成(hd0,8)"的命令是???
做一个精通linux的高手--不易;
做一个熟练的linux使用者--不难。
feng3243
帖子: 210
注册时间: 2006-08-29 23:08
来自: 广东茂名

#11

帖子 feng3243 » 2007-01-29 14:22

用grub> setup (hd0,8),是zhe yang de xing xi:

grub> root (hd0,8)
Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0,8)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,8)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,8)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,8) /boot/grub/stage2 p /boot/grub/menu
.lst "... succeeded
Done.

grub>



gai zeng ban ?
"修改根分区下/boot/grub/menu.lst里面的(hd0,9)改成(hd0,8)"的命令是???

wan shang zai lai.......
做一个精通linux的高手--不易;
做一个熟练的linux使用者--不难。
yohu
帖子: 955
注册时间: 2006-12-18 17:04
来自: 福建泉州

#12

帖子 yohu » 2007-01-29 14:23

你用livecd启动,你的根分区应该是挂载到/media/hda9吧,那对应就是/media/hda9/boot/grub/menu.lst,用gedit打开修改就可以了。
拥有超级牛力的搜索引擎:
http://www.google.com/linux
http://www.google.com/
feng3243
帖子: 210
注册时间: 2006-08-29 23:08
来自: 广东茂名

#13

帖子 feng3243 » 2007-01-29 14:33

用livecd,挂载 bu le ge ying pang feng qu ,shi bu shi yao yong ming ling 挂载,wo hen shao yong ming ling ,挂载 de ming ling ye wang le ,

bang bang mang :

yong shen me ming ling?

duo xie.

yao xia xian le,wan shang ji xu.

duo xie da jia de bang mang...

(yong liveCD mei yong zhong wen shu ru,yong ping yin qian jiu qian jiu :lol: :? :roll: :roll: :wink: :wink: :wink: )
做一个精通linux的高手--不易;
做一个熟练的linux使用者--不难。
ghost0
帖子: 364
注册时间: 2006-08-11 0:28

#14

帖子 ghost0 » 2007-01-29 15:36

我想楼主可能是搞错分区的命名了

1 2 3 4 5 6 7
C D E F G EXT3 SWAP

首先假设你是IDE硬盘,而且除了C,其他都是扩展分区,而且都是按你所给的次序,那么盘符对应应该是这样
win linux grub
C hda1 (hd0,0)
[扩展分区] hda2
D hda5 (hd0,4)
E hda6 (hd0,5)
F hda7 (hd0,6)
G hda8 (hd0,7)
/ hda9 (hd0,8 )
swap hda10

以上是根据你所给出的信息推测的,实际你可以用 sudo fdisk -l 看一下
头像
BigSnake.NET
帖子: 12522
注册时间: 2006-07-02 11:16
来自: 廣州
联系:

#15

帖子 BigSnake.NET » 2007-01-29 15:59

yohu 写了:grub> root (hd0,5)

注意root后面加个空格,运行完之后会出现
Filesystem type is ext2fs, partition type 0x83

如果出现
Filesystem type unknown,……

说明你分区指定错误,换~
如果正常,运行
setup (hd0)

setup后面也记得加空格。
然后quit退出,重启就可以了。
靠。。。原來有個空格。。

果然很鬱悶(以前我試到抓狂)
^_^ ~~~
要理解递归,首先要理解递归。

地球人都知道,理论上,理论跟实际是没有差别的,但实际上,理论跟实际的差别是相当大滴。
回复