centos7更改引導項等待時間

來源:互聯網
上載者:User

標籤:時間   list   補充   timeout   entry   kconfig   archive   save   arch   

centos7已經不用grub,改用grub2。

[root]# vi /boot/grub2/grub.cfg

找到並更改啟動時間(timeout)

[root]# grub2-mkconfig -o /boot/grub2/grub.cfg
[root]# reboot

重啟順便查看啟動逾時等待時間

補充:
/*
/etc/default/grub和/etc/grub.d/ ????
*/

一,引導win7:
1.用root開啟 /boot/grub2/grub.cfg
2.找到 ### BEGIN /etc/grub.d/30_os-prober ###
在後面添加
menuentry "Windows 7" {
insmod ntfs
set root=(hd0,2)
chainloader +1
}
說明:set root=(hd0,2) 其中 hd0 表示硬碟,2表示C盤

二,修改引導順序:

grub2-set-default "Windows 7"

驗證預設啟動項:

grub2-editenv list

輸出:

saved_entry=Windows 7

完事後執行

grub2-mkconfig -o /boot/grub2/grub.cfgreboot

原文:http://www.cnblogs.com/keleman/archive/2017/04/30/6790795.html

centos7更改引導項等待時間

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.