Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

linux boot disk full

Posted on 2012-08-22
4
Medium Priority
?
772 Views
Last Modified: 2013-08-07
What files can I get rid of in my boot directory.
[oracle@rac1 ~]$ uname -aa
Linux rac1 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

I had to revert to an old kernel after upgrading as I was having boot issues.
I cannot modify the grub.conf so that the boot occurs with kernel 2.6.18-194 as I am out of space.
Any ideas? thanks in advance.
[oracle@rac1 ~]$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup01-LogVol00
                     466953376  97946868 344904008  23% /
/dev/sda1               101086    101078         0 100% /boot
tmpfs                  8147864   2127984   6019880  27% /dev/shm
[oracle@rac1 ~]$ xlr /boot
total 95229
-rw-r--r-- 1 root root 1953660 Mar 29  2010 vmlinuz-2.6.18-194.el5
-rw-r--r-- 1 root root 1242340 Mar 29  2010 System.map-2.6.18-194.el5
-rw-r--r-- 1 root root   66887 Mar 29  2010 config-2.6.18-194.el5
-rw-r--r-- 1 root root  112656 Mar 29  2010 symvers-2.6.18-194.el5.gz
-rw-r--r-- 1 root root  424544 Jul 25  2011 xen.gz-2.6.18-274.el5
-rw-r--r-- 1 root root 1268851 Jul 25  2011 System.map-2.6.18-274.el5
-rw-r--r-- 1 root root   67609 Jul 25  2011 config-2.6.18-274.el5
-rw-r--r-- 1 root root 2106012 Jul 25  2011 vmlinuz-2.6.18-274.el5
-rw-r--r-- 1 root root  116120 Jul 25  2011 symvers-2.6.18-274.el5.gz
-rw-r--r-- 1 root root 2196594 Jul 25  2011 vmlinuz-2.6.18-274.el5xen
-rw-r--r-- 1 root root 1230739 Jul 25  2011 System.map-2.6.18-274.el5xen
-rw-r--r-- 1 root root   67250 Jul 25  2011 config-2.6.18-274.el5xen
-rw-r--r-- 1 root root  115821 Jul 25  2011 symvers-2.6.18-274.el5xen.gz
-rw-r--r-- 1 root root   67636 Jul 25  2011 config-2.6.18-274.el5debug
-rw-r--r-- 1 root root 2159548 Jul 25  2011 vmlinuz-2.6.18-274.el5debug
-rw-r--r-- 1 root root 1288212 Jul 25  2011 System.map-2.6.18-274.el5debug
-rw-r--r-- 1 root root  116594 Jul 25  2011 symvers-2.6.18-274.el5debug.gz
-rwxr-xr-x 1 root root  986192 Jul 25  2011 xen-syms-2.6.18-274.el5
-rw-r--r-- 1 root root 2464380 Jul 27  2011 System.map-2.6.32-200.13.1.el5uek.debug
-rw-r--r-- 1 root root   98972 Jul 27  2011 config-2.6.32-200.13.1.el5uek.debug
-rwxr-xr-x 1 root root 3725504 Jul 27  2011 vmlinuz-2.6.32-200.13.1.el5uek.debug
-rw-r--r-- 1 root root  161457 Jul 27  2011 symvers-2.6.32-200.13.1.el5uek.debug.gz
-rw-r--r-- 1 root root 2437866 Jul 27  2011 System.map-2.6.32-200.13.1.el5uek
-rw-r--r-- 1 root root   98997 Jul 27  2011 config-2.6.32-200.13.1.el5uek
-rwxr-xr-x 1 root root 3677280 Jul 27  2011 vmlinuz-2.6.32-200.13.1.el5uek
-rw-r--r-- 1 root root  161244 Jul 27  2011 symvers-2.6.32-200.13.1.el5uek.gz
drwx------ 2 root root   12288 Feb 25 06:00 lost+found
-rw------- 1 root root 3401874 Feb 25 06:08 initrd-2.6.18-194.el5.img.dup_orig
-rw------- 1 root root 3670030 Feb 25 06:58 initrd-2.6.32-200.13.1.el5uek.img
-rw------- 1 root root 4074546 Feb 25 07:00 initrd-2.6.18-274.el5debug.img
-rw------- 1 root root 3670062 Feb 25 07:00 initrd-2.6.32-200.13.1.el5uek.debug.img
-rw------- 1 root root 4069435 Feb 25 07:01 initrd-2.6.18-274.el5.img.dup_orig
-rw------- 1 root root 4069606 Feb 25 07:01 initrd-2.6.18-274.el5xen.img
-rw-r--r-- 1 root root  427610 Jul 10 11:01 xen.gz-2.6.18-308.11.1.0.1.el5
-rw-r--r-- 1 root root 2117084 Jul 10 11:08 vmlinuz-2.6.18-308.11.1.0.1.el5
-rw-r--r-- 1 root root 1276606 Jul 10 11:08 System.map-2.6.18-308.11.1.0.1.el5
-rw-r--r-- 1 root root   67550 Jul 10 11:08 config-2.6.18-308.11.1.0.1.el5
-rw-r--r-- 1 root root  116693 Jul 10 11:08 symvers-2.6.18-308.11.1.0.1.el5.gz
-rw-r--r-- 1 root root 1238515 Jul 10 11:15 System.map-2.6.18-308.11.1.0.1.el5xen
-rw-r--r-- 1 root root   67191 Jul 10 11:15 config-2.6.18-308.11.1.0.1.el5xen
-rw-r--r-- 1 root root 2211804 Jul 10 11:15 vmlinuz-2.6.18-308.11.1.0.1.el5xen
-rw-r--r-- 1 root root  116369 Jul 10 11:16 symvers-2.6.18-308.11.1.0.1.el5xen.gz
-rw-r--r-- 1 root root 2169724 Jul 10 11:23 vmlinuz-2.6.18-308.11.1.0.1.el5debug
-rw-r--r-- 1 root root 1296060 Jul 10 11:23 System.map-2.6.18-308.11.1.0.1.el5debug
-rw-r--r-- 1 root root   67577 Jul 10 11:23 config-2.6.18-308.11.1.0.1.el5debug
-rw-r--r-- 1 root root  117149 Jul 10 11:23 symvers-2.6.18-308.11.1.0.1.el5debug.gz
-rwxr-xr-x 1 root root  998488 Jul 10 11:34 xen-syms-2.6.18-308.11.1.0.1.el5
-rw------- 1 root root 4667052 Jul 27 15:09 initrd-2.6.18-308.11.1.0.1.el5debug.img
-rw------- 1 root root 4657939 Jul 27 15:09 initrd-2.6.18-308.11.1.0.1.el5xen.img
-rw------- 1 root root 4657325 Jul 27 15:09 initrd-2.6.18-308.11.1.0.1.el5.img.dup_orig
-rw------- 1 root root 4622428 Jul 27 15:10 initrd-2.6.18-194.el5.img
-rw------- 1 root root 4476928 Jul 27 15:10 initrd-2.6.18-274.el5.img
-rw------- 1 root root       0 Jul 27 15:10 initrd-2.6.18-308.11.1.0.1.el5.img
-rw-r--r-- 1 root root 5472256 Jul 27 15:13 initrd-2.6.18-274.el5kdump.img
-rw-r--r-- 1 root root 4816896 Aug 10 01:12 initrd-2.6.18-194.el5kdump.img
drwxr-xr-x 2 root root    1024 Aug 10 01:45 grub
[oracle@rac1 ~]$ 

