GRUB bootloader in Rocky Linux

Contents
Introduction
Where is the Grub bootloader in Linux?
GRUB 2 Bootloader
Similar articles

Introduction

Grub - GRand Unified Bootloader

Where is the Grub bootloader in Linux?

/etc/default/grub

/etc/grub.d

GRUB 2 Bootloader

You need to edit or /etc/default/grub folder

/etc/grub.d

For example,

vi /etc/default/grub

Change timeout / screen resolution / set background image

GRUB_TIMEOUT=10 GRUB_GFXMODE=1920x1200 GRUB_BACKGROUND="new_pict.jpg"

The picture must first be placed in the directory. /boot/grub Because it contains a file. grub.cfg which controls the boot.

After changing the picture, you may need to change the color of the text and design, You need to add it to the end of the file. /etc/grub.d/40_custom information on colors, example:

set menu_color_normal=red/black set menu_color_highlight=yellow/black set color_normal=yellow/black

Changes that have been recorded in /etc/default/grub come into force must be done

update grub2

Banner image

Script editing:

cd /etc/grub.d
ls

Contents of the directory:

00_header       10_linux        30_os-prober   41_custom
05_debian_theme    20_linux_xen    40_custom    README

You usually have to edit. 40_customIf, for example, you install before Debian FreeBSD and it after installing Debian is not visible at boot time you need to add a record

menuentry 'FreeBSD 9.0 Release'{ set root=(hd0,2) chainloader +1 }

In order for the changes to take effect, command must be executed.

grub-mkconfig -o /boot/grub/grub.cfg

Article author: Andrei Olegovich

Related articles
Настройка даты и времени в Rocky
dnf и yum в Rocky 8
Установка docker-ce в Rocky 8
Errors
Faq
Grub
Install
Rocky Linux machine-id
Настройка сети в Rocky Linux
Загрузка в безопасном режиме Rocky
Selinux Rocky Linux
ulimit Rocky
VNC: Удалённый рабочий стол в Rocky
X Window System Rocky
xclip в Rocky
XRDP: Удалённый рабочий стол в Rocky

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su, info@aredel.com if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: