Grub

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
  • GRUB_THEME=. Is for a txt reference file
  • 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

  1. How to Configure the GRUB2 Boot Loader’s Settings Good!
  2. Grub tips and Tricks Arch Wiki
  3. how-to-change-default-grub-theme-or-splash-image-in-ubuntu-10-10
  4. GRUB 2 bootloader - Full tutorial
  5. Splashimages for GRUB2
  6. Change your Grub and Grub2 splash screen in Ubuntu
  7. How To Create A Custom Splash Image For Grub 2
  8. Grub 2: Add splash image to beautify grub 2
  9. Grub2/Displays
  10. GRUB splash images - downloads
  11. How to set the default GRUB2 font and splash screen in Fedora.
  12. Upgrading Fedora 13 to GRUB2 (has sample graphic grub commands half way down the page).
  13. Grub2 and Fedora (graphic commands).
  14. How To Change Boot Splash Screen In Linux, Windows, Fedora
  15. Linux Howto: Cleaning up Your GRUB 2 Menu (part 2)
  16. GRUB 2 bootloader - Full tutorial
  17. GRUB 2 Fedora Wiki
  18. Playing with Grub 2
  19. Grub 2 Manual
  20. How to set the default GRUB2 font and splash screen in Fedora
  21. Grub2 Fedora 17 : Changing Background - Default - Timeout settings should answer Fedora questions.

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