LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   clean up /boot cos it is too full (https://www.linuxquestions.org/questions/linux-newbie-8/clean-up-boot-cos-it-is-too-full-789956/)

nerak99 02-18-2010 10:10 AM

clean up /boot cos it is too full
 
I have this as a ls in /boot
It (/boot partition) is getting full!
Which of these can I safely delete or move?
[root@fc1264 boot]# ls -l
total 130230
-rw-r--r--. 1 root root 97992 2010-02-11 02:20 config-2.6.31.12-174.2.19.fc12.x86_64
-rw-r--r--. 1 root root 98210 2010-02-11 02:03 config-2.6.31.12-174.2.19.fc12.x86_64.debug
-rw-r--r--. 1 root root 97991 2010-01-18 15:05 config-2.6.31.12-174.2.3.fc12.x86_64
-rw-r--r--. 1 root root 98209 2010-01-18 14:48 config-2.6.31.12-174.2.3.fc12.x86_64.debug
-rw-r--r--. 1 root root 97491 2010-01-21 22:34 config-2.6.31.12-1.rt20.1.fc12.ccrma.x86_64.rt
-rw-r--r--. 1 root root 97490 2009-12-02 18:03 config-2.6.31.6-1.rt19.3.fc12.ccrma.x86_64.rt
-rw-r--r--. 1 root root 97490 2009-12-15 19:51 config-2.6.31.8-1.rt19.1.fc12.ccrma.x86_64.rt
-rw-r--r--. 1 root root 97986 2009-12-21 00:58 config-2.6.31.9-174.fc12.x86_64
-rw-r--r--. 1 root root 98204 2009-12-21 00:26 config-2.6.31.9-174.fc12.x86_64.debug
drwxr-xr-x. 3 root root 1024 2010-01-10 10:36 efi
drwxr-xr-x. 2 root root 1024 2010-02-17 16:39 grub
-rw-r--r--. 1 root root 12607274 2010-02-17 16:39 initramfs-2.6.31.12-174.2.19.fc12.x86_64.debug.img
-rw-r--r--. 1 root root 12548130 2010-02-17 16:38 initramfs-2.6.31.12-174.2.19.fc12.x86_64.img
-rw-r--r--. 1 root root 11795519 2010-01-22 20:22 initramfs-2.6.31.12-174.2.3.fc12.x86_64.debug.img
-rw-r--r--. 1 root root 11735983 2010-01-22 20:23 initramfs-2.6.31.12-174.2.3.fc12.x86_64.img
-rw-r--r--. 1 root root 11546981 2010-01-24 06:54 initramfs-2.6.31.12-1.rt20.1.fc12.ccrma.x86_64.rt.img
-rw-r--r--. 1 root root 11485582 2010-01-10 13:30 initramfs-2.6.31.6-1.rt19.3.fc12.ccrma.x86_64.rt.img
-rw-r--r--. 1 root root 11542409 2010-01-10 13:38 initramfs-2.6.31.8-1.rt19.1.fc12.ccrma.x86_64.rt.img
drwx------. 2 root root 12288 2010-01-10 10:18 lost+found
-rw-r--r--. 1 root root 1872724 2010-02-11 02:20 System.map-2.6.31.12-174.2.19.fc12.x86_64
-rw-r--r--. 1 root root 1934568 2010-02-11 02:03 System.map-2.6.31.12-174.2.19.fc12.x86_64.debug
-rw-r--r--. 1 root root 1872890 2010-01-18 15:05 System.map-2.6.31.12-174.2.3.fc12.x86_64
-rw-r--r--. 1 root root 1934734 2010-01-18 14:48 System.map-2.6.31.12-174.2.3.fc12.x86_64.debug
-rw-r--r--. 1 root root 2032866 2010-01-21 22:34 System.map-2.6.31.12-1.rt20.1.fc12.ccrma.x86_64.rt
-rw-r--r--. 1 root root 2030306 2009-12-02 18:03 System.map-2.6.31.6-1.rt19.3.fc12.ccrma.x86_64.rt
-rw-r--r--. 1 root root 2032530 2009-12-15 19:51 System.map-2.6.31.8-1.rt19.1.fc12.ccrma.x86_64.rt
-rw-r--r--. 1 root root 1872706 2009-12-21 00:58 System.map-2.6.31.9-174.fc12.x86_64
-rw-r--r--. 1 root root 1934550 2009-12-21 00:26 System.map-2.6.31.9-174.fc12.x86_64.debug
-rwxr-xr-x. 1 root root 3429536 2010-02-11 02:20 vmlinuz-2.6.31.12-174.2.19.fc12.x86_64
-rwxr-xr-x. 1 root root 3567456 2010-02-11 02:03 vmlinuz-2.6.31.12-174.2.19.fc12.x86_64.debug
-rwxr-xr-x. 1 root root 3430624 2010-01-18 15:05 vmlinuz-2.6.31.12-174.2.3.fc12.x86_64
-rwxr-xr-x. 1 root root 3567296 2010-01-18 14:48 vmlinuz-2.6.31.12-174.2.3.fc12.x86_64.debug
-rwxr-xr-x. 1 root root 3548352 2010-01-21 22:34 vmlinuz-2.6.31.12-1.rt20.1.fc12.ccrma.x86_64.rt
-rwxr-xr-x. 1 root root 3540896 2009-12-02 18:03 vmlinuz-2.6.31.6-1.rt19.3.fc12.ccrma.x86_64.rt
-rwxr-xr-x. 1 root root 3546464 2009-12-15 19:51 vmlinuz-2.6.31.8-1.rt19.1.fc12.ccrma.x86_64.rt
-rwxr-xr-x. 1 root root 3428960 2009-12-21 00:58 vmlinuz-2.6.31.9-174.fc12.x86_64
-rwxr-xr-x. 1 root root 3567520 2009-12-21 00:26 vmlinuz-2.6.31.9-174.fc12.x86_64.debug

JimBrewster 02-18-2010 10:21 AM

Fedora initramfs is really 12M? Wow!

Anyway, you'll be fine with one matching set: config initramfs System.map vmlinuz vimlinuz.xx.debug.

Assuming your running with the newest of these, 2.6.31.12, and it's working for you, it's okay to delete all the others.

You need grub/, and I'm not sure what efi/ is, so leave those be...

MensaWater 02-18-2010 10:28 AM

Type "uname -a" and find out which kernel you're currently running. Presumably that's the one you boot to all of the time.

If so you can probably "safely" remove all of the files not associated with that version. However, rather than simply remove them you should use "rpm -qa |grep <version>" to see if they were installed as part of an RPM (they likely were) then use rpm -e <package> to remove the RPMs so it will clean up the kernels directories as well.

Your list though makes it look like these might have been manual compiles for testing so you might want to find out why they're there before deleting anything.

pixellany 02-18-2010 11:26 AM

I am a bit concerned about how all that got there in the first place....Have you been doing a lot of system upgrades? Re-compiling the kernel?

Here's my /boot (after several system upgrades):
Code:

[mherring@mystical ~]$ cd /boot
[mherring@mystical boot]$ ls -l
total 12172
drwxr-xr-x 2 root root    4096 Jan 31 13:31 grub
-rw-r--r-- 1 root root 7275869 Feb 17 10:20 kernel26-fallback.img
-rw-r--r-- 1 root root 1899872 Feb 17 10:20 kernel26.img
-rw-r--r-- 1 root root 1303637 Feb  9 14:14 System.map26
-rw-r--r-- 1 root root 1972128 Feb  9 14:14 vmlinuz26
[mherring@mystical boot]$ du -sh
13M    .

Note that "kernel26*" is Arch's name for the initrd files


All times are GMT -5. The time now is 12:57 PM.