Windows和Linux雙系統修改預設啟動項、逾時時間

來源:互聯網
上載者:User

標籤:linux   ubuntu   啟動順序   等待   預設   

修改/etc/default/grub, 然後update-grub。


執行命令
sudo gedit /etc/default/grub

主要內容為
# If you change this file, run ‘update-grub‘ afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n ‘Simple configuration‘
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=""


GRUB_DEFAULT代表的就是啟動項的順序,從數字0開始,依次代表如下啟動項(這是在我的電腦上,不同的Linux版本和windows系統可能會有一些不同)
Ubuntu
Advanced options for Ubuntu
Memory test (memtest86+)
Memory test (memtest86+, serial console 115200)
Windows 8 (loader) (on /dev/sda1)
Windows排第四位(注意,順序是從0開始計的),所以,把GRUB_DEFAULT的值修改為4

GRUB_TIMEOUT=10代表逾時時間,預設為10秒,設定為-1取消倒計時

最後別忘了執行

sudo update-grub
好了,重啟電腦,預設啟動的系統就換到Windows了。

如果不想用Linux的grub而是想換回Windows的BCD或Metro來引導系統,請看我的另一篇文章:

http://blog.csdn.net/jackeriss/article/details/47264245

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

Windows和Linux雙系統修改預設啟動項、逾時時間

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.