Results 1 to 3 of 3

Thread: Editing grub.cfg directly without using scripts - GRUB Background

  1. #1
    Join Date
    May 2011
    Location
    India
    Beans
    94
    Distro
    Ubuntu

    Question Editing grub.cfg directly without using scripts - GRUB Background

    Hello!

    I have a system where I have installed GRUB 2 to the MBR with the /boot folder in a 'dedicated GRUB partition'.

    I used a Live CD to install the GRUB and hence I don't have the scripts that generate the grub-cfg file. So, I have to create it manually.

    Now, I wish to have a background image for my GRUB splash screen and I'm having trouble setting it up. All the guides on the web only give guidelines to change the splash background by making changes in the script files. I don't have that option. I have to make the entries in the grub-cfg file manually.

    I tried reading the GNU GRUB manual and various grub-cfg files I could find, and came up with the following. But I'm nowhere near to having the background image. This is my current grub-cfg file.

    Code:
    # Timeout for menu (in seconds)
    set timeout=60
    
    # Default option to boot (number starts from 0)
    set default=0 
    
    set root=(hd0,1)
    insmod gfxmenu
    insmod gfxterm
    insmod jpeg
    insmod font
    set font=/boot/grub/fonts/unicode.pf2
    set background_image=/boot/grub/backgrounds/imagejpeg.jpg
    set gfxmode=1024x768x32
    set color_normal=black/black
    set colot_highlight=magenta/black
    
    
    menuentry "Windows" {
    	set root=(hd0,2)
    	chainloader (hd0,2)+1
    }
    
    menuentry "Lubuntu" {
    	set root=(hd0,6)
    	linux /boot/vmlinuz root=/dev/sda6 ro
    	initrd /boot/initrd.img
    }
    I have copied the fonts from a live Ubuntu CD to the 'fonts' folder I created at /boot/grub/fonts in the GRUB partition. My background image is a 1024x768 pixels jpeg image located at 'backgrounds' folder I created at /boot/grub/backgrounds in the GRUB partition.

    Can anyone provide me some guidelines or direct me to a discussion which deals with my issue?

    Thanks.

  2. #2
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,515
    Distro
    Ubuntu Development Release

    Re: Editing grub.cfg directly without using scripts - GRUB Background


  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Editing grub.cfg directly without using scripts - GRUB Background

    If you want the full theming, but I think that includes some script changes.

    Post Your Grub 2 Themes - drs305
    http://ubuntuforums.org/showthread.php?t=1823915
    A Beginner's Guide to Theming GRUB2 - towheedm
    http://ubuntuforums.org/showthread.php?t=1534689
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •