LinuxSir.cn,穿越时空的Linuxsir!

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

grub> 我下来该怎么做啊?

[复制链接]
发表于 2004-10-30 16:10:16 | 显示全部楼层 |阅读模式
我今天分区后,电脑重启先检测移动完各个盘,就进入了
(双系统linux+windows xp)
grub version 0.93 (639k lower / 261056k uppermemory)
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>

我下来该怎么做啊?
忘指教!
发表于 2004-10-30 16:28:01 | 显示全部楼层
先想办法进入linux 然后配置下你的/boot/grub/menu.lst
不知道你是什么发行版,可以照下面的试试。

grub> root (hd0,6)
6换成你的/boot所在分区的分区号-1
比如/boot在/hda7 对应(hd0,6)
grub> kernel (hd0,6)/vmlinuzxxxxx root=/dev/hda8 vga=791
或grub>kernel (hd0,6)/boot/vmlinuzxxxx root=/dev/hda8 vga=791
取决与你的/boot是否单独分区,单独分区的话选择第一条。
root=/dev/hda8 换成你/所在的分区号,比如我的是/在/dev/hda8
grub>initrd (hd0,6)/initrd.img
或grub> initrd (hd0,6)/boot/initrd.img
grub>boot
就应该可以进入linux了,然后配置menu.lst文件
精华里有具体的配置方法。
发表于 2004-10-30 18:47:08 | 显示全部楼层
我上次出现后?重起,然后上了趟厕所回来就好了
不骗你
你多等会试试
发表于 2004-10-30 19:53:58 | 显示全部楼层
开始觉得挺不可思议的,看了楼主的grub.conf 终于明白你说的为什么等一回就好了
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,9)/boot/grub/splash.xpm.gz
title Red hat Lnux(2.4.20-8)
root (hd0,9)

title Windows XP
  rootnoverify (hd0,0)
  chainloader +1
原来楼主重新分区,把/的分区号改成了hd0,8
splashimage=(hd0,9)/boot/grub/splash.xpm.gz
还使用了背景图片才导致出现grub无法找到默认的背景图片,进入到grub提示符,过了timeout=10 的时间,就进入了default 1的系统。

我想应该是这个原因吧。
 楼主| 发表于 2004-11-1 14:37:57 | 显示全部楼层

问题应该是~~~~

星期六还好有师父路见不平拔刀相助阿!~:%
  现在想想,原因应该是,在装linux的时候没有将LILO写在MBR上,后来在我新分了一个区后,/分区号改变了。原来是root (hd0,9) 而现在是root (hd0,8)。
          #grub.conf generated by anaconda
#
#Note that you do not have to rerun grub after making changes to this file
#NOTICE:  you do not have to rerun grub after making changes to this file all
#         kernel and initrd paths  are relative to /,eg.
#         root (hd0,9)
#         kernel /boot / vmlinuz-version ro root =/dev/hha10   
#        intird /boot /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,9)/boot/grub/splash.xpm.gz
title Red hat Lnux(2.4.20-8)
root (hd0,9)
kernel /boot/ vmlinuz-2.4.20-8 ro root =LABEL=/
initrd /boot/initrd-2.4.20-8.img
title Windows XP
  rootnoverify (hd0,0)
  chainloader +1
     liunx无法识别路径,所以就出现了上述情况。(不知道我说得对不对?!~ :p )
     不过现在我还可以改MBR吗?怎么改阿?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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