Page 9 of 34 FirstFirst ... 789101119 ... LastLast
Results 81 to 90 of 336

Thread: HOWTO: Grub Customizer

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

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by amont View Post
    By the way, is there a trick to predefine an entry, not by position, but by name? Because, you know, every time a new kernel version is added, the other entries are pushed down, so its position varies.
    Things change in Grub 1.99/Natty, as it introduces submenus (where older kernels are stored). But for Lucid, you can specify the title rather than the number in the "GRUB_DEFAULT=" setting of /etc/default/grub. And it won't matter what position it occupies in the menu.

    You would place the exact name as it appears in /boot/grub/grub.cfg (between the quotes). An example might look like:
    GRUB_DEFAULT="Ubuntu, with Linux 2.6.35-28-generic-pae"
    It appears that you can do the same thing via Grub Customizer: Edit > Preferences: General tab. Click on 'default entry' > predefined. Click on the 'entry 1' selection box. It will expand; select the name from the right column. Click 'Save' to configure Grub 2 according to GC's scripts.
    GRUB2

    Retired.

  2. #82
    Join Date
    Sep 2007
    Location
    Barcelona
    Beans
    24
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by drs305 View Post
    Things change in Grub 1.99/Natty, as it introduces submenus (where older kernels are stored)...
    That's fine, because I'm setting up a netbook for a relative and I have installed 11.04 Natty. (For my own netbook, first entry is OK )
    Regards.

  3. #83
    Join Date
    Jan 2007
    Beans
    38

    Smile Re: HOWTO: Grub Customizer

    An excellent tool! Accomplished a change in two keystrokes that would have taken 15 minutes previously. Many, many thanks!

  4. #84
    Join Date
    Jul 2008
    Location
    RI
    Beans
    51
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Grub Customizer

    I can't get the background image to work...I changed my resolution to match the image and then clicked copy to grub directory, saved and rebooted but nothing changed.

  5. #85
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by Pro$pect View Post
    I can't get the background image to work...I changed my resolution to match the image and then clicked copy to grub directory, saved and rebooted but nothing changed.
    The first two things I would do to troubleshoot this:

    1. Run "sudo update-grub" and watch the terminal to see if it finds the image. There will be a message similar to "Found background image: ..." if it finds the image. If it doesn't, most likely the path is incorrect.

    2. The second thing to try would be to install "grub2-splashimages", then copy one of the images from /usr/share/images/grub to where your current image is, and then use that image. If it works, there is a problem with the image you are using.
    GRUB2

    Retired.

  6. #86
    Join Date
    Jul 2008
    Location
    RI
    Beans
    51
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Grub Customizer

    it found the background image running update-grub.

    I installed the splashimages, copied it over to where the image I was trying to use before and unchecked the custom resolution box. still didn't work...

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

    Re: HOWTO: Grub Customizer

    Quote Originally Posted by Pro$pect View Post
    it found the background image running update-grub.

    I installed the splashimages, copied it over to where the image I was trying to use before and unchecked the custom resolution box. still didn't work...
    We might be able to learn something from the boot info script. If you would like to download and run it, then post the RESULTS.txt we can take a look at your boot files. The one caveat is that I don't know how much of the script picks up Grub Customizer modifications, but we can see.

    http://bootinfoscript.sourceforge.net
    GRUB2

    Retired.

  8. #88
    Join Date
    Jul 2008
    Location
    RI
    Beans
    51
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Grub Customizer

    here is the results file:

    Code:
                    Boot Info Script 0.55    dated February 15th, 2010                    
    
    ============================= Boot Info Summary: ==============================
    
     => Grub 2 is installed in the MBR of /dev/sda and looks for b2d.
    
    sda1: _________________________________________________________________________
    
        File system:       ext4
        Boot sector type:  -
        Boot sector info:  
        Operating System:  Ubuntu 11.04
        Boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
    
    sda2: _________________________________________________________________________
    
        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: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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   482,371,583   482,369,536  83 Linux
    /dev/sda2         482,373,630   488,396,799     6,023,170   5 Extended
    /dev/sda5         482,373,632   488,396,799     6,023,168  82 Linux swap / Solaris
    
    
    blkid -c /dev/null: ____________________________________________________________
    
    Device           UUID                                   TYPE       LABEL                         
    
    /dev/sda1        9ac30183-21d3-4394-939d-e2ed98839da4   ext4                                     
    /dev/sda2: PTTYPE="dos" 
    /dev/sda5        9e22ad1e-a652-46be-bd7f-0ac53b224afa   swap                                     
    /dev/sda: PTTYPE="dos" 
    
    ============================ "mount | grep ^/dev  output: ===========================
    
    Device           Mount_Point              Type       Options
    
    /dev/sda1        /                        ext4       (rw,errors=remount-ro,user_xattr,commit=0)
    
    
    =========================== 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='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 9ac30183-21d3-4394-939d-e2ed98839da4
    if loadfont /usr/share/grub/unicode.pf2 ; then
    set gfxmode=1280x1024
      load_video
      insmod gfxterm
    fi
    terminal_output gfxterm
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 9ac30183-21d3-4394-939d-e2ed98839da4
    set locale_dir=($root)/boot/grub/locale
    set lang=en_US
    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 part_msdos
    insmod ext2
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 9ac30183-21d3-4394-939d-e2ed98839da4
    insmod jpeg
    if background_image /boot/grub/94.jpg; then
      true
    else
      set menu_color_normal=white/black
      set menu_color_highlight=black/light-gray
      if background_color 44,0,30; then
        clear
      fi
    fi
    ### END /etc/grub.d/05_debian_theme ###
    
    ### 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 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	set gfxpayload=$linux_gfx_mode
    	insmod part_msdos
    	insmod ext2
    	set root='(/dev/sda,msdos1)'
    	search --no-floppy --fs-uuid --set=root 9ac30183-21d3-4394-939d-e2ed98839da4
    	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=9ac30183-21d3-4394-939d-e2ed98839da4 ro  vga=775  quiet splash vt.handoff=7
    	initrd	/boot/initrd.img-2.6.38-8-generic
    }
    menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    	recordfail
    	set gfxpayload=$linux_gfx_mode
    	insmod part_msdos
    	insmod ext2
    	set root='(/dev/sda,msdos1)'
    	search --no-floppy --fs-uuid --set=root 9ac30183-21d3-4394-939d-e2ed98839da4
    	echo	'Loading Linux 2.6.38-8-generic ...'
    	linux	/boot/vmlinuz-2.6.38-8-generic root=UUID=9ac30183-21d3-4394-939d-e2ed98839da4 ro single  vga=775
    	echo	'Loading initial ramdisk ...'
    	initrd	/boot/initrd.img-2.6.38-8-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/20_memtest86+ ###
    menuentry "Memory test (memtest86+)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(/dev/sda,msdos1)'
    	search --no-floppy --fs-uuid --set=root 9ac30183-21d3-4394-939d-e2ed98839da4
    	linux16	/boot/memtest86+.bin
    }
    menuentry "Memory test (memtest86+, serial console 115200)" {
    	insmod part_msdos
    	insmod ext2
    	set root='(/dev/sda,msdos1)'
    	search --no-floppy --fs-uuid --set=root 9ac30183-21d3-4394-939d-e2ed98839da4
    	linux16	/boot/memtest86+.bin console=ttyS0,115200n8
    }
    ### END /etc/grub.d/20_memtest86+ ###
    
    ### BEGIN /etc/grub.d/30_os-prober ###
    if [ "x${timeout}" != "x-1" ]; then
      if keystatus; then
        if keystatus --shift; then
          set timeout=-1
        else
          set timeout=0
        fi
      else
        if sleep --interruptible 3 ; then
          set timeout=0
        fi
      fi
    fi
    ### 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 -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/sdb1 during installation
    UUID=9ac30183-21d3-4394-939d-e2ed98839da4 /               ext4    errors=remount-ro,user_xattr 0       1
    # swap was on /dev/sdb5 during installation
    UUID=9e22ad1e-a652-46be-bd7f-0ac53b224afa none            swap    sw              0       0
    
    =================== sda1: Location of files loaded by Grub: ===================
    
    
     193.4GB: boot/grub/core.img
      39.5GB: boot/grub/grub.cfg
       4.9GB: boot/initrd.img-2.6.38-8-generic
     193.4GB: boot/vmlinuz-2.6.38-8-generic
       4.9GB: initrd.img
     193.4GB: vmlinuz

  9. #89
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: HOWTO: Grub Customizer

    Pro$pect,

    Thanks for posting. Is the image you are trying to use /boot/grub/94.jpg?

    I will install Grub Customizer and see how it handles images and how it integrates into the boot info script. I see the mention of 94.jpg but will have to experiment with GC myself unless someone else comes along.
    GRUB2

    Retired.

  10. #90
    Join Date
    Jul 2008
    Location
    RI
    Beans
    51
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: HOWTO: Grub Customizer

    yes the image is 94.jpg but the second one I tried using from grub splashimages is Lake_mapourika_NZ.tga
    Last edited by Pro$pect; May 5th, 2011 at 08:25 PM.

Page 9 of 34 FirstFirst ... 789101119 ... 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
  •