LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-15-2008, 04:25 PM   #1
JustinK101
Member
 
Registered: Jan 2007
Posts: 55

Rep: Reputation: 15
Can't Update Using YUM Because /boot Partion Needs To Be Increased


Running CentOS and doing a standard update:

sudo yum update

And it wants to install a big set of updates, 249 in all. I download them, but then the yum update fails with a mesage about /boot not having enough storage.

How do I increase the size of the /boot partition to allow the updates to install? Below is the details on my /boot partion:

Code:
Filesystem    SIZE   USED    AVAIL   USE%   Mounted On
/dev/sda1    99M     92M     1.9M     99%     /boot
 
Old 12-15-2008, 04:34 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,790

Rep: Reputation: 292Reputation: 292Reputation: 292
99M is plenty of space for a CentOS /boot partition. My CentOS directory takes up 15M. Take a look in your /boot and see if it is filled up with old kernels. If so go into yum or rpm and delete all of the old kernel packages.

-------------------
Steve Stites
 
Old 12-15-2008, 05:57 PM   #3
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
I recommend only using yum to remove old kernels. rpm does not show what dependent packages it removes at the same time, and does not ask for confirmation.
 
Old 12-15-2008, 06:19 PM   #4
JustinK101
Member
 
Registered: Jan 2007
Posts: 55

Original Poster
Rep: Reputation: 15
So there are a bunch of files in /boot. Most of the begin with somethings like:

config-2.6.9*
initrd-2.6.9*
sysvers-2.6.9*
System.map-2.6.9*
vmlinuz-2.6.9*

What are safe to delete? How do I clean /boot up?

The output of yum list kernel lists like 12.

Thanks.

Last edited by JustinK101; 12-15-2008 at 06:22 PM.
 
Old 12-15-2008, 06:23 PM   #5
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
can you do a

Code:
yum list kernel
please

and paste the output here.
 
Old 12-15-2008, 06:26 PM   #6
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,790

Rep: Reputation: 292Reputation: 292Reputation: 292
Each kernel package installs several files in /boot. The files you listed look like a group of files installed by a single kernel package.

Find out what kernel you are using with the uname command:

uname -a

Then use yum or rpm to list all of your kernel rpm packages and remove all kernels other than the one you are using.

-------------------
Steve Stites
 
Old 12-15-2008, 06:26 PM   #7
JustinK101
Member
 
Registered: Jan 2007
Posts: 55

Original Poster
Rep: Reputation: 15
Sure here is the output:

Code:
yum list kernel
Setting up repositories
Reading repository metadata in from local files
Installed Packages
kernel.i686                              2.6.9-67.0.22.EL       installed
kernel.i686                              2.6.9-67.0.7.EL        installed
kernel.i686                              2.6.9-67.0.15.EL       installed
kernel.i686                              2.6.9-55.0.2.EL        installed
kernel.i686                              2.6.9-67.0.1.EL        installed
kernel.i686                              2.6.9-42.0.10.EL       installed
kernel.i686                              2.6.9-42.0.3.plus.c4   installed
kernel.i686                              2.6.9-55.0.9.EL        installed
kernel.i686                              2.6.9-55.0.12.EL       installed
kernel.i686                              2.6.9-42.0.8.EL        installed
kernel.i686                              2.6.9-67.0.20.EL       installed
kernel.i686                              2.6.9-42.EL            installed
Available Packages
kernel.i686                              2.6.9-78.0.8.EL        update
kernel.i586                              2.6.9-78.0.8.EL        update
And the output of uname -a

Code:
2.6.9-67.0.22.ELsmp #1 i686 i386 GNU/Linux
How do I remove certain kernals? I tried yum remove kernel.i686 but it wanted to remove all?

Last edited by JustinK101; 12-15-2008 at 06:30 PM.
 
Old 12-15-2008, 06:30 PM   #8
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
ok you should be safe to remove a few of those.

Try this command

Code:
yum remove kernel-2.6.9-55.0.2.EL kernel-2.6.9-67.0.1.EL kernel-2.6.9-42.0.10.EL kernel-2.6.9-42.0.3.plus.c4 kernel-2.6.9-55.0.9.EL  kernel-2.6.9-55.0.12.EL kernel-2.6.9-42.0.8.EL kernel-2.6.9-67.0.20.EL kernel-2.6.9-42.EL
To remove all but the three newest kernels.

After that, you should have enough space on your boot partition to complete the update.
 
  


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
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-03-2010 12:42 AM
Lost boot capability after yum update The_Bear Fedora - Installation 4 10-26-2006 02:43 AM
boot problems after yum update evasion81 Red Hat 1 12-17-2004 12:50 PM
Must "/boot" partion be installed in the primary partion? domeili Linux - Newbie 9 11-01-2003 09:27 AM


All times are GMT -5. The time now is 03:29 PM.

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