Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Linux. I am compiling Linux kernel (ver: in gcc in traditional manner in VMware machine in Ubuntu (kernel version - 2.6.38-8-generic) 11.04 version. I am unable to find, where to update about newly compiled kernel in the grub.cfg file. I updated the newly created image version name in the existing image. Then VMware didn't able to load new kernel. I have searched in internet but I didn't find. So anyone can help me, to update in the grub.cfg and to successfully load new kernel. Few things about what I have done:

  1. Make bzImage to create image file.
  2. Make modules_install && make install to install modules and then
  3. sudo mkinitramfs -o initramfs.img-2.6.34 2.6.34. Then
  4. sudo gedit grub.cfg. In that at the mementry I updated the version of vmlinuz and initrd from 2.6.38-8 to

This is I have done.

share|improve this question

migrated from Aug 28 '12 at 10:48

This question came from our site for professional and enthusiast programmers.

Try these commands:

sudo update-grub
sudo grub-install /dev/sda

The first command updates the grub and the grub.conf file. The second command installs the updated grub onto /dev/sda, which usually contains the Master Boot Record.

share|improve this answer

Run these command in terminal:

sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt-get update
sudo apt-get install -y boot-repair

After a few seconds, Boot Repair's main window will open. Click on Recommended repair.

Boot repair

This will update grub.cfg.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.