Notes on Grub Configuration

Google Translate Button


Notes On Grub Configuration


The main file that controls grub2 is C:\grub2\grub.cfg.

Each OS is defined by a menuentry in this file.



Grub2Win provides an easy to use GUI to generate the basic menuentries needed. The menuentries Grub2Win automatically creates should allow you boot the most popular Linux and Windows systems .



Grub2Win automatically generates a fresh grub.cfg file each time it is run. In most cases, the generated file should be sufficient to meet your needs. If you wish to manually add code to grub.cfg, you can use Custom Code to enter it. Custom code is checked for basic syntax errors and can appear anywhere in the grub.cfg file.



There is also a user section where code can be entered, using Notepad. Grub2Win will never alter code in the user section. Be particularly careful when entering code in the user section as it is not checked for errors and you can render your system unbootable. The user section must be the final entry at the end of the grub.cfg file.


       The user section is defined by the following

       comment lines:


               # start-grub2win-user-section


               # end-grub2win-user-section    



After the initial install, you can run grub2win.exe as many times as you like to change menu entries, themes and options.  The user and custom codes sections will be left unchanged, so your customization is preserved. Other parts of the file will be modified by Grub2Win.




I supplied a sample configuration file in the C:\grub2\winhelp directory:



sample.cfg 



This file contains menuentries that can be copied to help customize your C:\grub2\grub.cfg file.

Menuentries for  various flavors of Linux and Windows are included.






Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator