Grub2 on Debain/Ubuntu based distro’s– A quick overview

First off the file which contains the menu information is /boot/grub/grub.cfg. Anyone who has opened this file will tell you that you are not meant to edit this file directly , as this file is generated by running update-grub as the super user or root. When you sudo update-grub it reads files in /etc/grub.d/ and in /etc/default/grub.
The main files in /etc/grub.d/ are as follows:
00_header Used to set appearance items such as graphics mode etc , this file doesnt need to be edited as it imports the information from etc/default/grub
05_debian_theme This is where information about the background image , and text layout options are located
10_linux Locates the kernels in /boot and creates menuentries
20_memtest86+ If you installed memtest86+ this will handle the menuentries for it
30_os-prober This will attempt to locate other operating systems and create
menuentries for them
40_custom Custom menuentries can be placed here , just make sure they are
placed underneath exec tail -n +3 $0
/etc/default/grub/ This file contains appearance items such as grpahics mode , also
what appears at the end of the kernel line ,ie “quiet splash”
Please note that other distributions may use other files in the /etc/grub.d/ directory , ie Linux mint uses 06_mint_theme to set the background image and text layout options, If you edit any of these files you need to run sudo update-grub afterwards.

Tagged with:
Posted in 01Ben, Computers, Linux

Please feel free to leave a reply.

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Enter your email address to follow this blog and receive notifications of new posts by email.

Join 67 other followers

%d bloggers like this: