免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 2798 | 回复: 10
打印 上一主题 下一主题

grub 启动引导问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-07-15 09:05 |只看该作者 |倒序浏览
系统是先装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

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
2 [报告]
发表于 2006-07-15 09:21 |只看该作者
grub-install试过吗?

用USB-FDD fdisk /mbr

论坛徽章:
0
3 [报告]
发表于 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

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
4 [报告]
发表于 2006-07-15 09:47 |只看该作者
grub-install 不等于 grub>install

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
5 [报告]
发表于 2006-07-15 09:50 |只看该作者
确认你的FD里面有fdisk.exe

论坛徽章:
0
6 [报告]
发表于 2006-07-15 10:02 |只看该作者
grub-install
Error 27 :  Unrecognized command

fdisk
Error 27 :  Unrecognized command

什么是FD 啊?

论坛徽章:
0
7 [报告]
发表于 2006-07-15 13:19 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
1
午马
日期:2014-06-14 09:08:34
8 [报告]
发表于 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 编辑 ]

论坛徽章:
0
9 [报告]
发表于 2006-07-15 20:09 |只看该作者
无语

论坛徽章:
0
10 [报告]
发表于 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 了,一点问题都没有。

是什么原因呢? 想好好整理一下,以后别人出问题也能看。谢谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP