- 论坛徽章:
- 0
|
系统每次boot后都会出现提示框>grub
root (hd0,0)
setup (hd0)
kernel /vmlinuz root=/dev/sda1 ro
initrd /initrd.img
boot
可以顺利进入系统,不过要每次都这样做,实在是不可忍受,sudo update-grub,reboot后系统还是和原来一样。- djstava@linux:/$ cat /etc/fstab
- # /etc/fstab: static file system information.
- #
- # Use 'blkid -o value -s UUID' to print the universally unique identifier
- # for a device; this may be used with UUID= as a more robust way to name
- # devices that works even if disks are added and removed. See fstab(5).
- #
- # <file system> <mount point> <type> <options> <dump> <pass>
- proc /proc proc defaults 0 0
- # / was on /dev/sda1 during installation
- /dev/sda1 / ext3 errors=remount-ro 0 1
- /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
复制代码- djstava@linux:/$ cat /boot/grub/grub.cfg
- #
- # DO NOT EDIT THIS FILE
- #
- # It is automatically generated by /usr/sbin/grub-mkconfig using templates
- # from /etc/grub.d and settings from /etc/default/grub
- #
- ### BEGIN /etc/grub.d/00_header ###
- if [ -s /boot/grub/grubenv ]; then
- have_grubenv=true
- load_env
- fi
- set default="0"
- if [ ${prev_saved_entry} ]; then
- saved_entry=${prev_saved_entry}
- save_env saved_entry
- prev_saved_entry=
- save_env prev_saved_entry
- fi
- insmod ext2
- set root=(hd0,1)
- search --no-floppy --fs-uuid --set f5a3b5b0-c1a1-455e-8429-e88c980ee363
- if loadfont /usr/share/grub/unicode.pf2 ; then
- set gfxmode=640x480
- insmod gfxterm
- insmod vbe
- if terminal_output gfxterm ; then true ; else
- # For backward compatibility with versions of terminal.mod that don't
- # understand terminal_output
- terminal gfxterm
- fi
- fi
- 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/white
- ### END /etc/grub.d/05_debian_theme ###
- ### BEGIN /etc/grub.d/10_linux ###
- menuentry "Ubuntu, Linux 2.6.31-14-generic" {
- recordfail=1
- if [ -n ${have_grubenv} ]; then save_env recordfail; fi
- set quiet=1
- insmod ext2
- set root=(hd0,1)
- search --no-floppy --fs-uuid --set f5a3b5b0-c1a1-455e-8429-e88c980ee363
- linux /boot/vmlinuz-2.6.31-14-generic root=UUID=f5a3b5b0-c1a1-455e-8429-e88c980ee363 ro quiet splash
- initrd /boot/initrd.img-2.6.31-14-generic
- }
- menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
- recordfail=1
- if [ -n ${have_grubenv} ]; then save_env recordfail; fi
- insmod ext2
- set root=(hd0,1)
- search --no-floppy --fs-uuid --set f5a3b5b0-c1a1-455e-8429-e88c980ee363
- linux /boot/vmlinuz-2.6.31-14-generic root=UUID=f5a3b5b0-c1a1-455e-8429-e88c980ee363 ro single
- initrd /boot/initrd.img-2.6.31-14-generic
- }
- ### END /etc/grub.d/10_linux ###
- ### BEGIN /etc/grub.d/20_memtest86+ ###
- menuentry "Memory test (memtest86+)" {
- linux16 /boot/memtest86+.bin
- }
- menuentry "Memory test (memtest86+, serial console 115200)" {
- linux16 /boot/memtest86+.bin console=ttyS0,115200n8
- }
- ### END /etc/grub.d/20_memtest86+ ###
- ### BEGIN /etc/grub.d/30_os-prober ###
- if [ ${timeout} != -1 ]; then
- if keystatus; then
- if keystatus --shift; then
- set timeout=-1
- else
- set timeout=0
- fi
- else
- if sleep --interruptible 3 ; then
- set timeout=0
- fi
- fi
- fi
- ### 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 ###
复制代码 大侠帮帮忙吧 |
|