LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2012, 04:43 PM   #1
jbennett
Member
 
Registered: Apr 2012
Distribution: CentOS 6.2
Posts: 45

Rep: Reputation: Disabled
Remove old kernels to make room on /boot?


I am attempting to run yum update on my CentOS 6.3 install.

I have run into the following:

Code:
Running Transaction Test

Transaction Check Error:
  installing package kernel-2.6.32-279.9.1.el6.i686 needs 17MB on the /boot filesystem

Error Summary
-------------
Disk Requirements:
  At least 17MB more space needed on the /boot filesystem.
When I check /boot:
Code:
[root@nagiosxivm profile.d]# df -H /boot
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda1              102M    86M    11M  89% /boot
When I check for old kernels:
Code:
[root@nagiosxivm profile.d]# rpm -qa | grep kernel
kernel-2.6.32-131.17.1.el6.i686
dracut-kernel-004-256.el6.noarch
kernel-firmware-2.6.32-220.4.1.el6.noarch
kernel-headers-2.6.32-220.4.1.el6.i686
kernel-devel-2.6.32-220.4.1.el6.i686
kernel-2.6.32-71.el6.i686
kernel-2.6.32-71.29.1.el6.i686
kernel-devel-2.6.32-71.29.1.el6.i686
vmadd-kernel-module-RHEL-2.0-1.i386
kernel-2.6.32-220.4.1.el6.i686
kernel-devel-2.6.32-131.17.1.el6.i686
Am I safe to do the following so as to avoid having to resize the /boot partition?

Code:
# rpm -e kernel-2.6.32-71.el6.i686 kernel-2.6.32-71.29.1.el6.i686 kernel-2.6.32-131.17.1.el6.i686 kernel-devel-2.6.32-131.17.1.el6.i686 kernel-devel-2.6.32-71.29.1.el6.i686
 
Old 10-03-2012, 04:46 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
sure, that's fine. The devel packages won't affect /boot to any extent, or actually at all I don't think, but the kernels can go if you know you don't use them. You may wis to back up your bootloader config for safety, and check it still makes sense after you remove them, but you should be fine.
 
Old 10-03-2012, 05:05 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
I would use yum remove rather than rpm -e personally, but yes that's fine
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to remove kernels? vibinlakshman Linux - Newbie 2 08-27-2009 08:57 AM
How to make room in partition? markg Linux - Newbie 3 04-06-2009 10:38 PM
how to remove old kernels ashwin_cse Ubuntu 4 06-11-2007 12:23 AM
How do I remove old kernels from boot loader? XryanX Fedora 7 04-26-2004 12:30 PM
how to remove old kernels? gmoney Red Hat 1 10-15-2003 06:21 AM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration