zoukankan      html  css  js  c++  java
  • Linux之Ubuntu与Windows更改默认启动顺序[转载]

    装双系统后,经常会遇到与Windows更改默认启动顺序的需要,这样有助于开机时可以避免手动选择经常使用的系统了。

    当然这解决办法不是博主的主意,本文纯属抄録者,故文章题目也声明了是转载,解决方案如下叙述。

    一.引用文献

      http://www.cnblogs.com/softzrp/p/6715262.html

    二.方案

      方法一:[亲测有效]

        1.进入Ubuntu系统后打开终端

        2.终端中输入以下命令

          sudo gedit /boot/grub/grub.cfg

        3.找到Windows的配置将其剪切到Ubuntu的前面

          把下面     

    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-D4C4BF7AC4BF5E04' {
        insmod part_msdos
        insmod ntfs
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  D4C4BF7AC4BF5E04
        else
          search --no-floppy --fs-uuid --set=root D4C4BF7AC4BF5E04
        fi
        parttool ${root} hidden-
        chainloader +1
    }
    set timeout_style=menu
    if [ "${timeout}" = 0 ]; then
      set timeout=10
    fi
    ### END /etc/grub.d/30_os-prober ###
    

          拷贝到   ### BEGIN /etc/grub.d/10_linux ###  de qianmian 之前

      方法二:

        1.终端中输入 sudo gedit /etc/default/grub

        2.设置default-set=4

  • 相关阅读:
    三种常见的编码:ASCII码、UTF-8编码、Unicode编码等字符占领的字节数
    快学Scala习题解答—第十章 特质
    [LeedCode OJ]#63 Unique Paths II
    收集互联网博客
    Android 内存监测工具 DDMS --> Heap(转)
    (转载)测试工具monkey
    (转载)Git使用教程
    时间戳转换为时间字符串
    二维码相关知识点
    教你跳转到系统指定页面
  • 原文地址:https://www.cnblogs.com/johnnyzen/p/7845976.html
Copyright © 2011-2022 走看看