I want more entries in grub

General support questions
Post Reply
kaengo
Posts: 24
Joined: 2017/04/24 16:32:51
Contact:

I want more entries in grub

Post by kaengo » 2020/03/21 18:30:57

Hello,
kernel has updated several times the last years.
But I am using still 3.10.0-957,
all newer Kernels need some rework at the graphics driver, they don't start KDE but stop with error...
But I have no time to threat this problem now.
Now the Kernel is at the last line of grub,
I'm frightened, that it will disappear at next update...
What must I do to make the List of shown kernels longer?
(Or will the older kernels be deleted????? :o )

Greetings,
Holger
kaengo
engineer, germany
Centos 7 (hopefully at next time ...)

User avatar
TrevorH
Forum Moderator
Posts: 28084
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I want more entries in grub

Post by TrevorH » 2020/03/21 19:17:11

yum will not remove the running kernel.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

kaengo
Posts: 24
Joined: 2017/04/24 16:32:51
Contact:

Re: I want more entries in grub

Post by kaengo » 2020/03/21 19:22:22

Thank you for the answer,
but it will also not disappear from the menu of grub?

Greetings,
Holger
kaengo
engineer, germany
Centos 7 (hopefully at next time ...)

User avatar
TrevorH
Forum Moderator
Posts: 28084
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I want more entries in grub

Post by TrevorH » 2020/03/22 00:19:55

It won't remove the running one so it won't update grub either.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

desertcat
Posts: 718
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: I want more entries in grub

Post by desertcat » 2020/03/22 04:53:41

kaengo wrote:
2020/03/21 18:30:57
Hello,
kernel has updated several times the last years.
But I am using still 3.10.0-957,
all newer Kernels need some rework at the graphics driver, they don't start KDE but stop with error...
But I have no time to threat this problem now.
Now the Kernel is at the last line of grub,
I'm frightened, that it will disappear at next update...
What must I do to make the List of shown kernels longer?
(Or will the older kernels be deleted????? :o )

Greetings,
Holger
OK there is a quick and dirty trick you can try: Go to /etc/yum.conf find the section that says [main] and then find the line that says installonly_limit= to a larger number. The default is 5. There is just one wee tiny fly in the ointment: the size of your /boot partition. The /boot partition is usually between .5 to 1 GB . Once that fills up you are toast. If you are near max for that partition get a thumb drive and copy: 1) .vmlinuz-- 2) System.map-- 3) config-- 4) initramfs--... .img 5) initramfs-- ... dump.img 6) symvers-- 7) vmlinuz -- for each kernel you want to keep. If are running the OLDEST kernel that one will not be deleted, however the next oldest kernel will be deleted. 5-7 Kernels is about the maximum number of kernels you can store in 1GB; fewer if less than 1 GB

One thing you can do before you get too worried is to run the command df -m and see what the size of you /boot partition is, how much of the partition is being used, how much is left and then adjust the number in /etc/yum.comf installonly_limit= so that /boot never exceeds 80% => 85%, that will give you a little wiggle room.

Hope this helps.

D'Cat

desertcat
Posts: 718
Joined: 2014/08/07 02:17:29
Location: Tucson, AZ

Re: I want more entries in grub

Post by desertcat » 2020/03/22 05:03:11

kaengo wrote:
2020/03/21 18:30:57
Hello,
kernel has updated several times the last years.
But I am using still 3.10.0-957,
all newer Kernels need some rework at the graphics driver, they don't start KDE but stop with error...
But I have no time to threat this problem now.
Now the Kernel is at the last line of grub,
I'm frightened, that it will disappear at next update...
What must I do to make the List of shown kernels longer?
(Or will the older kernels be deleted????? :o )

Greetings,
Holger
P.S. If you are now stuck inside because they have rolled up the streets to prevent the spread of the coronavirus, now might be a dandy to update to the latest and greatest kernel (3.10.0-1062.18.1.el7.x86_64) rework the graphics driver, etc. -- What else do you have to do?!? I call this time, "Time to get around to doing all the stuff I've been meaning to do" time.

kaengo
Posts: 24
Joined: 2017/04/24 16:32:51
Contact:

Re: I want more entries in grub

Post by kaengo » 2020/03/22 12:12:49

Thank you all. My boot partition has 2GB and is 30% full ...:-).
I did, as you told.
You are right with Corona,
but I'm working all time from home and have no break.
I must first have an alternate computer running,
before tackling this...

Greetings,
Holger
kaengo
engineer, germany
Centos 7 (hopefully at next time ...)

Post Reply

Return to “CentOS 7 - General Support”