From Danleff Wiki
Jump to navigationJump to search

--Danleff (talk) 10:44, 31 October 2019 (PDT)

Grub 2

Grub splash image creation

Image characteristics

  • GRUB 2 can use PNG, JPG/JPEG and TGA images for the background. The image must meet the following specifications:
  • JPG/JPEG images must be 8-bit (256 color). (Gimp - Image/mode/indexed - set to 8 bit and max colors to 256).
  • Images should be non-indexed, RGB.
  • Size should be 640×480 ( in Gimp - image/scale/ and image/scale).
  • Format should be .tga
  • Saved in /usr/share/images/grub/

Editing and placing the Image

  • The GIMP image editor is one application which can edit images to conform to the GRUB 2 standards. Use the Image > Mode menu options to set the properties to RGB and ensure the mode is not set to Indexed.
  • Resize the image to 640×480 and saved it as a tga
  • Setting the image for use
  • Move the image to /usr/share/images/grub/
  • Or place the file in the /boot/grub folder directly.
  • Go to etc/default/grub in an editor as administrative user.
  • Use the command GRUB_BACKGROUND="/path/filename"
  • WALLPAPER=". " look obsolete in grub 2
  • Comment out the following in the /etc/default/grub file - # GRUB_TERMINAL_OUTPUT="console"
  • GRUB_THEME=. Is for a txt reference file. Not necessary?
  • If more than one suitable image resides in the grub folder, the priority for the image used in GRUB 2 is:
  • First image found in /boot/grub
  • The first image found, in this order: jpg, JPG, jpeg, JPEG, png, PNG, tga, TGAIf multiple images of the same extension, alphanumerically
  • GRUB_FONT=/boot/grub2/DejaVuSansMono.pf2 GRUB_GFXMODE=1280x800 GRUB_GFXPAYLOAD_LINUX=keep GRUB_BACKGROUND=/usr/share/backgrounds/verne/default/wide/verne.png

Changing Menu Resolutions

  • If the user wishes to change the resolution of the GRUB 2 screen for image enhancement or general font size changes:
  • Set the desired resolution in /etc/default/grub
  • Change the value of GRUB_GFXMODE= (Example: GRUB_GFXMODE=800x600)
  • To show what resolutions are available to GRUB 2 they can be displayed by typing vbeinfo in the GRUB 2 command line. The command line is accessed by typing "c" when the main GRUB 2 menu screen is displayed.

Update grub

  • In a terminal window as su-;
  • grub2-mkconfig -o /boot/grub2/grub.cfg
  • grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg on an UEFI system.

Resources (in order of relevance)

  1. How to Customize Grub Bootloader, try this for Fedora 31
  2. This article shows examples of grub file
  3. Managing EFI Boot Loaders for Linux:CSM: The Good, the Bad, and the Ugly
  4. How to Configure the GRUB2 Boot Loader’s Settings Good!
  5. Grub tips and Tricks Arch Wiki
  6. how-to-change-default-grub-theme-or-splash-image-in-ubuntu-10-10
  7. GRUB 2 bootloader - Full tutorial
  8. Splashimages for GRUB2
  9. Change your Grub and Grub2 splash screen in Ubuntu
  10. How To Create A Custom Splash Image For Grub 2
  11. Grub 2: Add splash image to beautify grub 2
  12. Grub2/Displays
  13. GRUB splash images - downloads
  14. How to set the default GRUB2 font and splash screen in Fedora. circa 2012
  15. Upgrading Fedora 13 to GRUB2 (has sample graphic grub commands half way down the page).
  16. Grub2 and Fedora (graphic commands).
  17. How To Change Boot Splash Screen In Linux, Windows, Fedora
  18. Linux Howto: Cleaning up Your GRUB 2 Menu (part 2)
  19. GRUB 2 bootloader - Full tutorial dedoimedo
  20. GRUB 2 Fedora Wiki
  21. Playing with Grub 2
  22. Grub 2 Manual
  23. How to set the default GRUB2 font and splash screen in Fedora circa 2012
  24. Grub2 Fedora 17 : Changing Background - Default - Timeout settings should answer Fedora questions.
  25. Working with the GRUB 2 Boot Loader Fedora Docs
  26. How to set the Font & Splash Screen in Fedora
  27. Can the Grub Splash Screen be Customized?

Recovery in Fedora

  1. grub2-grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg on an UEFI system.
  2. install /dev/sda only on a non UEFI system.
  3. grub2-mkconfig -o /boot/grub2/grub.cfg