Portal Home > Knowledgebase > Articles Database > Which of this files in /boot is safe to be deleted ?


Which of this files in /boot is safe to be deleted ?




Posted by WebHostDog, 12-04-2007, 12:47 PM
Hello, After installing Kernels seems /boot is boing to be full soon. Which files can be safely deleted ? Mean lets say to keep the latest Kernel and previous version: root@[/boot]# ls -la total 70317 drwxr-xr-x 4 root root 3072 Dec 4 11:28 ./ drwxr-xr-x 22 root root 4096 Sep 29 10:41 ../ -rwxr--r-- 1 root root 6144 Nov 9 2006 aquota.user* -rw-r--r-- 1 root root 48736 Sep 28 2005 config-2.4.21-37.EL -rw-r--r-- 1 root root 48851 Sep 28 2005 config-2.4.21-37.ELsmp -rw-r--r-- 1 root root 48951 Oct 19 2006 config-2.4.21-47.0.1.EL -rw-r--r-- 1 root root 49066 Oct 19 2006 config-2.4.21-47.0.1.ELsmp -rw-r--r-- 1 root root 49066 Aug 1 2006 config-2.4.21-47.ELsmp -rw-r--r-- 1 root root 48951 Jun 11 18:29 config-2.4.21-50.EL -rw-r--r-- 1 root root 49066 Jun 11 18:21 config-2.4.21-50.ELsmp -rw-r--r-- 1 root root 48951 Aug 16 17:11 config-2.4.21-51.EL -rw-r--r-- 1 root root 49066 Aug 16 17:03 config-2.4.21-51.ELsmp -rw-r--r-- 1 root root 48951 Sep 27 18:38 config-2.4.21-52.EL -rw-r--r-- 1 root root 49066 Sep 27 18:30 config-2.4.21-52.ELsmp -rw-r--r-- 1 root root 48951 Dec 3 13:51 config-2.4.21-53.EL -rw-r--r-- 1 root root 49066 Dec 3 13:42 config-2.4.21-53.ELsmp drwxr-xr-x 2 root root 1024 Dec 4 11:28 grub/ -rw-r--r-- 1 root root 276201 May 5 2006 initrd-2.4.21-37.EL.img -rw-r--r-- 1 root root 283119 May 5 2006 initrd-2.4.21-37.ELsmp.img -rw-r--r-- 1 root root 282640 Apr 10 2007 initrd-2.4.21-47.0.1.EL.img -rw-r--r-- 1 root root 289544 Oct 21 2006 initrd-2.4.21-47.0.1.ELsmp.img -rw-r--r-- 1 root root 289539 Sep 23 2006 initrd-2.4.21-47.ELsmp.img -rw-r--r-- 1 root root 282779 Jun 26 22:04 initrd-2.4.21-50.EL.img -rw-r--r-- 1 root root 289656 Jun 26 22:03 initrd-2.4.21-50.ELsmp.img -rw-r--r-- 1 root root 282783 Aug 21 05:32 initrd-2.4.21-51.EL.img -rw-r--r-- 1 root root 289652 Aug 21 05:32 initrd-2.4.21-51.ELsmp.img -rw-r--r-- 1 root root 282781 Sep 28 08:22 initrd-2.4.21-52.EL.img -rw-r--r-- 1 root root 289649 Sep 28 08:23 initrd-2.4.21-52.ELsmp.img -rw-r--r-- 1 root root 282778 Dec 4 11:27 initrd-2.4.21-53.EL.img -rw-r--r-- 1 root root 289653 Dec 4 11:28 initrd-2.4.21-53.ELsmp.img -rw-r--r-- 1 root root 547 May 5 2006 kernel.h drwx------ 2 root root 12288 May 5 2006 lost+found/ -rw-r--r-- 1 root root 10213 Jan 4 2005 message -rw-r--r-- 1 root root 10213 Jan 4 2005 message.ja -rwxr--r-- 1 root root 32 Nov 9 2006 quota.user* lrwxrwxrwx 1 root root 26 Sep 29 09:37 System.map -> System.map-2.4.21-52.ELsmp -rw-r--r-- 1 root root 578588 Sep 28 2005 System.map-2.4.21-37.EL -rw-r--r-- 1 root root 606073 Sep 28 2005 System.map-2.4.21-37.ELsmp -rw-r--r-- 1 root root 580154 Oct 19 2006 System.map-2.4.21-47.0.1.EL -rw-r--r-- 1 root root 607622 Oct 19 2006 System.map-2.4.21-47.0.1.ELsmp -rw-r--r-- 1 root root 607622 Aug 1 2006 System.map-2.4.21-47.ELsmp -rw-r--r-- 1 root root 580321 Jun 11 18:29 System.map-2.4.21-50.EL -rw-r--r-- 1 root root 607789 Jun 11 18:21 System.map-2.4.21-50.ELsmp -rw-r--r-- 1 root root 580321 Aug 16 17:11 System.map-2.4.21-51.EL -rw-r--r-- 1 root root 607789 Aug 16 17:03 System.map-2.4.21-51.ELsmp -rw-r--r-- 1 root root 580321 Sep 27 18:38 System.map-2.4.21-52.EL -rw-r--r-- 1 root root 607789 Sep 27 18:30 System.map-2.4.21-52.ELsmp -rw-r--r-- 1 root root 580321 Dec 3 13:51 System.map-2.4.21-53.EL -rw-r--r-- 1 root root 607789 Dec 3 13:42 System.map-2.4.21-53.ELsmp -rwxr-xr-x 1 root root 2908624 Sep 28 2005 vmlinux-2.4.21-37.EL* -rwxr-xr-x 1 root root 3543696 Sep 28 2005 vmlinux-2.4.21-37.ELsmp* -rwxr-xr-x 1 root root 2912724 Oct 19 2006 vmlinux-2.4.21-47.0.1.EL* -rwxr-xr-x 1 root root 3551892 Oct 19 2006 vmlinux-2.4.21-47.0.1.ELsmp* -rwxr-xr-x 1 root root 3551888 Aug 1 2006 vmlinux-2.4.21-47.ELsmp* -rwxr-xr-x 1 root root 2912720 Jun 11 18:29 vmlinux-2.4.21-50.EL* -rwxr-xr-x 1 root root 3551888 Jun 11 18:21 vmlinux-2.4.21-50.ELsmp* -rwxr-xr-x 1 root root 2912720 Aug 16 17:11 vmlinux-2.4.21-51.EL* -rwxr-xr-x 1 root root 3551888 Aug 16 17:03 vmlinux-2.4.21-51.ELsmp* -rwxr-xr-x 1 root root 2912720 Sep 27 18:38 vmlinux-2.4.21-52.EL* -rwxr-xr-x 1 root root 3551888 Sep 27 18:30 vmlinux-2.4.21-52.ELsmp* -rwxr-xr-x 1 root root 2912720 Dec 3 13:51 vmlinux-2.4.21-53.EL* -rwxr-xr-x 1 root root 3551888 Dec 3 13:42 vmlinux-2.4.21-53.ELsmp* -rw-r--r-- 1 root root 1252609 Sep 28 2005 vmlinuz-2.4.21-37.EL -rw-r--r-- 1 root root 1363969 Sep 28 2005 vmlinuz-2.4.21-37.ELsmp -rw-r--r-- 1 root root 1260075 Oct 19 2006 vmlinuz-2.4.21-47.0.1.EL -rw-r--r-- 1 root root 1368141 Oct 19 2006 vmlinuz-2.4.21-47.0.1.ELsmp -rw-r--r-- 1 root root 1367751 Aug 1 2006 vmlinuz-2.4.21-47.ELsmp -rw-r--r-- 1 root root 1260875 Jun 11 18:29 vmlinuz-2.4.21-50.EL -rw-r--r-- 1 root root 1370368 Jun 11 18:21 vmlinuz-2.4.21-50.ELsmp -rw-r--r-- 1 root root 1260877 Aug 16 17:11 vmlinuz-2.4.21-51.EL -rw-r--r-- 1 root root 1370369 Aug 16 17:03 vmlinuz-2.4.21-51.ELsmp -rw-r--r-- 1 root root 1260879 Sep 27 18:38 vmlinuz-2.4.21-52.EL -rw-r--r-- 1 root root 1370369 Sep 27 18:30 vmlinuz-2.4.21-52.ELsmp -rw-r--r-- 1 root root 1260893 Dec 3 13:51 vmlinuz-2.4.21-53.EL -rw-r--r-- 1 root root 1370450 Dec 3 13:42 vmlinuz-2.4.21-53.ELsmp root@[/boot]# This is the /etc/grub.conf # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,0) # kernel /vmlinuz-version ro root=/dev/sda2 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz title CentOS (2.4.21-53.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-53.ELsmp ro root=LABEL=/ initrd /initrd-2.4.21-53.ELsmp.img title CentOS (2.4.21-53.EL) root (hd0,0) kernel /vmlinuz-2.4.21-53.EL ro root=LABEL=/ initrd /initrd-2.4.21-53.EL.img title CentOS (2.4.21-52.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-52.ELsmp ro root=LABEL=/ initrd /initrd-2.4.21-52.ELsmp.img title CentOS (2.4.21-52.EL) root (hd0,0) kernel /vmlinuz-2.4.21-52.EL ro root=LABEL=/ initrd /initrd-2.4.21-52.EL.img title CentOS (2.4.21-51.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-51.ELsmp ro root=LABEL=/ initrd /initrd-2.4.21-51.ELsmp.img title CentOS (2.4.21-51.EL) root (hd0,0) kernel /vmlinuz-2.4.21-51.EL ro root=LABEL=/ initrd /initrd-2.4.21-51.EL.img title CentOS (2.4.21-50.EL) root (hd0,0) kernel /vmlinuz-2.4.21-50.EL ro root=LABEL=/ initrd /initrd-2.4.21-50.EL.img title CentOS (2.4.21-50.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-50.ELsmp ro root=LABEL=/ initrd /initrd-2.4.21-50.ELsmp.img title CentOS (2.4.21-47.0.1.EL) root (hd0,0) kernel /vmlinuz-2.4.21-47.0.1.EL ro root=LABEL=/ initrd /initrd-2.4.21-47.0.1.EL.img title CentOS (2.4.21-47.0.1.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-47.0.1.ELsmp ro root=LABEL=/ initrd /initrd-2.4.21-47.0.1.ELsmp.img title CentOS (2.4.21-47.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-47.ELsmp ro root=LABEL=/ initrd /initrd-2.4.21-47.ELsmp.img title CentOS-3 (2.4.21-37.ELsmp) root (hd0,0) kernel /vmlinuz-2.4.21-37.ELsmp ro root=LABEL=/ initrd /initrd-2.4.21-37.ELsmp.img title CentOS-3-up (2.4.21-37.EL) root (hd0,0) kernel /vmlinuz-2.4.21-37.EL ro root=LABEL=/ initrd /initrd-2.4.21-37.EL.img Thanks,

Posted by ServerSurgeon George, 12-04-2007, 02:07 PM
It's best to run: rpm -qa | grep kernel And then run: rpm -e kernel-version which you don't need

Posted by Scott.Mc, 12-04-2007, 02:31 PM
I agree with the previous poster, you should remove old kernel RPM's since you are likely running centOS 3. 2.4.21-53.ELsmp is the kernel you are presently booting so anything not relating to this kernel can be deleted.

Posted by SROHost, 12-04-2007, 03:27 PM
I somewhat disagree with the previous poster I always keep at least one previous stable kernel as a fall back. Even if you've been running the same kernel for years, you never know what kind of bugs may be uncovered. Hopefully, booting into a previous kernel will never be needed, but when it is needed it can be a life saver.

Posted by WebHostDog, 12-04-2007, 03:34 PM
Thank you so much for the advise. Pretty true deleting the content directly will not be a good idea.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read