Ask Your Question

How to update grub2 on Fedora 16?

asked 2011-11-09 23:39:26 -0500

asto gravatar image

updated 2011-11-10 05:55:51 -0500

I just upgraded to F16 from F15 yesterday. I noticed today that I'm running a 2.x kernel rather than the 3.x F16 comes with. When I rebooted and entered the grub menu, there was no 3.x option, instead the option to upgrade to verne was still there. When I selected that, I was told to press any key to continue and was promptly returned to the grub menu again.

I booted back into the latest 2.x kernel and checked the boot folder and sure enough, the 3.1.0-7 kernel was there, there just wasn't a grub option. Upon checking the grub docs I found that I needed to run "update-grub" as root. I tried that but there's no such command!

What do I need to do to get grub to recognise the new kernel?

edit retag flag offensive close merge delete

6 Answers

Sort by ยป oldest newest most voted

answered 2013-02-05 11:35:28 -0500

Rahul Bhadana gravatar image

1 - go to super mode by typing #su followed by your root password

2 - >grub2-mkconfig -o /boot/grub2/grub.cfg

edit flag offensive delete link more

answered 2011-11-10 21:07:56 -0500

Jackie gravatar image

grub2-mkconfig -o /boot/grub2/grub.cfg

if you use grub2 in Fedora16.

edit flag offensive delete link more

answered 2011-12-10 08:33:19 -0500

Brainiac gravatar image

updated 2013-02-05 12:46:28 -0500

hhlp gravatar image

Thank you for your answer Jackie, I really need this. Anyway, it is really hard to remember (well, I don't want to memorize actually :)), so I suggest the following command to make alias:

`alias update-grub='grub2-mkconfig -o /boot/grub2/grub.cfg'`

This means that, when we write update-grub as administrator in terminal (in current session), it executes grub2-mkconfig -o /boot/grub2/grub.cfg command. Unfortunately, this type of alias is available for only current session.

So if you want to make alias permanent, follow these steps:

  1. Open terminal
  2. Type command:
gedit .bashrc
  1. You can write the following command after '# ./etc/bashrc' line or at the end of the document. Don't write it in the middle because there are conditional situations so you can break everything:
alias update-grub='sudo grub2-mkconfig -o /boot/grub2/grub.cfg'
  1. Save and close

Close all your terminal instance and Open terminal again, you can use update-grub command anytime you want. You must get administrator rights as typing su and entering password to use update-grub alias.

Good luck.

edit flag offensive delete link more

answered 2011-11-10 04:08:35 -0500

asto gravatar image

I have solved the problem! Turns out that I failed to correctly recognise the problem. When F16 was installed, grub2 hadn't been installed onto the correct disk and so, it was grub (legacy) that was doing the bootloading. And since the entries for grub (obviously) hadn't been updated for the new kernels, it was still showing the old options. So, running "grub2-install /dev/sdc" fixed the issue for me.


edit flag offensive delete link more

answered 2011-11-09 23:59:07 -0500

SoumyaC gravatar image

updated 2011-11-10 00:03:37 -0500

Can you just check this below question and see if it helps you

F16 Grub2

Also check this answer -

F15 -> F16

edit flag offensive delete link more


They were no random links, I just pointed you to some other questions in Ask Fedora, those could have helped you in determining your problem and possibly fixing it. Thanks for appreciating my help but normally when someone is trying to help you, such erratic comments are most unwelcome.

SoumyaC gravatar imageSoumyaC ( 2011-11-10 04:30:58 -0500 )edit

answered 2011-11-10 10:02:35 -0500

Rajat gravatar image

Asto, I have one question

rpm -qa kernel

because I have also done the same upgrade from 14 to 16 for me kernel version showing 3.1

edit flag offensive delete link more

Question Tools



Asked: 2011-11-09 23:39:26 -0500

Seen: 55,676 times

Last updated: Feb 05 '13