Page 43 of 94 FirstFirst ... 3341424344455393 ... LastLast
Results 421 to 430 of 931

Thread: Grub 2 Basics

  1. #421
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Grub 2 Basics

    Yup, the file /user/share/desktop-base/grub_background.sh is not install on Ubuntu unless you get the "desktop-base" package installed. If you do that you will have the image called for in the script and look like you are using Debian.

    I actually have that on an installation. Ugly image and the others in the file are not any better.
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  2. #422
    Join Date
    Jun 2008
    Beans
    65

    Re: Grub 2 Basics

    Currently not at home, I will post my files as soon as i get home.
    EDIT:
    Here is my current 05_debian theme its exactly like ranch hand's except the file name
    Code:
    #!/bin/bash -e
    
    source /usr/lib/grub/grub-mkconfig_lib
    
    # this allows desktop-base to override our settings
    f=/usr/share/desktop-base/grub_background.sh
    if test -e ${f} ; then
      source ${f}
    else
      WALLPAPER="/usr/share/images/grub/wallpapers_Katekyo-Hitman-Reborn_Akushiro.png"
      COLOR_NORMAL="white/black"
      COLOR_HIGHLIGHT="red/black"
    fi
    
    set_mono_theme()
    {
      cat << EOF
    set menu_color_normal=black/black
    set menu_color_highlight=red/white
    EOF
    }
    
    # check for usable backgrounds
    use_bg=false
    if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
      for i in /boot/grub/`basename ${WALLPAPER}` ${WALLPAPER} ; do
        if is_path_readable_by_grub $i ; then 
          bg=$i
          case ${bg} in
            *.png)        reader=png ;;
            *.tga)        reader=tga ;;
            *.jpg|*.jpeg)    reader=jpeg ;;
          esac
          if test -e /boot/grub/${reader}.mod ; then
            echo "Found background image: `basename ${bg}`" >&2
            use_bg=true
            break
          fi
        fi
      done
    fi
    
    # set the background if possible
    if ${use_bg} ; then
      prepare_grub_to_access_device `${grub_probe} --target=device ${bg}`
      cat << EOF
    insmod ${reader}
    if background_image `make_system_path_relative_to_its_root ${bg}` ; then
      set color_normal=${COLOR_NORMAL}
      set color_highlight=${COLOR_HIGHLIGHT}
    else
    EOF
    fi
    
    # otherwise, set a monochromatic theme for Ubuntu
    if ${use_bg} ; then
      set_mono_theme | sed -e "s/^/  /g"
      echo "fi"
    else
      set_mono_theme
    fi
    Here is my /etc/default/grub

    Code:
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    
    GRUB_DEFAULT=0
    #GRUB_HIDDEN_TIMEOUT=0
    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=""
    
    # 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=1280x800
    
    # 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 entrys
    GRUB_DISABLE_LINUX_RECOVERY="true"
    Last edited by ghostier; April 6th, 2010 at 08:02 PM.

  3. #423
    Join Date
    Sep 2008
    Location
    In your imagination
    Beans
    11
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Truecrypt bootloader?

    I have an encrypted Windows 7 partition (truecrypt) on my system and I'm trying to enable GRUB to chainload to it. Unfortunately copying the truecrypt mbr to a file and trying to load it only produced a "Bootloader corrupted" error, and GRUB won't boot the ISO for the Rescue CD.

    Is there any way I can get it so GRUB loads first, then when I select 'Windows 7', it asks me for my password?

    Thanks!

  4. #424

    Re: Grub 2 Basics

    and why is this better? we should have a choice I thought that is what open source was about grub2 is a pain in the a** and at this point I have had to give up on Linux I need a multi-boot system for my work and I cannot seem to get it going with this

  5. #425
    Join Date
    Aug 2008
    Location
    South East Montana
    Beans
    6,153

    Re: Grub 2 Basics

    Quote Originally Posted by sparkythewondersquid View Post
    and why is this better? we should have a choice I thought that is what open source was about grub2 is a pain in the a** and at this point I have had to give up on Linux I need a multi-boot system for my work and I cannot seem to get it going with this
    I think you should do some checking on how popular grub-legacy was when it was introduced.

    You have plenty of choice. You could install lilo.

    You could also do this;

    http://ubuntuforums.org/showthread.php?t=1298932
    Dell 480 XPS 3G ram Quad Core 2.40GHz, Radeon HD 2400 PRO, Audigy1, 3x320G HDD, 320G External, Debian Testing for use, Debian Squeeze for secure use, Debian Sid for FUN

  6. #426
    Join Date
    Oct 2007
    Location
    Sydney
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Grub 2 boot problem

    I have installed Ubuntu 9.10 in a new partition, and have a Ubuntu 8.04 installation.

    I am unable to boot Ubuntu 8.04 from grub2 and get the following:-

    error: You need to load kernel first

    Although I can boot from a grub floppy.

    Ubuntu 8.04 has separate / and /boot partitions as per the extract from its fstab

    Code:
    # /etc/fstab: static file system information.
    #
    # /dev/sda6
    UUID=59a509ce-4a45-443e-9f51-e68d014fc121 /               ext3    defaults,noatime,errors=remount-ro 0       1
    # /dev/sda7
    UUID=97fb9db7-27d1-4764-a21a-cadc09582933 /home           ext3    defaults        0       2
    # /dev/sda8
    UUID=15678f38-837e-48a8-875e-72101b85961a /boot           ext3    defaults        0       2
    The grub.cfg contains the following

    Code:
    menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (on /dev/sda6)" {
    	saved_entry=${chosen}
    	save_env saved_entry
    	insmod ext2
    	set root=(hd0,6)
    	search --no-floppy --fs-uuid --set 59a509ce-4a45-443e-9f51-e68d014fc121
    	linux /boot/vmlinuz-2.6.24-24-generic root=UUID=59a509ce-4a45-443e-9f51-e68d014fc121 ro quiet splash
    	initrd /boot/initrd.img-2.6.24-24-generic
    }
    I have tried custom entries, changing set root=(hd0,8) and substituting UUID, but to no avail.

    I would be grateful for any guidance.

    PS it would help if I could find descriptions for the grub commands, but the wiki does not go far enough.

  7. #427
    Join Date
    Oct 2007
    Location
    Sydney
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Grub with /boot partition

    [QUOTE=Milliways;9129533]I have installed Ubuntu 9.10 in a new partition, and have a Ubuntu 8.04 installation.

    I am unable to boot Ubuntu 8.04 from grub2 and get the following:-

    error: You need to load kernel first

    Ubuntu 8.04 has separate / and /boot partitions as per the extract from its fstab

    [/CODE]
    The grub.cfg contains the following

    Code:
    menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic (on /dev/sda6)" {
    	saved_entry=${chosen}
    	save_env saved_entry
    	insmod ext2
    	set root=(hd0,6)
    	search --no-floppy --fs-uuid --set 59a509ce-4a45-443e-9f51-e68d014fc121
    	linux /boot/vmlinuz-2.6.24-24-generic root=UUID=59a509ce-4a45-443e-9f51-e68d014fc121 ro quiet splash
    	initrd /boot/initrd.img-2.6.24-24-generic
    }
    After posting the above, it suddenly struck me that without mounting grub would have no idea where to find /boot

    The following is my working entry.
    Two changes were required from the generated grub.cfg
    1. set root=(hd0,8) to the boot partition
    2. Remove /boot from the kernel path

    Code:
    menuentry "Ubuntu 8.04.3 LTS, kernel 2.6.24-24-generic" {
    	saved_entry=${chosen}
    	save_env saved_entry
    	insmod ext2
    	set root=(hd0,8)
    	linux /vmlinuz-2.6.24-24-generic root=UUID=59a509ce-4a45-443e-9f51-e68d014fc121 ro quiet splash
    	initrd /initrd.img-2.6.24-24-generic
    }

  8. #428
    Join Date
    Aug 2008
    Location
    England
    Beans
    90
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Grub with /boot partition

    Just wanted to say thankyou very much for this guide. I finally just moved to GRUB 2 and I had a ton of old kernels and the memtest entries were super annoying. I now just have two custom entries, so thanks an absolute ton!

  9. #429
    Join Date
    Apr 2008
    Beans
    10,988

    Re: Grub 2 Basics

    Quote Originally Posted by ranch hand View Post
    I think you should do some checking on how popular grub-legacy was when it was introduced.

    You have plenty of choice. You could install lilo.

    You could also do this;

    http://ubuntuforums.org/showthread.php?t=1298932
    I'd also add that from clicking on your username and searching "other posts" I see no request for help with grub2 problems

    Even Debian Squeeze now uses grub2 so there will soon be no getting away from it

    Once you learn it you'll actually love it!

  10. #430
    Join Date
    Apr 2008
    Beans
    10,988

    Re: Grub 2 Basics

    @ Milliways, would you please post the full output of the Boot Info Script as described here:

    http://bootinfoscript.sourceforge.net/

    Multi-boots with separate /boot partitions can be a hassle

Page 43 of 94 FirstFirst ... 3341424344455393 ... LastLast

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
  •