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

  • 相关阅读:
    AVFoundation 文本语音播报
    单元测试 + UI测试
    scrollView
    设备旋转---横竖屏切换
    SDK 开发 .a .framework .bundle (xcode引用) 依赖sdk工程
    多线程 NSThread 的使用
    多线程 NSOpeartion 的使用
    多线程 GCD 的使用
    swift pod 第三方库异常的处理
    按钮重复点击问题 UIbutton
  • 原文地址:https://www.cnblogs.com/johnnyzen/p/7845976.html
Copyright © 2011-2022 走看看