I got a warning of my /boot partition is almost full(85%). What should I do? Can I remove one of the backup kernel? How to do it safely?My partition right nowFilesystem           1K-blocks      Used Available Use% Mounted on/dev/sda2             10321208    719856   9077064   8% /tmpfs                  4015460         0   4015460   0% /dev/shm/dev/sda1               101133     80781     15130  85% /boot/dev/sda8            253782660  47668764 193222404  20% /home/dev/sda7              1032088    535840    443820  55% /tmp/dev/sda3             10321208   4823740   4973180  50% /usr/dev/sda5             10321208   1807284   7989636  19% /varThe Kernel I haveroot@server1 [/boot]# rpm -q kernelkernel-2.6.32-358.el6.x86_64kernel-2.6.32-358.18.1.el6.x86_64kernel-2.6.32-358.23.2.el6.x86_64The /Boot directoryroot@server1 [/boot]# ls -la /boottotal 78741dr-xr-xr-x.  5 root root     2048 Dec  3 05:33 ./drwxr-xr-x. 23 root root     4096 Dec  4 05:46 ../-rw-r--r--   1 root root   104112 Aug 28 12:43 config-2.6.32-358.18.1.el6.x86_64-rw-r--r--   1 root root   104112 Oct 16 14:01 config-2.6.32-358.23.2.el6.x86_64-rw-r--r--.  1 root root   104081 Feb 21  2013 config-2.6.32-358.el6.x86_64drwxr-xr-x.  3 root root     1024 Sep 20 20:15 efi/drwxr-xr-x.  2 root root     1024 Oct 21 15:06 grub/-rw-r--r--   1 root root 16191847 Sep 20 20:21 initramfs-2.6.32-358.18.1.el6.x86_64.img-rw-r--r--   1 root root 16261655 Oct 21 15:06 initramfs-2.6.32-358.23.2.el6.x86_64.img-rw-r--r--.  1 root root 16187335 Sep 20 20:16 initramfs-2.6.32-358.el6.x86_64.img-rw-------   1 root root  3698835 Sep 20 20:27 initrd-2.6.32-358.18.1.el6.x86_64kdump.img-rw-------   1 root root  3983771 Dec  3 05:33 initrd-2.6.32-358.23.2.el6.x86_64kdump.img-rw-------   1 root root  3695290 Sep 20 20:21 initrd-2.6.32-358.el6.x86_64kdump.imgdrwx------.  2 root root    12288 Sep 20 20:13 lost+found/-rw-r--r--   1 root root   185949 Aug 28 12:44 symvers-2.6.32-358.18.1.el6.x86_64.gz-rw-r--r--   1 root root   185978 Oct 16 14:02 symvers-2.6.32-358.23.2.el6.x86_64.gz-rw-r--r--.  1 root root   185734 Feb 21  2013 symvers-2.6.32-358.el6.x86_64.gz-rw-r--r--   1 root root  2408641 Aug 28 12:43 System.map-2.6.32-358.18.1.el6.x86_64-rw-r--r--   1 root root  2408974 Oct 16 14:01 System.map-2.6.32-358.23.2.el6.x86_64-rw-r--r--.  1 root root  2407466 Feb 21  2013 System.map-2.6.32-358.el6.x86_64-rwxr-xr-x   1 root root  4046224 Aug 28 12:43 vmlinuz-2.6.32-358.18.1.el6.x86_64*-rw-r--r--   1 root root      171 Aug 28 12:43 .vmlinuz-2.6.32-358.18.1.el6.x86_64.hmac-rwxr-xr-x   1 root root  4047152 Oct 16 14:01 vmlinuz-2.6.32-358.23.2.el6.x86_64*-rw-r--r--   1 root root      171 Oct 16 14:01 .vmlinuz-2.6.32-358.23.2.el6.x86_64.hmac-rwxr-xr-x.  1 root root  4043888 Feb 21  2013 vmlinuz-2.6.32-358.el6.x86_64*-rw-r--r--.  1 root root      166 Feb 21  2013 .vmlinuz-2.6.32-358.el6.x86_64.hmacThe Kernel I'm usingroot@server1 [/boot]# uname -aLinux server1 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
boot partition is almost full in CentOS
centos;boot;partition
Do the following to keep just the last 2 kernels on your system, to keep /boot clean1 - Edit /etc/yum.conf and set the following parameterinstallonly_limit=2This will make your package manager keep just the 2 last kernels on your system(including the one that is running)2 - Install yum-utils:yum install yum-utils3- Make an oldkernel cleanup:package-cleanup --oldkernels --count=2Done. This will erase in a good fashion the old kernels, and, keep just the last 2 of them for the next upgrades.