Announcement

Collapse
No announcement yet.

Problem with GRUB

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Problem with GRUB

    I'm running a Kubuntu virtual machine via Parallels 5.0 on a MacBook Pro. When it first starts up, I get a grub menu with a bunch of booting options. (See attached screenshot.) The fourth option is the only one that's any good, so I'm wondering if there's any way to get rid of all the other entries. Anyone know if this is possible, and if so how to do it?
    Thanks!
    Attached Files
    PETERV<br />17&quot; MacBook Pro - Snow Leopard<br />OS&#39;s: Snow Leopard 10.6.4/Kubuntu 10.04/Windows XP Pro SP3<br />Parallels 5.0<br />2.5 GHz Intel Core 2 Duo 4GB SDRAM<br />WD 1TB My Book Studio quad-interface External Drive

    #2
    Re: Problem with GRUB

    Assuming grub-pc is working correctly, removing the unbootable or unneeded kernels and then running "sudo update-grub" is the preferred method.

    You can manually edit /boot/grub/grub.cfg as well, but that it not the currently supported method (don't tell anyone)

    Please Read Me

    Comment


      #3
      Re: Problem with GRUB

      Excuse my ignorance, but I'm not familiar with grub-pc, can you (after seeing some of your other posts, I know you can), but would you be kind enough to walk me through how to remove the unneeded kernels? I'm a little leery of manually editing the grub.cfg file. I'd appreciate it if you'll share your vast knowledge. (No, I'm definitely NOT being sarcastic, just complimentary.)
      Thanks,
      Peter V.
      PETERV<br />17&quot; MacBook Pro - Snow Leopard<br />OS&#39;s: Snow Leopard 10.6.4/Kubuntu 10.04/Windows XP Pro SP3<br />Parallels 5.0<br />2.5 GHz Intel Core 2 Duo 4GB SDRAM<br />WD 1TB My Book Studio quad-interface External Drive

      Comment


        #4
        Re: Problem with GRUB

        All about Grub 2 here: http://kubuntuforums.net/forums/inde...opic=3106368.0

        cutting to the chase, use your package manager and remove the kernels that you no longer want. Then run

        Code:
        sudo update-grub
        to have the boot menu refreshed accordingly.

        Comment


          #5
          Re: Problem with GRUB

          Hate to sound obtuse, but I'm unfamiliar with the term "package manager". I add packages using sudo apt-get install, or I use the "add/remove software" item in the system settings menu, but I've never removed a kernel. Are you referring to Synaptic? (I just installed that and don't know how to use it yet.) Any chance you could walk me through removing a kernel? (I can do the "sudo update-grub" on my own. )
          PETERV<br />17&quot; MacBook Pro - Snow Leopard<br />OS&#39;s: Snow Leopard 10.6.4/Kubuntu 10.04/Windows XP Pro SP3<br />Parallels 5.0<br />2.5 GHz Intel Core 2 Duo 4GB SDRAM<br />WD 1TB My Book Studio quad-interface External Drive

          Comment


            #6
            Re: Problem with GRUB

            Removing unnecessary entries from the grub menu ...
            Rog131:

            http://kubuntuforums.net/forums/inde...opic=3082556.0
            An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

            Comment


              #7
              Re: Problem with GRUB

              Qqmike, thanks for the link, but it doesn't help. There is no /boot/grub/menu.lst file on my system. I'm running Kubuntu 10.04, and I've heard that the grub on that system is different from the one used in 2007, when that link was created.
              PETERV<br />17&quot; MacBook Pro - Snow Leopard<br />OS&#39;s: Snow Leopard 10.6.4/Kubuntu 10.04/Windows XP Pro SP3<br />Parallels 5.0<br />2.5 GHz Intel Core 2 Duo 4GB SDRAM<br />WD 1TB My Book Studio quad-interface External Drive

              Comment


                #8
                Re: Problem with GRUB

                He tells you how to remove kernels, right? Irrespective of any GRUB.
                An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

                Comment


                  #9
                  Re: Problem with GRUB

                  I've looked a little deeper, and before I deleted the kernel & headers files, I made a backup of the /boot/grub/grub.cfg file. After I did the deletions, I ran a compare on the backup and the current grub.cfg file. The current file shows that the kernels I deleted are no longer in the grub.cfg file. The question I have is if they're not in the grub.cfg file, why do they keep showing up in the grub menu at boot time? What file is actually displayed as the grub menu at boot time, and how does that file get updated with the info from the grub.cfg file? It seems that the cfg file is updated correctly, but the menu isn't. (And I did run sudo update-grub.)
                  PETERV<br />17&quot; MacBook Pro - Snow Leopard<br />OS&#39;s: Snow Leopard 10.6.4/Kubuntu 10.04/Windows XP Pro SP3<br />Parallels 5.0<br />2.5 GHz Intel Core 2 Duo 4GB SDRAM<br />WD 1TB My Book Studio quad-interface External Drive

                  Comment


                    #10
                    Re: Problem with GRUB

                    Right, but removing the kernels isn't the problem Qqmike. The problem is getting them off the grub menu. What is in that posting doesn't do that for me.
                    PETERV<br />17&quot; MacBook Pro - Snow Leopard<br />OS&#39;s: Snow Leopard 10.6.4/Kubuntu 10.04/Windows XP Pro SP3<br />Parallels 5.0<br />2.5 GHz Intel Core 2 Duo 4GB SDRAM<br />WD 1TB My Book Studio quad-interface External Drive

                    Comment


                      #11
                      Re: Problem with GRUB

                      "package manager" is a general term he used, not knowing which you prefer - Synaptic, apt-get, KpackageKit are the most used here - but there are others. Remember - linux is all about choice

                      I have assumed, since you're running a VM that you did a fresh install of 10.04 rather than an update. The point is that if you did an upgrade from a (k)ubuntu version before 9.10 - your grub setup may be unusual.

                      Back to the issue at hand - I can't for the life of me imagine how grub is displaying items not in grub.cfg because that's where it get the menu. You say you made a back up of grub.cfg - not in the /boot/grub directory I hope.

                      sudo update-grub could not have detected anything properly un-installed. update-grub looks for packages named "linux-image-..." which contain /boot/initrd.img... files.

                      First step is to make sure you removed the images and not just the headers. To do this, open a terminal and type ls /boot. If you have more images than you want, use your package manager to remove packages named "linux-image" - BE SURE not to remove the one that works for you!

                      Second, move /boot/grub/grub.cfg out of the /boot/grub directory

                      Third, sudo update-grub again

                      Fourth, view the new /boot/grub/grub.cfg and see what it contains.

                      I'll be shocked if it detects images that don't exist.

                      Please Read Me

                      Comment

                      Working...
                      X