linux系统修改启动项

zyccsdn 2012-08-23

  • linux修改启动项

    配置文件路径:/boot/grub/grub.conf
    相关命令:
    [root@localhost grub]# pwd
    /boot/grub
    [root@localhost grub]# vi grub.conf
    # 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 a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /, eg.
    #          root (hd0,0)
    #          kernel /boot/vmlinuz-version ro root=/dev/sda1
    #          initrd /boot/initrd-version.img
    #boot=/dev/sda
    default=0
    timeout=5
    gfxmenu (hd0,0)/boot/message
    #title Red Flag Desktop 6.0 Desktop (2.6.31-4_11netbook)
    #   root (hd0,0)
    #   kernel /boot/vmlinuz-2.6.31-4_11netbook ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda2
    #   initrd /boot/initrd-2.6.31-4_11netbook.img
    title Red Flag Desktop 6.0-up Desktop (2.6.31-4_11)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.31-4_11 ro root=LABEL=/ vga=788 splash=silent resume=/dev/sda2
        initrd /boot/initrd-2.6.31-4_11.img

相关推荐