LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1167|回复: 3

Grub引导的奇怪问题,能找到kernel initrd的镜像引导却报错....(以解决)

[复制链接]
发表于 2005-11-28 09:50:42 | 显示全部楼层 |阅读模式
起因如下:
我的机器原来98 debian 双启动 后来98挂了 就一直用debian 前两天心血来潮 重装了XP 这样linux就没法引导了........  我就装了winGrub   我的文件系统 / = hd0,7  /boot = hd0,5 swap = hd0,6   hd0,0是winXP正常使用中......  


补充一个意外:  我起初装debian的时候 误把交换分区 分成了 /swap 这样我就多了个 swap分区 少了'"交换分区"  在系统装好后 我又用 cfdisk 将 /swap 转换成  交换分区 一切正常   grub/menu.lst  的东西我也一直没动过......




问题如下:
用grub 能挂上我 reiserfs 全部分区 能看到各个文件夹......   
我以前没注意 起初 grub menu.lst  的内容  不能引导的时候 用grub 进去看了一下 里面都是用hd0,6 (我晕啊......)   现在的menu..lst 我是这么写的  
root (hd0,5)
kernel /vmlinuz-2.6.8-2-686 ro root=/dev/hda7
initrd /initrd.img-2.6.8-2-686
除了 root=/dev/hda7 这行外 其他都可以用 [TAB]键补全,


报错如下
  1. fat:code page cp437 not foud
  2. pivot_root:No such file or directory
  3. /sbin/init:424:cannot open dev/console no such file
  4. kernel panic:Attempted to kill init
复制代码



google 了很多  问了很多  一直有个疑问   为什么找到 kernel 和 initrd 却还不能正常引导呢???


BTW:grub 真是个好东东 有bash 的部分功能  好用`~`~`~




解决的写法   
root (hd0,7)
kernel (hd0,5)/vmlinuz-2.6.8-2-686  root=/dev/hda8
initrd (hd0,5)/initrd.img-2.6.8-2-686
感觉:winGrub 的分区提示好象有问题..   虽然功能还是不错....


btw: 虽然好了 单还是有那么点晕...  我在linux 下看  hd0,7是/boot 而不是/ (而winGrub说他是/  hda8 winGrub没有显示)  hd0,5 linux 下看不到..
发表于 2005-11-28 10:19:26 | 显示全部楼层
感觉像 root 没有 mount
回复 支持 反对

使用道具 举报

发表于 2005-11-28 11:19:41 | 显示全部楼层
kernel /vmlinuz-2.6.8-2-686 ro root=/dev/hda8
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-28 11:27:51 | 显示全部楼层
最后还要感谢  楼上仁兄们的回复    Thanks

over  ...
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表