Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Too many entries in GRUB

  1. #1
    Join Date
    Nov 2009
    Location
    India
    Beans
    118
    Distro
    Ubuntu Development Release

    Too many entries in GRUB

    Hi,
    I have so many entries in GRUB and have to actually scroll down so much to see windows entry. How do I remove unwanted entries in GRUB? Also How can I make a background picture appear when grub manager comes up?Kindly help.

  2. #2
    Join Date
    Aug 2009
    Location
    Under the stairs.
    Beans
    1,408
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Too many entries in GRUB

    I use Ubuntu-Tweak for that. Among some really great functions, it has a Kernel Purge function in the package cleaner section. I recommend this. Open terminal and do:

    Code:
    sudo add-apt-repository ppa:tualatrix/ppa
    sudo apt-get update && sudo apt-get install ubuntu-tweak


    Dell Inspiron 1764 Laptop, Intel CoreTM i5 520M), 4GB Shared Dual Channel DDR3 at 1066MHz, 512MB ATI Mobility RadeonTM HD4330 Integrated Intel HD.

  3. #3
    Join Date
    Jun 2008
    Location
    London, Kentucky
    Beans
    2,093
    Distro
    Ubuntu Development Release

    Re: Too many entries in GRUB

    Just so you know, it's a good idea to keep at least 2 kernels in case of problems with one of them.

    To add pictures, try installing Grub Customizer from synaptic package manager, it may be in software center too, not sure.

    If you don't want to remove them with Ubuntu Tweak, open synaptic and search for "image-2" and remove any kernels you don't want. Careful not to remove the wrong one.
    Intel-System Freeze Post#22
    How to mark your thread [SOLVED]
    Registered Linux User-#473773-Ubuntu User-#23255-Machine-#384048

  4. #4
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Too many entries in GRUB

    Grub customizer is in the Ubuntu software Centre. You will need to search for grub-customizer. Otherwise you may not find it. You can also install some splash images. Search for grub-splashimages. They get put in usr/share/images/grub. You need to know the location so that you can use Grub Customizer to browse to the image file you want.

    I recommend Grub Customizer. If you install more than one version of Ubuntu, as I have, and the new installation overwrites the Grub boot loader so that you no longer have the splash screen, as this recently happened to me, then Grub customizer has an option to install Grub in the MBR. And once again you will be using the Grub from your main Ubuntu.

    Regards.
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  5. #5
    Join Date
    Nov 2009
    Location
    India
    Beans
    118
    Distro
    Ubuntu Development Release

    Re: Too many entries in GRUB

    Hi,
    When I open grub customizer, I am getting the following error messages.
    "grub-mkconfig couldn't be executed. You must run this as root"
    I try to right click to look for an option to run as root, but no. What is the command to run this as root?
    (I have actually used grub customizer before,but now when I try to use it I am getting the above error message. I forgot how I used it with admin privileges)
    Last edited by telovin; April 10th, 2011 at 07:54 AM.

  6. #6
    Join Date
    Jun 2008
    Location
    London, Kentucky
    Beans
    2,093
    Distro
    Ubuntu Development Release

    Re: Too many entries in GRUB

    Hopefully you can find something in here to help.
    If not, drs305 does answer questions in there also.
    HOWTO: Grub Customizer
    Intel-System Freeze Post#22
    How to mark your thread [SOLVED]
    Registered Linux User-#473773-Ubuntu User-#23255-Machine-#384048

  7. #7
    Join Date
    Nov 2009
    Location
    India
    Beans
    118
    Distro
    Ubuntu Development Release

    Re: Too many entries in GRUB

    I used ubuntu tweak,deleted some entries, but was showing error

    Code:
    "E: linux-image-2.6.31-20-generic: subprocess installed post-removal script returned error exit status 1
    E: linux-image-2.6.32-23-generic: subprocess installed post-removal script returned error exit status 1"
    I could delete some entries from tweak and in ubuntu tweak its showing only four entries now. I did sudo update-grub. Got the following error when I tried updating grub.

    Code:
    Generating grub.cfg ...
    cat: /boot/grub/video.lst: No such file or directory
    Found linux image: /boot/vmlinuz-2.6.35-25-generic
    Found initrd image: /boot/initrd.img-2.6.35-25-generic
    Found linux image: /boot/vmlinuz-2.6.32-27-generic
    Found initrd image: /boot/initrd.img-2.6.32-27-generic
    Found linux image: /boot/vmlinuz-2.6.32-26-generic
    Found initrd image: /boot/initrd.img-2.6.32-26-generic
    Found Windows 7 (loader) on /dev/sda1
    Found memtest86+ image: /boot/memtest86+.bin
    Found Windows 7 (loader) on /dev/sda1
    /etc/grub.d/40_custom: 1: menuentry: not found
    /etc/grub.d/40_custom: 2: Syntax error: "(" unexpected
    Restarted the system. But my grub manager was still showing too many entries. It looks as if nothing got deleted. I tried to apply a back ground image, even that did not come.

    I'll try grub customizer now.

    I tried via synaptic, even synaptic showed the same errors.
    Last edited by telovin; April 10th, 2011 at 11:45 AM.

  8. #8
    Join Date
    Nov 2009
    Location
    India
    Beans
    118
    Distro
    Ubuntu Development Release

    Re: Too many entries in GRUB

    I cant do anything with grub customizer. When I open it, it gives the following error
    I open GC, it asks for password, I enter my admin password, it runs and again shows me the error message.
    When I type sudo gksu grub-customizer from terminal then also I get the following error.

    Code:
    "grub-mkconfig couldn't be executed successfully. You must run this as root!
    Thought "sudo' is for running as root.

    I also tried the follwoing commands on terminal

    Code:
    sudo cp -R /etc/grub.d/ /root/Desktop
    sudo apt-get update (I couldn't install it, it was showing errors.)
    sudo apt-get purge grub-common 
    sudo apt-get install grub-pc
    When I typed sudo apt-get purge grub-common, I got the following errors.
    Code:
    (Got error messages:dpkg: error processing linux-image-2.6.32-27-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    No apport report written because MaxReports is reached already
                                                                  Errors were encountered while processing:
     linux-image-2.6.31-20-generic
     linux-image-2.6.32-23-generic
     linux-image-2.6.32-26-generic
     linux-image-2.6.32-27-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    When I type the last command "sudo apt-get install grub-pc"

    I get the following errors. I am copy pasting only the error part from my terminal.The whole thing is too long.

    Code:
    /etc/grub.d/40_custom: 1: menuentry: not found
    /etc/grub.d/40_custom: 2: Syntax error: "(" unexpected
    run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 2
    Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/linux-image-2.6.32-27-generic.postrm line 321.
    dpkg: error processing linux-image-2.6.32-27-generic (--remove):
     subprocess installed post-removal script returned error exit status 1
    No apport report written because MaxReports is reached already
                                                                  Errors were encountered while processing:
     linux-image-2.6.31-20-generic
     linux-image-2.6.32-23-generic
     linux-image-2.6.32-26-generic
     linux-image-2.6.32-27-generic
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    I have 10-12 (or more don't know exactly) entries on grub. It is my parents who use this pc, so I want to make it simpler for them before I go. Kindly help.
    Last edited by telovin; April 10th, 2011 at 12:33 PM.

  9. #9
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Too many entries in GRUB

    Why not use Synaptic or apt-get to remove kernels you don't need? In Synaptic, search for "linux-image" and mark the ones you don't want for removal.

  10. #10
    Join Date
    Jun 2008
    Location
    London, Kentucky
    Beans
    2,093
    Distro
    Ubuntu Development Release

    Re: Too many entries in GRUB

    Quote Originally Posted by oldos2er View Post
    Why not use Synaptic or apt-get to remove kernels you don't need? In Synaptic, search for "linux-image" and mark the ones you don't want for removal.
    That was recommended in post-#3, see post-#7. Synaptic is giving errors. This is a whole new problem. Maybe it would be a good idea to start a new thread on that, if you can't find an answer via google or the search bar in this forum.
    Intel-System Freeze Post#22
    How to mark your thread [SOLVED]
    Registered Linux User-#473773-Ubuntu User-#23255-Machine-#384048

Page 1 of 3 123 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
  •