CentOS設定開機等待時間
Centos6.x作業系統每次開機時,都會有系統等待時間,此選項最常用到的地方就是修改密碼,如果不需要修改密碼的話,通常需要快速進入系統。因為可以修改系統等待時間。
開機等待時間預設為5秒,將之設定為0秒後,儲存後重新啟動伺服器,就會迅速跳過開機選項進入系統,不過建議設定為1秒,這樣忘記密碼時,可以及時按下重新設定密碼的選項。
[plain]view plaincopy
- [root@rac1grub]#cat/boot/grub/menu.lst
- #grub.confgeneratedbyanaconda
- #
- #Notethatyoudonothavetorerungrubaftermakingchangestothisfile
- #NOTICE:Youhavea/bootpartition.Thismeansthat
- #allkernelandinitrdpathsarerelativeto/boot/,eg.
- #root(hd0,0)
- #kernel/vmlinuz-versionroroot=/dev/mapper/vg_rac1-lv_root
- #initrd/initrd-[generic-]version.img
- #boot=/dev/sda
- default=0
- timeout=5//設定開機選項描述,預設為5秒
- splashimage=(hd0,0)/grub/splash.xpm.gz
- hiddenmenu
- titleRedHatEnterpriseLinux(2.6.32-358.el6.x86_64)
- root(hd0,0)
- kernel/vmlinuz-2.6.32-358.el6.x86_64roroot=/dev/mapper/vg_rac1-lv_rootrd_LVM_LV=vg_rac1/lv_rootrd_NO_LUKSLANG=en_US.UTF-8rd_NO_MDSYSFONT=latarcyrheb-sun16crashkernel=128Mrd_LVM_LV=vg_rac1/lv_swapKEYBOARDTYPE=pcKEYTABLE=usrd_NO_DMrhgbquiet
- initrd/initramfs-2.6.32-358.el6.x86_64.img