Open in new window


[root@rac1 grub]# cat 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/VolGroup01/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Oracle Linux Server (2.6.18-308.11.1.0.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.11.1.0.1.el5 ro root=/dev/VolGroup01/LogVol00 rhgb quiet crashkernel=128M@16M numa=off
        initrd /initrd-2.6.18-308.11.1.0.1.el5.img
title Oracle Linux Server (2.6.18-194.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-194.el5 ro root=/dev/VolGroup01/LogVol00 rhgb quiet crashkernel=128M@16M numa=off
        initrd /initrd-2.6.18-194.el5.img
title Oracle Linux Server (2.6.18-308.11.1.0.1.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-308.11.1.0.1.el5
        module /vmlinuz-2.6.18-308.11.1.0.1.el5xen ro root=/dev/VolGroup01/LogVol00 rhgb quiet crashkernel=128M@16M numa=off
        module /initrd-2.6.18-308.11.1.0.1.el5xen.img
title Oracle Linux Server (2.6.18-308.11.1.0.1.el5debug)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-308.11.1.0.1.el5debug ro root=/dev/VolGroup01/LogVol00 rhgb quiet crashkernel=128M@16M numa=off
        initrd /initrd-2.6.18-308.11.1.0.1.el5debug.img
title Oracle Linux Server (2.6.18-274.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-274.el5 numa=off
        module /vmlinuz-2.6.18-274.el5xen ro root=/dev/VolGroup01/LogVol00 rhgb quiet crashkernel=128M@16M numa=off
        module /initrd-2.6.18-274.el5xen.img
title Oracle Linux Server (2.6.18-274.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-274.el5 ro root=/dev/VolGroup01/LogVol00 rhgb quiet crashkernel=128M@16M numa=off
        initrd /initrd-2.6.18-274.el5.img
title Oracle Linux Server (2.6.32-200.13.1.el5uek.debug)
        root (hd0,0)
        kernel /vmlinuz-2.6.32-200.13.1.el5uek.debug ro root=/dev/VolGroup01/LogVol00 rhgb quiet crashkernel=128M@16M numa=off
        initrd /initrd-2.6.32-20[root@rac1 grub]# 

Open in new window

0
Comment
Question by:dplinnane
3 Comments
 
LVL 2

Accepted Solution

by:
zunder1990 earned 2000 total points
ID: 38320313
0
 
LVL 19

Expert Comment

by:jools
ID: 38320393
rpm -e <old-kernel-name>

MAKE SURE YOU ONLY USE THE OLD KERNEL NAMES!!
0
 
LVL 23

Expert Comment

by:Steve Wales
ID: 39388561
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Suggested Courses
Course of the Month13 days, 13 hours left to enroll

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question