LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 06-17-2003, 04:12 PM   #1
aagha
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
/boot partition full


I've just discovered that my /boot partition on a 7.3 box is full and I don't know what to do.

I want delete some stuff, but don't know what I can delete. The first thing that comes to mind is removing old kernels:

# existing kernels
15> rpm -qa 'kernel*'
kernel-2.4.7-10
kernel-2.4.20-18.7
kernel-ibcs-2.2.16-22
kernel-headers-2.4.9-34
kernel-smp-2.4.7-10
kernel-doc-2.4.20-18.7
kernelcfg-0.6-9
kernel-bigmem-2.4.20-18.7
kernel-source-2.4.20-18.7
kernel-pcmcia-cs-3.1.27-10
kernel-smp-2.4.20-18.7
kernel-enterprise-2.4.7-10

# current kernel
16> uname -r
2.4.7-10enterprise

I don't know what I can or can't delete, or how.

Any feedback would be appreciated. Also, what else can I think of getting rid of?

Rgs
Zeb
--
ama-misc@mltp.com
 
Old 06-17-2003, 04:28 PM   #2
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
df, post results
 
Old 06-17-2003, 04:31 PM   #3
aagha
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Original Poster
Rep: Reputation: 0
> df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda6 16943148 12836348 3246120 80% /
/dev/sda1 23302 22261 0 100% /boot
none 127544 0 127544 0% /dev/shm
 
Old 06-17-2003, 04:39 PM   #4
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
kernel source is not in /boot.
cd /boot
du -s *|sort -n
check the guys at the end - probably old kernel(s)
 
Old 06-17-2003, 04:42 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
how on earth have you managed to install ALL of those kernels???? that's amazing! remoev all the ones you are not using (presumably all but one) if you're not sure which one you are using, check "uname" or look at the contents of /etc/lilo.conf or /boot/grub/grub.conf depending on which bootloader you use.
 
Old 06-17-2003, 04:54 PM   #6
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
rpm -qa 'kernel*' does not show installed kernels, it shows rpms (which are taking up room on /). Have you built a kernel?
My set or rpms to build a kernel is
kernel-2.4.18.....
kernel-headers-2.4.18....
kernel-source-2.4.18......
 
Old 06-17-2003, 04:57 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
Quote:
rpm -qa 'kernel*' does not show installed kernels
yes it does.
 
Old 06-17-2003, 05:19 PM   #8
aagha
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Original Poster
Rep: Reputation: 0
acid_kewpie, how do I remove the ones I'm not using?
 
Old 06-17-2003, 05:28 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
rpm -e kernel-ibcs-2.2.16-22

etc... FYI my /boot is currently using about 3.5mb....

Last edited by acid_kewpie; 06-17-2003 at 05:30 PM.
 
Old 06-17-2003, 07:43 PM   #10
arnold
Member
 
Registered: Dec 2002
Posts: 226

Rep: Reputation: 30
Quote:
acid_kewpie
yes it does.
apologies - i always build custom kernels and keep them under /

Now, I free'd a couple of meg under /boot by removing old kernels
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
root partition gets full when using cp -a on another partition timsch75 Linux - General 2 10-02-2005 06:41 AM
boot partition full spiri Debian 3 09-13-2005 06:05 PM
What Happens when your partition is full? Echo Kilo Linux - General 4 05-30-2005 07:36 PM
Full Partition PhuckFonix Linux - Newbie 4 05-09-2004 04:55 PM
why the partition is full? xyfan Linux - Newbie 4 11-09-2003 05:24 PM


All times are GMT -5. The time now is 02:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration