LinuxSir.cn,穿越时空的Linuxsir!

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

求助:电脑开机直接进入grub调试状态~

[复制链接]
发表于 2011-3-7 14:33:11 | 显示全部楼层 |阅读模式
装的xp和ubuntu10.10(内核:2.6.35-22)双系统,开机直接进入grub调试界面,重启一次,才可以进入到菜单界面,选择操作系统。
虽然每次也能进来,但是感觉总这样挺别扭的,还希望哪位朋友给指点一下,谢谢~
下面是grub.cfg信息:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos8)'
search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
set locale_dir=($root)/boot/grub/locale
set lang=zh
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
        linux        /boot/vmlinuz-2.6.35-23-generic root=UUID=4c9108fd-c82d-49f7-be4b-d7a54b098e23 ro   quiet splash
        initrd        /boot/initrd.img-2.6.35-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
        echo        'Loading Linux 2.6.35-23-generic ...'
        linux        /boot/vmlinuz-2.6.35-23-generic root=UUID=4c9108fd-c82d-49f7-be4b-d7a54b098e23 ro single
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-2.6.35-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
        linux        /boot/vmlinuz-2.6.35-22-generic root=UUID=4c9108fd-c82d-49f7-be4b-d7a54b098e23 ro   quiet splash
        initrd        /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
        echo        'Loading Linux 2.6.35-22-generic ...'
        linux        /boot/vmlinuz-2.6.35-22-generic root=UUID=4c9108fd-c82d-49f7-be4b-d7a54b098e23 ro single
        echo        'Loading initial ramdisk ...'
        initrd        /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
        linux16        /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos8)'
        search --no-floppy --fs-uuid --set 4c9108fd-c82d-49f7-be4b-d7a54b098e23
        linux16        /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Professional (on /dev/sda1)" {
        insmod part_msdos
        insmod ntfs
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set 94104c9a104c8568
        drivemap -s (hd0) ${root}
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
发表于 2011-3-7 19:40:31 | 显示全部楼层
这个扯的太少了,没有什么有价值的信息。

有可能是硬件问题,也有可能是grub的安装问题。

建议,1. 检查你的BIOS设置和驱动器连接,有问题请贴上来;
2. 检查你的grub配置和硬盘分区情况,如果有问题也请贴上来;
3. 仍然不行的话请尝试找个可以帮得上忙的活人坐到你的电脑面前。
回复 支持 反对

使用道具 举报

发表于 2011-3-18 20:26:10 | 显示全部楼层
估计你是grub损坏了
试一下这里的方法看行不
http://www.linuxsight.com/blog/290
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-23 08:59:33 | 显示全部楼层
Post by fantlam;2131469
估计你是grub损坏了
试一下这里的方法看行不
http://www.linuxsight.com/blog/290


谢谢了,虽然没解决,但是比楼上那位讲话中听多了~好像问题不太一样~
回复 支持 反对

使用道具 举报

发表于 2011-3-24 15:02:01 | 显示全部楼层
Post by lru52777;2131643
谢谢了,虽然没解决,但是比楼上那位讲话中听多了~好像问题不太一样~

Orz, enhance your sense of humor, plz...

BTW, detail, plz!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-3-30 10:57:11 | 显示全部楼层
Post by pingz;2131832
Orz, enhance your sense of humor, plz...

BTW, detail, plz!


不好意思,字面上的幽默没法看出来,另外,我不懂德语。
回复 支持 反对

使用道具 举报

发表于 2011-4-2 18:49:54 | 显示全部楼层
Post by lru52777;2131643
谢谢了,虽然没解决,但是比楼上那位讲话中听多了~好像问题不太一样~
其实楼上的大哥并没有说错,你提供的有用信息太少了!另外一位说了=没说一样!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-12 18:56:33 | 显示全部楼层
Post by zjhxmjl;2133211
其实楼上的大哥并没有说错,你提供的有用信息太少了!另外一位说了=没说一样!


可是问题就是这样,开机直接进入grub调试界面,出现:grub > _,要么输入reboot,要么重启,才会进入选择菜单,选择进入哪个系统。
回复 支持 反对

使用道具 举报

发表于 2011-4-12 20:55:52 | 显示全部楼层
那么,请贴出你的grub配置,一般来说是/boot/grub/menu.lst或者是/boot/grub/grub.conf。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-4-24 14:37:38 | 显示全部楼层
Post by pingz;2134755
那么,请贴出你的grub配置,一般来说是/boot/grub/menu.lst或者是/boot/grub/grub.conf。


我贴出来了...
回复 支持 反对

使用道具 举报

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

本版积分规则

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