Results 1 to 6 of 6

Thread: HELP, removed ALL kernel entries from my grub menu...

  1. #1
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,786
    Distro
    Ubuntu 13.10 Saucy Salamander

    HELP, removed ALL kernel entries from my grub menu...

    Hi,

    I was running low on space, so used
    Code:
    sudo apt-get remove linux-image-3.2.0-2*
    It remove all the older 3.2.0-2* kernels, but it also removed all entries for 3.2.0-3* kernels from the GRUB menu!

    Now, I have no selection in the GRUB menu to boot into my linux installation! (Please see included screenshot).

    I now understand that I should have used update-grub BEFORE rebooting; how do I get back into my installation so that I can install / update GRUB?

    I have access to live session (CD/USB). My skill set is intermediate-high. Comfortable with terminal. Information / pointers much appreciated.

    Regards,
    Attached Images Attached Images
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  2. #2
    Join Date
    Jul 2011
    Beans
    3,037
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HELP, removed ALL kernel entries from my grub menu...

    Are there any kernels left on the system or did your remove them all, so that there are no kernels installed?

  3. #3
    Join Date
    Nov 2009
    Location
    Segur De Calafell, Spain
    Beans
    11,660
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HELP, removed ALL kernel entries from my grub menu...

    As the previous poster mentioned, it is very important whether all kernels are removed from ubuntu, or they are only missing from the boot menu (I would think it's the former).

    Boot into live mode, open the root partition on the hdd and look into the /boot folder. Are there any vmlinuz files there?
    Darko.
    -----------------------------------------------------------------------
    Ubuntu 12.04 LTS 64bit & Windows 7 Ultimate 64bit

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

    Re: HELP, removed ALL kernel entries from my grub menu...

    At the Grub menu we can press C and that will get us to a command line. What you do with it is dependant on at least two things,

    a) the existence of at least one Linux kernel

    b) our understanding of the Grub manual.

    http://www.gnu.org/software/grub/manual/

    https://help.ubuntu.com/community/Grub2

    According to that manual it is possible to boot a Linux image from the Grub command line. That boot menu would not have been changed unless update-grub was run, either as part of the removal of the Linux kernels or by you. Otherwise you would have a menu that listed options that did not work because the kernels were removed. I do not think that simply running update-grub will solve your problem. If there was a Linux kernel present then it would have appeared in the Grub menu.

    You might want to give a lot of thought to re-installing.

    Regards.
    Last edited by grahammechanical; November 7th, 2012 at 02:28 PM.
    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
    Oct 2007
    Location
    Chennai, India
    Beans
    3,786
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: HELP, removed ALL kernel entries from my grub menu...

    Hello,

    Thank you for your replies. Will check /boot tomorrow.

    I am aware of using the grub command line, but do not know the syntax.

    Can someone post the entire command: at the grub menu, select the kernel option, but press "e' instead of enter. Now please copy/paste/screen shot /photo the commands.

    Much thanks in advance.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

  6. #6
    Join Date
    Oct 2007
    Location
    Chennai, India
    Beans
    3,786
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: HELP, removed ALL kernel entries from my grub menu...

    Hello,

    Problem solved, thank you for all your help and suggestions.

    Will post details shortly, but, just in case, here is the summary:

    a) Booted into live USB
    b) Mounted "/" (root) file system from HDD
    c) Checked "/boot"; no kernels present
    d) chrooted into the installation
    e) installed linux-image-current-generic using apt-get
    f) the above installation did not complete totally, was not able to create required GRUB entries
    g) Rebooted safely, entered grub menu, opened GRUB command line
    h) typed in (manually) GRUB commands required to boot existing installation
    i) that's it. it booted normally into my installation, but wifi modules (broadcom) not installed
    j) again (re) installed linux-image-current-generic
    k) Ran 'dpkg --configure -a', which created the required GRUB entries
    l) Rebooted, everything was normal, except wifi modules still not loaded
    m) ran dkms with relevant parms to re-create broadcom wifi modules, then rebooted
    n) system back to fully working status.

    Detailed analysis, commands and outputs to follow shortly; for future reference for anyone else in the same position.
    Cheers,PRShah
    Make your own: Ubuntu, Kubuntu, Xubuntu, Mythbuntu All-in-One Live DVD
    "I never make mistakes; I thought I did, once.. but I was wrong."

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
  •