Ask Your Question
3

Multiple Fedora entries in grub

asked 2013-09-22 01:54:27 -0600

sshivali gravatar image

updated 2013-09-24 06:56:57 -0600

FranciscoD_ gravatar image

i have windows 7 and fedora 19. when i start my laptop it shows 3 option for fedora 19. i just want only one for windows and 2nd for fedora? plz help me

edit retag flag offensive close merge delete

Comments

i have option like 3.11.-200.fc19.86-64, 3.9.5-301.fc19.86-64 and lst one is rescue-ad5879643efa4c82b87c0199421c1c01, so i have to remove which one

sshivali gravatar imagesshivali ( 2013-09-25 01:13:22 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
9

answered 2013-09-22 19:34:24 -0600

sideburns gravatar image

Only keeping the latest kernel is a Very Bad Idea. As is mentioned in other comments, Fedora keeps the three most recent kernels by default so that if anything goes wrong with the newest one, you have two backup kernels to use. Why? Well, when I updated to the 3.11 kernel, there was a problem with the video drivers and I couldn't boot into a GUI. I was, however, able to reboot, select the kernel I was using before the update and get everything working long enough to learn what the problem was and fix it. Without that backup kernel, I'd have been in Very Big Trouble.

edit flag offensive delete link more

Comments

For this same reason, I actually INCREASED the number of previous kernels that my desktop keeps.

you can find the setting in /etc/yum.conf the installonly_limit is what you want. You can read more about yum.conf by doing man yum.conf

hmaarrfk gravatar imagehmaarrfk ( 2013-09-24 12:58:13 -0600 )edit

I agree that it is probably better to keep older kernels in case of problems, and not a good idea to remove them because you don't like looking at more than one option in the menu. If the appearance of the menu is objectionable, it might be best to set the timeout to 0 so boot skips past displaying it at all.

randomuser gravatar imagerandomuser ( 2013-09-30 01:26:06 -0600 )edit

That is a terrible idea! What do you do if the latest kernel doesn't boot and you can't get to the Grub menu to pick an earlier one? Keep booting and try to hit Esc fast enough? Having the menu visible for a few seconds is a small price to pay for the ability to pick whatever kernel works whenever you need.

sideburns gravatar imagesideburns ( 2013-09-30 02:11:04 -0600 )edit

or set it to 2 sec at least. it will work.

kumargaurav gravatar imagekumargaurav ( 2016-11-07 13:51:35 -0600 )edit
-1

answered 2013-09-30 15:44:00 -0600

jmt gravatar image

Installing a new kernel in Fedora does not tidy up the Grub boot menu. To accomplish what you want you should run

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

as the root user.

edit flag offensive delete link more
-2

answered 2013-09-22 16:14:27 -0600

Amit Caleechurn gravatar image

updated 2013-09-29 15:01:26 -0600

You've updated your system (kernel) multiple times which is why you have multiple menu entries in grub. Get a listing of installed kernels using rpm -qa | grep kernel-3. and use yum remove kernel-[the ones you wish to remove] to clean-up the system.

As a guide:

rpm -qa | grep kernel-3. returns:

kernel-3.11.1-200.fc19.x86_64

kernel-3.10.10-200.fc19.x86_64

kernel-3.10.11-200.fc19.x86_64

We only want to keep the one with the highest number (kernel-3.11.1-200.fc19.x86_64) which is the latest kernel.

Thus we'll run the command yum remove kernel-3.10.10-200.fc19.x86_64 kernel-3.10.11-200.fc19.x86_64 to remove the older kernels.

* As mentioned in other comments, keep at least the last known working kernel.

Method 2

yum install yum-utils

package-cleanup --oldkernels --count=2

Make the changes permanent while keeping backups:

vi /etc/yum.conf

installonly_limit=2
edit flag offensive delete link more

Comments

Wonder how a -2 rated answer can be accepted as the right one. This is question is also very old.

gobigobi66 gravatar imagegobigobi66 ( 2016-03-17 21:41:21 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-09-22 01:54:27 -0600

Seen: 14,729 times

Last updated: Sep 30 '13