English
Ask Your Question
3

How to update grub2 on Fedora 16?

asked 2011-11-10 05:39:26 +0000

asto gravatar image

updated 2011-11-10 11:55:51 +0000

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
3

answered 2013-02-05 17:35:28 +0000

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
3

answered 2011-11-11 03:07:56 +0000

Jackie gravatar image

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

if you use grub2 in Fedora16.

edit flag offensive delete link more
2

answered 2011-12-10 14:33:19 +0000

Brainiac gravatar image

updated 2013-02-05 18:46:28 +0000

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
1

answered 2011-11-10 10:08:35 +0000

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.

D'oh!

edit flag offensive delete link more
0

answered 2011-11-10 05:59:07 +0000

updated 2011-11-10 06:03:37 +0000

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

Comments

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 ( 2011-11-10 10:30:58 +0000 )edit
0

answered 2011-11-10 16:02:35 +0000

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
2 followers

Stats

Asked: 2011-11-10 05:39:26 +0000

Seen: 55,110 times

Last updated: Feb 05 '13