LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2010, 10:10 AM   #1
nerak99
Member
 
Registered: Feb 2006
Distribution: FC 15
Posts: 42

Rep: Reputation: 2
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
 
Old 02-18-2010, 10:21 AM   #2
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-14.2; -current
Posts: 244

Rep: Reputation: 60
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...
 
1 members found this post helpful.
Old 02-18-2010, 10:28 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.
 
1 members found this post helpful.
Old 02-18-2010, 11:26 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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
 
  


Reply

Tags
delete, kernels, old


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Kubuntu Jaunty: Just 'cos I use it don't mean it's all good LXer Syndicated Linux News 0 07-19-2009 02:41 PM
Fedoora 11 (f11): /var full after yum update attempt. Can't clean. JEA Fedora 4 07-16-2009 02:58 AM
I'm here 'cos I need help... saga_lout LinuxQuestions.org Member Intro 1 07-16-2003 09:50 PM
Clean install---dual boot olopbob Linux - Newbie 6 11-13-2002 05:59 AM
Cant boot cos of massive Ramdisk JohnLon Linux - Software 0 03-04-2002 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration