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 |
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 |
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.
|
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. |
can you do a
Code:
yum list kernel and paste the output here. |
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 |
Sure here is the output:
Code:
yum list kernel Code:
2.6.9-67.0.22.ELsmp #1 i686 i386 GNU/Linux |
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 After that, you should have enough space on your boot partition to complete the update. |
All times are GMT -5. The time now is 09:32 PM. |