What does Grub do? The so-called grub is the boot loader for the Linux system, similar to the BIOS in Windows.
We will see a countdown to the number of seconds in Linux, Haha, is not very curious about this thing? Yes, it exists in the grub configuration file. We all know that everything in Linux is file.
Below I teach you how to enter the Grub configuration file:
①cat/boot/grub/grub.conf
②cat/etc/grub.conf
Both methods can view grub's configuration file, where/etc/grub.conf is a soft link to/boot/grub/grub.conf
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/3F/wKioL1gNxYWCnog6AAFTYms5KB0620.png-wh_500x0-wm_3 -wmp_4-s_1671624862.png "title=" Qq20161024162556.png "alt=" Wkiol1gnxywcnog6aaftyms5kb0620.png-wh_50 "/>
Comments:
⑴ default=0 : The default boot system, 0 for the first system, the virtual machine currently has only one operating system, so it is 0
⑵ timeout=5 : This is the last 5 seconds of the boot system I mentioned earlier.
⑶ splashimage= (hd0,0)/grub/splash.xpm.gz : Start background position
⑷ hiddenmenu : Hide the main menu, that is, we can only see the countdown at the start of the number of seconds, not directly see which operating system selected, because the default is to hide the main menu
⑸ title CentOS (2.6.32-431.el6.i686)
Root (hd0,0)
kernel/vmlinuz-2.6.32-431.el6.i686 ro root=uuid=a26b73b4-caa0-43e5-84af-088935bf5161 Rd_NO_LUKS KEYBOARDTYPE=pc Keytable=us rd_no_md Crashkernel=auto lang=zh_cn. UTF-8 RD_NO_LVM rd_no_dm RHGB quiet
Initrd/initramfs-2.6.32-431.el6.i686.img: Represents the first operating system in the systems, there is only one
Where green means loading kernel information, purple indicates loading image file information
This article is from the "Brother Hong Linux World" blog, so be sure to keep this source http://zhengkangkang.blog.51cto.com/12015643/1865066
Tips for using grub in Linux