红联Linux门户
Linux帮助

(已解决)如何改变bootload的启动顺序?

发布时间:2010-05-29 08:25:17来源:红联作者:hongyu315
[i=s] 本帖最后由 hongyu315 于 2010-6-2 14:11 编辑 [/i]

我装的是双系统 ubuntu 10.10 和Win 7 , 现在我每次启动都是ubuntu是默认的系统 , 我每次都得手动选择WIN7 ,很麻烦 ,有什么办法能改变顺序?
文章评论

共有 19 条评论

  1. hongyu315 于 2012-02-02 08:31:20发表:

    又看下了

  2. hongyu315 于 2010-06-10 09:56:49发表:

    封帖

  3. amyellie 于 2010-06-06 20:16:55发表:

    学习

  4. zhgyxj_85 于 2010-06-06 09:47:09发表:

    1楼高手

  5. 邪门猪窝 于 2010-06-02 16:16:28发表:

    向大家学习

  6. hongyu315 于 2010-06-02 14:11:45发表:

    谢谢 搞定了

  7. lovemybrother 于 2010-06-01 23:08:21发表:

    你可以在终端执行
    sudo gedit /boot/grub/grub.cfg
    编辑启动项,它是对应着的,很好弄清楚,你删除那个版本低的内核即可。一个完整的启动项如下,一定要认真点,不要删错了,否则,启动不了。
    menuentry 'Ubuntu,Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
    linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro vga=792 quiet quiet splash
    initrd /initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu,Linux 2.6.32-22-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
    echo '载入 Linux ...'
    linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro single vga=792 quiet
    echo '载入引导虚拟磁盘 ...'
    initrd /initrd.img-2.6.32-22-generic
    }

  8. lovemybrother 于 2010-06-01 23:07:32发表:

    你可以在终端执行
    sudo gedit /boot/grub/grub.cfg
    编辑启动项,它是对应着的,很好弄清楚,你删除那个版本低的内核即可。一个完整的启动项如下,一定要认真点,不要删错了,否则,启动不了。
    menuentry 'Ubuntu,Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
    linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro vga=792 quiet quiet splash
    initrd /initrd.img-2.6.32-22-generic
    }
    menuentry 'Ubuntu,Linux 2.6.32-22-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    insmod ext2
    set root='(hd0,9)'
    search --no-floppy --fs-uuid --set d8fb248a-5fbb-44c2-b18a-a5dd22f8d90f
    echo '载入 Linux ...'
    linux /vmlinuz-2.6.32-22-generic root=UUID=c7de5bb4-df8b-445a-8b90-38b217710212 ro single vga=792 quiet
    echo '载入引导虚拟磁盘 ...'
    initrd /initrd.img-2.6.32-22-generic
    }

  9. shenhao0129 于 2010-05-31 00:06:08发表:

    11# hongyu315
    慢慢的要学会自己解决问题

  10. hongyu315 于 2010-05-29 21:40:14发表:

    10# shenhao0129


    刚刚的!!!

  11. shenhao0129 于 2010-05-29 19:52:27发表:

    9# hongyu315
    呵呵,貌似还不错!

  12. hongyu315 于 2010-05-29 15:08:10发表:

    原来是这样搞定的 太有成就感了
    1。chmod grub
    2.数win7是第六个从0开始
    3。改成默认是6就搞定了

  13. hongyu315 于 2010-05-29 14:03:57发表:

    我刚才又update-grub 了一下
    sudo update grub
    [sudo] password for hongyu315:
    sudo: update: command not found
    hongyu315@hongyu315-laptop:/etc/default$ sudo update-grub
    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.32-22-generic
    Found initrd image: /boot/initrd.img-2.6.32-22-generic
    Found linux image: /boot/vmlinuz-2.6.32-21-generic
    Found initrd image: /boot/initrd.img-2.6.32-21-generic
    Found memtest86+ image: /boot/memtest86+.bin
    Found Windows 7 (loader) on /dev/sda1
    done

  14. hongyu315 于 2010-05-29 14:01:53发表:

    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.

    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    GRUB_HIDDEN_TIMEOUT_QUIET=true
    GRUB_TIMEOUT=10
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=""

    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console

    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=640x480

    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true

    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_LINUX_RECOVERY="true"

    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    ~
    1,1 全部

  15. hongyu315 于 2010-05-29 14:00:27发表:

    引用:
    在ubuntu中去把/etc/default/grub 中的“GRUB_DEFAULT=0”修为为你需要的值,然后重新输入“sudo update-grub”“或sudo update-grub2”,更新grub引导程序就可以了
    shenhao0129 发表于 29/5/2010 09:28



    “GRUB_DEFAULT=0”我应该改成什么?

  16. shenhao0129 于 2010-05-29 11:42:23发表:

    4# hongyu315
    搞定后记得把帖子修改为已解决

  17. hongyu315 于 2010-05-29 09:46:11发表:

    感谢感谢

  18. wangyu 于 2010-05-29 09:35:56发表:

    修改Grub的配置文件,不过10.04用的应该是Grub2,这东西我不会改

  19. shenhao0129 于 2010-05-29 09:28:59发表:

    在ubuntu中去把/etc/default/grub 中的“GRUB_DEFAULT=0”修为为你需要的值,然后重新输入“sudo update-grub”“或sudo update-grub2”,更新grub引导程序就可以了