Chinaunix

标题: 重装XP后,修复grub遇到的问题!~ [打印本页]

作者: chenyyong    时间: 2005-03-29 13:19
标题: 重装XP后,修复grub遇到的问题!~
我用硬盘安装的linux
先装的XP
本来好好的,后来我重装了一次xp..
现在linux用不了了~~
没有光盘。只有启动盘。
我想修复grub。。。
现附上我的分区信息:以及我修复的步骤“

                                                                                
    GRUB  version 0.93  (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.]
                                                                                
grub>; root (hd0,
Filesystem type is ext2fs, partition type 0x83
                                                                                
grub>; setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... no
                                                                                
Error 15: File not found
                                                                                
grub>;
---------------
分区信息:
[root@chenyy root]# fdisk -l

Disk /dev/hdc: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1      1275  10241406    c  Win95 FAT32 (LBA)
/dev/hdc2          1276      7476  49809532+   f  Win95 Ext'd (LBA)
/dev/hdc5          1276      4207  23551258+   b  Win95 FAT32
/dev/hdc6          4208      6280  16651341    b  Win95 FAT32
/dev/hdc7          6281      6541   2096451    6  FAT16
/dev/hdc8          6542      7406   6948081   83  Linux
/dev/hdc9          7407      7444    305203+  83  Linux
/dev/hdc10         7445      7476    257008+  82  Linux swap
[root@chenyy root]# grub
------------
请问我在linux终端运行grub修复的方法对吗?又错在哪?
如果不对的话,我又该哪何在现在工具的情况下重装grub???
急中,高手达人帮帮忙~~~
作者: tigerlei    时间: 2005-03-29 13:26
标题: 重装XP后,修复grub遇到的问题!~
root (hd0,x),这个x要设对,不是9就是8
作者: chenyyong    时间: 2005-03-29 13:27
标题: 重装XP后,修复grub遇到的问题!~
嗯 ,谢谢上面的,
我没看到,
我设的就是8
但是一发表就变成那个了,
呵呵,我设的8还是不对呀~~
作者: 佳瑞    时间: 2005-03-29 14:17
标题: 重装XP后,修复grub遇到的问题!~
grub-install  /dev/hda0
试试
作者: chenyyong    时间: 2005-03-29 14:18
标题: 重装XP后,修复grub遇到的问题!~
具体怎么做?楼上的达人~~
作者: 佳瑞    时间: 2005-03-29 14:20
标题: 重装XP后,修复grub遇到的问题!~
就象你先前启动系统一样进入#提示符后就在其后输入运行就好了呀!
作者: chenyyong    时间: 2005-03-29 14:22
标题: 重装XP后,修复grub遇到的问题!~
我知道你指的是什么了,

我不是在启动后在#下输入的,
我是在图形界面下,
开个终端直接打的grub
作者: chenyyong    时间: 2005-03-29 15:23
标题: 重装XP后,修复grub遇到的问题!~
佳瑞

grub-install  /dev/hda0
试试
----------
我刚试了,但是没有用呀~~
还有什么好的办法没~~

急呀,
我现在每次想进都得用启动盘引导
作者: woshiwho    时间: 2005-03-29 15:50
标题: 重装XP后,修复grub遇到的问题!~
[quote]原帖由 "tigerlei"]root (hd0,x),这个x要设对,不是9就是8[/quote 发表:


按楼主的fdisk -l 来看,楼主一定是采用系统自动分区的方式,也就是说分了/boot出来。而且/boot为hda8,在grub里,root (hd0,x)这里的x应该为7。
作者: chenyyong    时间: 2005-03-29 15:54
标题: 重装XP后,修复grub遇到的问题!~
楼上的,果然是高人,
我在你之前已经按hdc7修复好了,
---
不过我不是采取的自动分区。
我是手动分的区。
要不好像自动的话XP就干没了~~没试过~
--
我是找到grub.conf这个文件后打开一看才知道是hdc7的,
很感谢上面几位高人~~
呵呵,
作者: woshiwho    时间: 2005-03-29 16:01
标题: 重装XP后,修复grub遇到的问题!~
来这里的问问题,有时可能会没有结果,但是经常可以得到一些很好的idea。
自动分区xp也不会被干掉的,只要你选择使用剩余的空间或是格式化所有linux分区。
作者: 海鳐    时间: 2005-03-29 16:25
提示: 作者被禁止或删除 内容自动屏蔽
作者: xxbird    时间: 2005-06-03 10:09
标题: 重装XP后,修复grub遇到的问题!~
又学到了不少!HOHO,有同样的以历!支持!




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2