Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Grub 2 Drop-In Backgrounds & Font Selection

  1. #11
    Join Date
    Apr 2011
    Location
    Beirut, Lebanon
    Beans
    8
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Drop-In Backgrounds & Font Selection

    Also your image didn't work... (thanks for trying) And I'm using Oneiric not Natty (but I can't fix my information 'cause i have less than 50 posts -_-) Don't know if that helps.

    Shadi

  2. #12
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Drop-In Backgrounds & Font Selection

    Quote Originally Posted by Chakoo View Post
    Also your image didn't work... (thanks for trying) And I'm using Oneiric not Natty (but I can't fix my information 'cause i have less than 50 posts -_-) Don't know if that helps.

    Shadi
    If you run the boot info script and post the contents of RESULTS.txt I can take a look at grub.cfg. Make sure you have it set up to try to use whatever your image is. You can get to the script page via the 'BIS' link in my signature line or you can install 'Boot-Repair', which contains the script.

    When you post again, please include whether the entire screen was black or just the middle section where you would expect the image to be.
    GRUB2

    Retired.

  3. #13
    Join Date
    Apr 2011
    Location
    Beirut, Lebanon
    Beans
    8
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Drop-In Backgrounds & Font Selection

    Code:
                      Boot Info Script 0.60    from 17 May 2011
    
    
    ============================= Boot Info Summary: ===============================
    
     => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
        the same hard drive for core.img. core.img is at this location and looks 
        for  on this drive.
    
    sda1: __________________________________________________________________________
    
        File system:       ext2
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 11.10
        Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda2: __________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows XP
        Boot sector info:   No errors found in the Boot Parameter Block.
        Operating System:  Windows XP
        Boot files:        /boot.ini /ntldr /NTDETECT.COM
    
    sda3: __________________________________________________________________________
    
        File system:       Extended Partition
        Boot sector type:  -
        Boot sector info:  
    
    sda5: __________________________________________________________________________
    
        File system:       swap
        Boot sector type:  -
        Boot sector info:  
    
    ============================ Drive/Partition Info: =============================
    
    Drive: sda _____________________________________________________________________
    
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot  Start Sector    End Sector  # of Sectors  Id System
    
    /dev/sda1    *          2,048   419,432,447   419,430,400  83 Linux
    /dev/sda2         419,432,448   613,481,582   194,049,135   7 NTFS / exFAT / HPFS
    /dev/sda3         613,482,494   625,141,759    11,659,266   5 Extended
    /dev/sda5         613,482,496   625,141,759    11,659,264  82 Linux swap / Solaris
    
    
    "blkid" output: ________________________________________________________________
    
    Device           UUID                                   TYPE       LABEL
    
    /dev/sda1        59312ec6-a40d-4168-a0f2-b80c7be247eb   ext2       
    /dev/sda2        4B84C43146DE0326                       ntfs       Windows
    /dev/sda5        38bf76e9-b849-4449-a5fe-29b9654a0166   swap       
    
    ================================ Mount points: =================================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda1        /                        ext2       (rw,errors=remount-ro)
    
    
    =========================== sda1/boot/grub/grub.cfg: ===========================
    
    --------------------------------------------------------------------------------
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by grub-mkconfig using templates
    # from /etc/grub.d and settings from /etc/default/grub
    #
    
    ### BEGIN /etc/grub.d/00_header ###
    if [ -s $prefix/grubenv ]; then
      set have_grubenv=true
      load_env
    fi
    set default="0"
    if [ "${prev_saved_entry}" ]; then
      set saved_entry="${prev_saved_entry}"
      save_env saved_entry
      set prev_saved_entry=
      save_env prev_saved_entry
      set boot_once=true
    fi
    
    function savedefault {
      if [ -z "${boot_once}" ]; then
        saved_entry="${chosen}"
        save_env saved_entry
      fi
    }
    
    function recordfail {
      set recordfail=1
      if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
    }
    
    function load_video {
      insmod vbe
      insmod vga
      insmod video_bochs
      insmod video_cirrus
    }
    
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    search --no-floppy --fs-uuid --set=root 59312ec6-a40d-4168-a0f2-b80c7be247eb
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=auto
      load_video
      insmod gfxterm
      insmod part_msdos
      insmod ext2
      set root='(hd0,msdos1)'
      search --no-floppy --fs-uuid --set=root 59312ec6-a40d-4168-a0f2-b80c7be247eb
      set locale_dir=($root)/boot/grub/locale
      set lang=en_US
      insmod gettext
    fi
    terminal_output gfxterm
    if [ "${recordfail}" = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/10_linux ###
    if [ ${recordfail} != 1 ]; then
      if [ -e ${prefix}/gfxblacklist.txt ]; then
        if hwmatch ${prefix}/gfxblacklist.txt 3; then
          if [ ${match} = 0 ]; then
            set linux_gfx_mode=keep
          else
            set linux_gfx_mode=text
          fi
        else
          set linux_gfx_mode=text
        fi
      else
        set linux_gfx_mode=keep
      fi
    else
      set linux_gfx_mode=text
    fi
    export linux_gfx_mode
    if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
    menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	set gfxpayload=$linux_gfx_mode
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 59312ec6-a40d-4168-a0f2-b80c7be247eb
    	linux	/boot/vmlinuz-3.0.0-12-generic root=UUID=59312ec6-a40d-4168-a0f2-b80c7be247eb ro quiet splash acpi_backlight=vendor  quiet splash vt.handoff=7
    	initrd	/boot/initrd.img-3.0.0-12-generic
    }
    menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod gzio
    	insmod part_msdos
    	insmod ext2
    	set root='(hd0,msdos1)'
    	search --no-floppy --fs-uuid --set=root 59312ec6-a40d-4168-a0f2-b80c7be247eb
    	echo	'Loading Linux 3.0.0-12-generic ...'
    	linux	/boot/vmlinuz-3.0.0-12-generic root=UUID=59312ec6-a40d-4168-a0f2-b80c7be247eb ro recovery nomodeset quiet splash acpi_backlight=vendor
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-3.0.0-12-generic
    }
    ### END /etc/grub.d/10_linux ###
    
    ### BEGIN /etc/grub.d/20_linux_xen ###
    ### END /etc/grub.d/20_linux_xen ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Microsoft Windows XP Professional (on /dev/sda2)" --class windows --class os {
    	insmod part_msdos
    	insmod ntfs
    	set root='(hd0,msdos2)'
    	search --no-floppy --fs-uuid --set=root 4B84C43146DE0326
    	drivemap -s (hd0) ${root}
    	chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries.  Simply type the
    # menu entries you want to add after this comment.  Be careful not to change
    # the 'exec tail' line above.
    ### END /etc/grub.d/40_custom ###
    
    ### BEGIN /etc/grub.d/41_custom ###
    if [ -f  $prefix/custom.cfg ]; then
      source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/41_custom ###
    --------------------------------------------------------------------------------
    
    =============================== sda1/etc/fstab: ================================
    
    --------------------------------------------------------------------------------
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda1 during installation
    UUID=59312ec6-a40d-4168-a0f2-b80c7be247eb /               ext2    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=38bf76e9-b849-4449-a5fe-29b9654a0166 none            swap    sw              0       0
    --------------------------------------------------------------------------------
    
    =================== sda1: Location of files loaded by Grub: ====================
    
               GiB - GB             File                                 Fragment(s)
    
                   =                boot/grub/core.img                             1
                   =                boot/grub/grub.cfg                             1
                   =                boot/initrd.img-3.0.0-12-generic               5
                   =                boot/vmlinuz-3.0.0-12-generic                  3
                   =                initrd.img                                     5
                   =                vmlinuz                                        3
    
    ================================ sda2/boot.ini: ================================
    
    --------------------------------------------------------------------------------
    [boot loader]
    timeout=30
    default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
    --------------------------------------------------------------------------------
    
    =============================== StdErr Messages: ===============================
    
    unlzma: Decoder error
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    awk: cmd. line:36: Math support is not compiled in
    The whole screen is black. Text is white, highlighted text is black on white background.
    Last edited by drs305; October 29th, 2011 at 05:04 PM. Reason: Changed QUOTE to CODE tags ( # icon in menubar when posting)

  4. #14
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Drop-In Backgrounds & Font Selection

    Quote Originally Posted by Chakoo View Post
    The whole screen is black. Text is white, highlighted text is black on white background.
    I don't see a theme setting and there is no 05_debian_theme section of your /boot/grub/grub.cfg file. The file /etc/grub.d/05_debian_theme is the script which incorporates non-default images/fonts into the Grub menu if no theme is set elsewhere (/etc/default/grub).

    Perhaps you removed the executable bit or removed the file. You can see if the file exists with the first command, and set it to be executable with the second.


    Code:
    ls /etc/grub.d/05_debian_theme 
    sudo chmod +x /etc/grub.d/05_debian_theme 
    sudo update-grub
    GRUB2

    Retired.

  5. #15
    Join Date
    Apr 2011
    Location
    Beirut, Lebanon
    Beans
    8
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Grub 2 Drop-In Backgrounds & Font Selection

    drs305 you are my god! thanks dude, worked like a charm.

    Shadi

  6. #16
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Drop-In Backgrounds & Font Selection

    This page has been migrated to the Ubuntu Community Documentation site. For the most up-to-date information, please visit:
    https://help.ubuntu.com/community/Grub2/Displays

    The above page is a sub-page of the main community documentation regarding https://help.community/Grub2.

    Thank you to all the users who posted in these threads and expanded our knowledge of Grub 2 since it's introduction.

    A thread for discussion of the wiki can be found at http://ubuntuforums.org/showthread.php?p=12073029

    Support threads regarding the wiki and it's content should be created in a suitable forum.
    GRUB2

    Retired.

Page 2 of 2 FirstFirst 12

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
  •