Chinaunix

标题: grub 启动引导问题 [打印本页]

作者: missiles    时间: 2006-07-15 09:05
标题: grub 启动引导问题
系统是先装XP 再装 linux 9.0 。 笔记本,光驱和软驱都坏了。昨天遇到病毒,查杀
了一遍,再开机就只能直接看到grub>提示符。

看了一些资料,试了一下,不行,有什么方法,给些建议吧,谢谢。

用 root (hd0,(Tab) 得到以下提示

partition num:0    Filesystem type unknown, partition type 0x7
partition num:4    Filesystem type fat, partition type 0xb
partition num:5    Filesystem type ext2fs, partition type 0x83
partition num:6    Filesystem type ext2fs, partition type 0x83
partition num:7    Filesystem type unknown, partition type 0x82
partition num:8    Filesystem type unknown, partition type 0xb

系统是很早以前装的不知道内核文件在那个分区里了。用了下面的方法
cat (hd0,0)/boot/grub/grub.conf
           Error 17 : cannot mount selected parttiton
cat (hd0,4)/boot/grub/grub.conf
           Error 15 : file not found
cat (hd0,5)/boot/grub/grub.conf
           Error 15 : file not found
cat (hd0,6)/boot/grub/grub.conf     
           Error 15 : file not found
cat (hd0,7)/boot/grub/grub.conf     
           Error 17 : cannot mount selected parttiton
cat (hd0,/boot/grub/grub.conf      
           Error 15 : file not found
作者: 天外闲云    时间: 2006-07-15 09:21
grub-install试过吗?

用USB-FDD fdisk /mbr
作者: missiles    时间: 2006-07-15 09:41
install  试过了

grub>install
Erro 1: filename must be either an absolute pthename or blocklist

fdisk /mbr
Error 27: Unrecongnized command
作者: 天外闲云    时间: 2006-07-15 09:47
grub-install 不等于 grub>install
作者: 天外闲云    时间: 2006-07-15 09:50
确认你的FD里面有fdisk.exe
作者: missiles    时间: 2006-07-15 10:02
grub-install
Error 27 :  Unrecognized command

fdisk
Error 27 :  Unrecognized command

什么是FD 啊?
作者: jamesr    时间: 2006-07-15 13:19
提示: 作者被禁止或删除 内容自动屏蔽
作者: yjd333    时间: 2006-07-15 20:05
楼上说的是

这两个比较有可能是linux分区格式:
partition num:5    Filesystem type ext2fs, partition type 0x83
partition num:6    Filesystem type ext2fs, partition type 0x83

测试:
grub>kernel (hd0,5{或者6})/boot/然后tab一下应该能看到里面的文件
5.6可能有一个是swap哦。

grub>ch***(后面忘了用tab一下) +1 看这样能进winxp吗?

partition num:7    Filesystem type unknown, partition type 0x82
partition num:8    Filesystem type unknown, partition type 0xb
还有这些好像有问题?按道理grub是能过识别出磁盘格式的哦。

[ 本帖最后由 yjd333 于 2006-7-15 20:07 编辑 ]
作者: jozn    时间: 2006-07-15 20:09
无语
作者: missiles    时间: 2006-07-16 12:53
Thanks very much to jamesr and yjd333
按照jamesr的方法试了一下:
      步骤:
    grub>kernel (hd0,5)/vmlinuz-2.40.-8
      grub>initrd (hd0,5)/initrd....img
      grub>root (hd0,5)
      grub>setup (hd0)
            提示如下,当时没有记下来说个大概吧:
          1,  stage1错误
          2   .....sucessful
               3   .....sucessful
           .done
进入linux:
grub>boot
重启:
grub>reboot

  出现下面的提示:

Booting 'Red Hat LInux 2.4.20-8'

root hd0,6
Filesystem type is ext2fs, partition type 0x83
kernel /vmlinuz-2.4.20-8 ro root = LABEL=/

Error 15:File not found

Press any key to continue.....

    按任意键后
出现 了grub的图形选择菜单,不过很模糊。
    1...linux 2.4....
      2 Dos
  选1 不行,出错,说找不到相应的文件,然后又跳回这个菜单。
选2 就可以进windows 了,一点问题都没有。

是什么原因呢? 想好好整理一下,以后别人出问题也能看。谢谢。
作者: jamesr    时间: 2006-07-16 14:46
提示: 作者被禁止或删除 内容自动屏蔽




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