Page 3 of 34 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 336

Thread: HOWTO: Grub Customizer

  1. #21
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by Cpierce View Post
    Now I am really confused. I went ahead and manually changed the debian_theme as you described, updated grub, and rebooted. I got the same Black screen with the white font and light gray highlight.

    This shouldn't be this difficult. Please help !
    If you download and run the boot info script from the following location and attach the RESULTS.txt and your /etc/default/grub contents I can take a look.
    http://bootinfoscript.sourceforge.net

    Added: I just loaded up Lucid in a VM and GC worked as expected. By looking at your scripts we may be able to find out what is different on your machine.
    Last edited by drs305; January 25th, 2011 at 03:24 PM.
    GRUB2

    Retired.

  2. #22
    Join Date
    Dec 2009
    Location
    Mt.Home, AR
    Beans
    348
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Grub Customizer

    First of all, I would like to thank you again for the help. Sorry for this long post.
    Code:
    /etc/default/grub :
    
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    
    GRUB_DEFAULT="0"
    #GRUB_HIDDEN_TIMEOUT="10"
    GRUB_HIDDEN_TIMEOUT_QUIET="true"
    GRUB_TIMEOUT="10"
    GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
    GRUB_CMDLINE_LINUX=" splash vga=769"
    
    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL="console"
    
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE="1280x800x24"
    
    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID="true"
    
    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_LINUX_RECOVERY="true"
    
    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    
    export GRUB_MENU_PICTURE="cool-wallpaper-26.jpg"
    
    
    export GRUB_COLOR_NORMAL="blue/black"
    export GRUB_COLOR_HIGHLIGHT="white/black"
    
    
    
    
    and RESULTS.txt :
    
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in 
        partition #1 for /boot/grub.
    
    sda1: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 10.04.1 LTS
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda2: _________________________________________________________________________
    
        File system:       ntfs
        Boot sector type:  Windows Vista/7
        Boot sector info:  No errors found in the Boot Parameter Block.
        Operating System:  Windows 7
        Boot files/dirs:   /bootmgr /Boot/BCD /Windows/System32/winload.exe
    
    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: 100.0 GB, 100030242816 bytes
    255 heads, 63 sectors/track, 12161 cylinders, total 195371568 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    
    Partition  Boot         Start           End          Size  Id System
    
    /dev/sda1    *          2,048    92,162,047    92,160,000  83 Linux
    /dev/sda2          92,162,048   192,446,463   100,284,416   7 HPFS/NTFS
    /dev/sda3         192,448,510   195,371,007     2,922,498   5 Extended
    /dev/sda5         192,448,512   195,371,007     2,922,496  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        51038582-23a5-4c2b-9ac2-fcd99dfa9a48   ext4                                     
    /dev/sda2        17988C1633246A39                       ntfs       c:                            
    /dev/sda3: PTTYPE="dos" 
    /dev/sda5        746d858d-3f7e-4ee8-9a8c-f9bade226f96   swap                                     
    /dev/sda: PTTYPE="dos" 
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda1        /                        ext4       (rw,errors=remount-ro)
    
    
    =========================== sda1/boot/grub/grub.cfg: ===========================
    
    #
    # DO NOT EDIT THIS FILE
    #
    # It is automatically generated by /usr/sbin/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
      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
    }
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 51038582-23a5-4c2b-9ac2-fcd99dfa9a48
    if loadfont /usr/share/grub/unicode.pf2 ; then
      set gfxmode=1280x800x24
      insmod gfxterm
      insmod vbe
      if terminal_output gfxterm ; then true ; else
        # For backward compatibility with versions of terminal.mod that don't
        # understand terminal_output
        terminal gfxterm
      fi
    fi
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 51038582-23a5-4c2b-9ac2-fcd99dfa9a48
    set locale_dir=($root)/boot/grub/locale
    set lang=en
    insmod gettext
    if [ ${recordfail} = 1 ]; then
      set timeout=-1
    else
      set timeout=10
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/05_debian_theme ###
    insmod ext2
    set root='(hd0,1)'
    search --no-floppy --fs-uuid --set 51038582-23a5-4c2b-9ac2-fcd99dfa9a48
    insmod jpeg
    if background_image /boot/grub/cool-wallpaper-26.jpg ; then
      set color_normal=blue/black
      set color_highlight=white/black
    else
      set menu_color_normal=white/black
      set menu_color_highlight=black/light-gray
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### BEGIN /etc/grub.d/10_linux_proxy ###
    menuentry "Ubuntu, with Linux 2.6.32-27-generic" --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,1)'
    	search --no-floppy --fs-uuid --set 51038582-23a5-4c2b-9ac2-fcd99dfa9a48
    	linux	/boot/vmlinuz-2.6.32-27-generic root=UUID=51038582-23a5-4c2b-9ac2-fcd99dfa9a48 ro  splash vga=769  quiet splash
    	initrd	/boot/initrd.img-2.6.32-27-generic
    }
    menuentry "Ubuntu, with Linux 2.6.32-27-generic (recovery mode)" --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,1)'
    	search --no-floppy --fs-uuid --set 51038582-23a5-4c2b-9ac2-fcd99dfa9a48
    	echo	'Loading Linux 2.6.32-27-generic ...'
    	linux	/boot/vmlinuz-2.6.32-27-generic root=UUID=51038582-23a5-4c2b-9ac2-fcd99dfa9a48 ro single  splash vga=769
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-2.6.32-27-generic
    }
    menuentry "Ubuntu, with Linux 2.6.32-21-generic" --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	insmod ext2
    	set root='(hd0,1)'
    	search --no-floppy --fs-uuid --set 51038582-23a5-4c2b-9ac2-fcd99dfa9a48
    	linux	/boot/vmlinuz-2.6.32-21-generic root=UUID=51038582-23a5-4c2b-9ac2-fcd99dfa9a48 ro  splash vga=769  quiet splash
    	initrd	/boot/initrd.img-2.6.32-21-generic
    }
    ### END /etc/grub.d/10_linux_proxy ###
    
    ### BEGIN /etc/grub.d/20_memtest86+_proxy ###
    menuentry "Memory test (memtest86+)" {
    	insmod ext2
    	set root='(hd0,1)'
    	search --no-floppy --fs-uuid --set 51038582-23a5-4c2b-9ac2-fcd99dfa9a48
    	linux16	/boot/memtest86+.bin
    }
    ### END /etc/grub.d/20_memtest86+_proxy ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    menuentry "Windows 7 (loader) (on /dev/sda2)" {
    	insmod ntfs
    	set root='(hd0,2)'
    	search --no-floppy --fs-uuid --set 17988c1633246a39
    	chainloader +1
    }
    ### END /etc/grub.d/30_os-prober ###
    
    =============================== sda1/etc/fstab: ===============================
    
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' 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=51038582-23a5-4c2b-9ac2-fcd99dfa9a48 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=746d858d-3f7e-4ee8-9a8c-f9bade226f96 none            swap    sw              0       0
    
    =================== sda1: Location of files loaded by Grub: ===================
    
    
       4.4GB: boot/grub/core.img
      21.9GB: boot/grub/grub.cfg
      30.3GB: boot/initrd.img-2.6.32-21-generic
       4.3GB: boot/initrd.img-2.6.32-26-generic
       6.4GB: boot/initrd.img-2.6.32-27-generic
       2.2GB: boot/vmlinuz-2.6.32-21-generic
       2.2GB: boot/vmlinuz-2.6.32-26-generic
       6.5GB: boot/vmlinuz-2.6.32-27-generic
       6.4GB: initrd.img
       4.3GB: initrd.img.old
       6.5GB: vmlinuz
       2.2GB: vmlinuz.old
    Last edited by drs305; January 26th, 2011 at 03:59 AM. Reason: Text placed between 'code' tags generated by # icon.

  3. #23
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by Cpierce View Post
    First of all, I would like to thank you again for the help. Sorry for this long post.
    No problem - it's what I asked for. Note you can enclose it in 'code' tags by pressing the # icon in the post's menu and then copying between the generated tags.

    I copied and used your first section of grub.cfg, replacing only the UUID and making a copy of an image and placing it in /boot/grub. It worked as it should have.

    Do you have a copy of the background image in /boot/grub?
    Is it an 8-bit jpeg/jpg image?

    If the image doesn't reside in /boot/grub that would explain why it isn't appearing and why your font colors are not changing.

    I got called out on a business trip and won't get back to looking at your post until late tomorrow, but check the two items above as a minimum.
    GRUB2

    Retired.

  4. #24
    Join Date
    Dec 2009
    Location
    Mt.Home, AR
    Beans
    348
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Grub Customizer

    The image is in /boot/grub. However, I am not sure if it is 8 bit. I looked at the image properties, but didn't see where it specified that. Does the image need to be a certain size, resolution, bit, etc...... in order to work?
    The laptop that works is a Dell D620. The two that are having issues are both Toshiba M115. All three do all the fancy graphics, so I don't believe it is a graphics card problem.
    I am going to take the exact image from the one that works, and try it on the other computers. I also saw the option to "install to MBR", do I need to do that ?

  5. #25
    Join Date
    Dec 2009
    Location
    Mt.Home, AR
    Beans
    348
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Grub Customizer

    The whole issue was the image. I took the same image on the computer that worked, and it worked on the other two computers just fine. Now I just need to know the parameters of images that will work for grub. The image that is working is 1440x900 so resolution must not be critical. It is some other parameter that is causing the issue.

    What causes some images to work and others don't ?
    Last edited by Cpierce; January 26th, 2011 at 10:57 PM.

  6. #26
    Join Date
    Dec 2009
    Location
    Mt.Home, AR
    Beans
    348
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Grub Customizer

    Does anyone know some pictures won't work ?

  7. #27
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by Cpierce View Post
    Does anyone know some pictures won't work ?
    Yes they do. Remember that Grub 2 is loaded before your system files, so what Grub 2 is able to do is limited. It has the ability to display some images, but not every image. It supports tga, png and jpeg (8-bit) images. The RGB color mode is supported but indexed images are not.

    You can find the image properties with various graphic software packages. In GIMP, for example, you can use Image > Properties and look at the "Color space" entry to see if the image is RGB. You can also use Image > Mode to see if the image is RGB or Indexed, and from that menu you can change it to RGB if it is not.
    GRUB2

    Retired.

  8. #28
    Join Date
    Dec 2009
    Location
    Mt.Home, AR
    Beans
    348
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Grub Customizer

    Thank you very much. That makes sense. The image that would not work was a jpeg with RGB color, but I don't know if it was 8 bit. I will use gimp to convert it to a png format with RGB color and see if that works.

    I really appreciate your help on this.

  9. #29
    Join Date
    Dec 2009
    Location
    Mt.Home, AR
    Beans
    348
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Grub Customizer

    Saving in png worked like a charm. I learned something today.

    Thank you very much.

  10. #30
    Join Date
    Oct 2007
    Beans
    668
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Grub Customizer

    I found a new toy. Jeez, now I'm going to keep rebooting just to play with this.
    Samsung Series 3 15.6" notebook (NP300-V5A-A02US)

Page 3 of 34 FirstFirst 1234513 ... LastLast

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
  •