免费注册 查看新帖 |

Chinaunix

广告
  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1565 | 回复: 6
打印 上一主题 下一主题

ubuntu 9.10 Grub问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-22 13:25 |只看该作者 |倒序浏览
系统每次boot后都会出现提示框>grub

root (hd0,0)
setup (hd0)
kernel /vmlinuz root=/dev/sda1 ro
initrd /initrd.img
boot

可以顺利进入系统,不过要每次都这样做,实在是不可忍受,sudo update-grub,reboot后系统还是和原来一样。
  1. djstava@linux:/$ cat /etc/fstab
  2. # /etc/fstab: static file system information.
  3. #
  4. # Use 'blkid -o value -s UUID' to print the universally unique identifier
  5. # for a device; this may be used with UUID= as a more robust way to name
  6. # devices that works even if disks are added and removed. See fstab(5).
  7. #
  8. # <file system> <mount point>   <type>  <options>       <dump>  <pass>
  9. proc            /proc           proc    defaults        0       0
  10. # / was on /dev/sda1 during installation
  11. /dev/sda1 /               ext3    errors=remount-ro 0       1
  12. /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0
复制代码
  1. djstava@linux:/$ cat /boot/grub/grub.cfg
  2. #
  3. # DO NOT EDIT THIS FILE
  4. #
  5. # It is automatically generated by /usr/sbin/grub-mkconfig using templates
  6. # from /etc/grub.d and settings from /etc/default/grub
  7. #

  8. ### BEGIN /etc/grub.d/00_header ###
  9. if [ -s /boot/grub/grubenv ]; then
  10.   have_grubenv=true
  11.   load_env
  12. fi
  13. set default="0"
  14. if [ ${prev_saved_entry} ]; then
  15.   saved_entry=${prev_saved_entry}
  16.   save_env saved_entry
  17.   prev_saved_entry=
  18.   save_env prev_saved_entry
  19. fi
  20. insmod ext2
  21. set root=(hd0,1)
  22. search --no-floppy --fs-uuid --set f5a3b5b0-c1a1-455e-8429-e88c980ee363
  23. if loadfont /usr/share/grub/unicode.pf2 ; then
  24.   set gfxmode=640x480
  25.   insmod gfxterm
  26.   insmod vbe
  27.   if terminal_output gfxterm ; then true ; else
  28.     # For backward compatibility with versions of terminal.mod that don't
  29.     # understand terminal_output
  30.     terminal gfxterm
  31.   fi
  32. fi
  33. if [ ${recordfail} = 1 ]; then
  34.   set timeout=-1
  35. else
  36.   set timeout=10
  37. fi
  38. ### END /etc/grub.d/00_header ###

  39. ### BEGIN /etc/grub.d/05_debian_theme ###
  40. set menu_color_normal=white/black
  41. set menu_color_highlight=black/white
  42. ### END /etc/grub.d/05_debian_theme ###

  43. ### BEGIN /etc/grub.d/10_linux ###
  44. menuentry "Ubuntu, Linux 2.6.31-14-generic" {
  45.         recordfail=1
  46.         if [ -n ${have_grubenv} ]; then save_env recordfail; fi
  47.         set quiet=1
  48.         insmod ext2
  49.         set root=(hd0,1)
  50.         search --no-floppy --fs-uuid --set f5a3b5b0-c1a1-455e-8429-e88c980ee363
  51.         linux        /boot/vmlinuz-2.6.31-14-generic root=UUID=f5a3b5b0-c1a1-455e-8429-e88c980ee363 ro   quiet splash
  52.         initrd        /boot/initrd.img-2.6.31-14-generic
  53. }
  54. menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
  55.         recordfail=1
  56.         if [ -n ${have_grubenv} ]; then save_env recordfail; fi
  57.         insmod ext2
  58.         set root=(hd0,1)
  59.         search --no-floppy --fs-uuid --set f5a3b5b0-c1a1-455e-8429-e88c980ee363
  60.         linux        /boot/vmlinuz-2.6.31-14-generic root=UUID=f5a3b5b0-c1a1-455e-8429-e88c980ee363 ro single
  61.         initrd        /boot/initrd.img-2.6.31-14-generic
  62. }
  63. ### END /etc/grub.d/10_linux ###

  64. ### BEGIN /etc/grub.d/20_memtest86+ ###
  65. menuentry "Memory test (memtest86+)" {
  66.         linux16        /boot/memtest86+.bin
  67. }
  68. menuentry "Memory test (memtest86+, serial console 115200)" {
  69.         linux16        /boot/memtest86+.bin console=ttyS0,115200n8
  70. }
  71. ### END /etc/grub.d/20_memtest86+ ###

  72. ### BEGIN /etc/grub.d/30_os-prober ###
  73. if [ ${timeout} != -1 ]; then
  74.   if keystatus; then
  75.     if keystatus --shift; then
  76.       set timeout=-1
  77.     else
  78.       set timeout=0
  79.     fi
  80.   else
  81.     if sleep --interruptible 3 ; then
  82.       set timeout=0
  83.     fi
  84.   fi
  85. fi
  86. ### END /etc/grub.d/30_os-prober ###

  87. ### BEGIN /etc/grub.d/40_custom ###
  88. # This file provides an easy way to add custom menu entries.  Simply type the
  89. # menu entries you want to add after this comment.  Be careful not to change
  90. # the 'exec tail' line above.
  91. ### END /etc/grub.d/40_custom ###
复制代码
大侠帮帮忙吧

论坛徽章:
0
2 [报告]
发表于 2010-04-22 14:12 |只看该作者
grub2是用的很不习惯啊,每次更新都会把相应的配置改掉!

论坛徽章:
1
天秤座
日期:2013-10-23 13:20:42
3 [报告]
发表于 2010-04-22 18:11 |只看该作者
grub2还很不了解,还要关注,不知道rhel什么时间会启用这个

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
4 [报告]
发表于 2010-04-22 19:18 |只看该作者
grub2是这样,弄得每次都得手动更改。

论坛徽章:
0
5 [报告]
发表于 2010-04-23 09:17 |只看该作者
用上liveCD,grub-install也不行。

论坛徽章:
0
6 [报告]
发表于 2010-04-23 09:17 |只看该作者
用上liveCD,grub-install也不行,

论坛徽章:
0
7 [报告]
发表于 2010-04-23 12:40 |只看该作者
grub2
,不知道我的是不是
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP