Debugging grub

This is a wiki page. Be bold and improve it!

If you have any questions about the content on this page, don't hesitate to open a new ticket and we'll do our best to assist you.

Table of Contents

Here are some tips for debugging strategies for grub.

During the boot process, you can press the Pause|Break key on your keyboard, and press Return to resume.

echo

See in the manual: 14.3.13 echo.

Use echo statements:

echo    'Loading initial ramdisk...'

or:

if [ -e /boot/grub/example/test1.cfg ]; then
    echo "Here"
else
    echo "There"
fi

configuration file

See also in the official manual the section: "5.4 Embedding a configuration file into GRUB".

Logs

Review the kernel logs with dmesg .
Review the appropriate log in /var/log/.