Linux grub boot parsing

  
 

The Linux boot file is stored in the grub.conf configuration file in the /boot/grub/directory.


1. default=0# default followed by a number n, indicating n+ 1 "title";  operating system
, 0 means the first "title", operating system
, and so on. 2. timeout=5# timeout indicates the default waiting time (the waiting time for you to choose the system, the default is 5 seconds), set to 0 here means the system will automatically load the default operating system
. 3. splashimage=(hd0,3)/boot/grub/splash.xpm.gz# Specifies the path where the screen image file used for GRUB booting is stored. 4. hiddenmenu# Hide menu options 5. CentOS (2.6.32-504.30.3.el6.x86_64)# title defines the name of the startup menu item, and the string following the title is the option displayed on the menu item. 6. root(hd,0)# Set the root partition of GRUB, which is the partition where the /boot corresponds or the partition where the boot folder is located. 7. kernel /vmkinuz-2.6.32-220.e16.i686 ro root=UUID=d67e208c-2791-4692-a615-c4e96b6ae355 rd_NO... rd_NO_DM# Specify the kernel file (vmkinuz-2.6.32-220. E16.i686) and the root device to be mounted (root=UUID=d67e208c-2791-4692-a615-c4e96b6ae355), ro is readonly. 8.initrd /initramfs-2.6.32-220.e16.i686.img# Specifies to initialize the memory image disk.

ps: In a local test environment, if you want to install a dual system, win+linux. Remember to install WIN first, install Linux, because win will not recognize the Linux boot.

Copyright © Windows knowledge All Rights Reserved