root drive full .. freeing some space

Asked by surender reddy g on 2011-02-28

Hi ,

My root partition is getting full ... Please help me in freeing up some space .

Where are the nagios database files,monitoring files gets stored ...

Thanks in advance

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu bash Edit question
Assignee:
No assignee Edit question
Last query:
2011-02-28
Last reply:
2011-02-28
marcus aurelius (adbiz) said : #1

go to system>administration>computer janitor to clean out unnecessary and left over files.

PeterPall (peterpall) said : #2

Normally ubuntu is very good in not keeping loads of temporary files etc. around.
You can try computer-janitor to find them.

Where you can search manually is:
 - The synaptic package manager by default keeps the packages it downloads in a cache. And it has an option somewhere to forget them
- all logfiles are kept in /var/log
- and all temporary files in /tmp

If nothing helps there is still the possibility to span your root device over multiple partitions using the logical volume manager. But I've never done this.

Actually i have only SSH Terminal available ... no GUI

i have looked in /tmp ... there are no files in there ...

do u have any other means of deleting some space on root drive ...

thanks in advance

Actually i have only SSH Terminal available ... no GUI

i have looked in /tmp ... there are no files in there ...

do u have any other means of deleting some space on root drive ...

thanks in advance

marcus aurelius (adbiz) said : #5

sudo apt-get autoclean
sudo apt-get remove

Via ssh please type:

sudo apt-get remove ubuntu-docs
sudo apt-get clean
sudo dpkg --reconfigure -a
sudo apt-get -f install
sudo apt-get clean
sudo apt-get update

Then to discover old installed kernel to remove, type:

dpkg -l | grep -i linux-image

and to discover the running kernel type:

uname -a

then delete old kernels packages (don't touch running kernel), type:

Example:

dpkg -l | grep -i linux-image

ii linux-image-2.6.32-28-generic 2.6.32-28.55 Linux kernel image for version 2.6.32 on x86
ii linux-image-2.6.32-29-generic 2.6.32-29.58 Linux kernel image for version 2.6.32 on x86
ii linux-image-generic 2.6.32.29.35 Generic Linux kernel image

uname -a

Linux ubuntu-desktop 2.6.32-29-generic #58-Ubuntu SMP Fri Feb 11 19:00:09 UTC 2011 i686 GNU/Linux

dpkg -l | grep -i 2.6.32-28

ii linux-headers-2.6.32-28 ...
ii linux-headers-2.6.32-28-generic ...
ii linux-image-2.6.32-28-generic ...

sudo apt-get purge linux-headers-2.6.32-28 linux-headers-2.6.32-28-generic linux-image-2.6.32-28-generic

Hope this helps

to locate nagios files try:

locate nagios | less

or/and

sudo find / | grep -i nagios | less

Can you help with this problem?

Provide an answer of your own, or ask surender reddy g for more information if necessary.

To post a message you must log in.