|
起因如下:
我的机器原来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]键补全,
报错如下
- fat:code page cp437 not foud
- pivot_root:No such file or directory
- /sbin/init:424:cannot open dev/console no such file
- 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 下看不到.. |
|