LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-30-2013, 03:52 AM   #1
windstory
Member
 
Registered: Nov 2008
Posts: 486

Rep: Reputation: 36
Not enough free disk space on /tmp


I have a remote Linux Box which Centos 5.2 x86 is installed. When I connect Linux and windows with xmanager - a kind of vnc - through ssh, I got this error message.

Quote:
[terauser@terauser ~]$ startkde
Not enough free disk space on /tmp
There are 2 hard disks at my box.

Quote:
[root@terauser ~]# fdisk -l

Disk /dev/sda: 146.8 GB, 146815737856 bytes
255 heads, 63 sectors/track, 17849 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 2 14 104422+ 83 Linux
/dev/sda2 15 17849 143259637+ 8e Linux LVM
/dev/sda3 * 1 1 8001 12 Compaq diagnostics

Partition table entries are not in disk order

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 121601 976760001 83 Linux
[root@terauser ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
132G 127G 0 100% /
/dev/sda1 99M 25M 70M 26% /boot
tmpfs 252M 0 252M 0% /dev/shm
And the "/tmp" directory is this.

Quote:
[root@terauser tmp]# ll
합계 48
srwxr-xr-x 1 root root 0 8월 9 2010 gedit.root.3582512283
drwxr-xr-x 2 root root 4096 7월 30 04:30 hsperfdata_root
drwx------ 2 terauser terauser 4096 1월 13 2013 kde-terauser
drwx------ 2 root root 4096 7월 30 14:27 kde-root
drwx------ 2 root root 4096 6월 21 2011 keyring-XXdnMT
drwx------ 2 root root 4096 2월 14 2012 keyring-ZsArJS
drwx------ 2 root root 4096 3월 2 2011 keyring-dreBAY
drwx------ 2 terauser terauser 4096 7월 30 14:25 ksocket-terauser
drwx------ 2 root root 4096 7월 30 14:27 ksocket-root
-rw------- 1 root root 0 5월 1 02:54 logwatch.txt
srwxr-xr-x 1 root root 0 6월 21 2011 mapping-root
drwx------ 2 root root 4096 7월 30 16:50 mc-root
drwx------ 2 root root 4096 8월 1 2012 orbit-root
-rw-r--r-- 1 root root 5 7월 30 16:36 scim-bridge-0.3.0.lockfile-0@localhost:0.0
srwxr-xr-x 1 root root 0 8월 1 2012 scim-bridge-0.3.0.socket-0@localhost:0.0
srwxr-xr-x 1 root root 0 2월 14 2012 scim-bridge-0.3.0.socket-0@localhost:1.0
srw------- 1 root root 0 8월 1 2012 scim-helper-manager-socket-root
srw------- 1 root root 0 8월 1 2012 scim-panel-socket:0-root
srw------- 1 root root 0 2월 14 2012 scim-panel-socket:1-root
srw------- 1 root root 0 8월 1 2012 scim-socket-frontend-root
drwx------ 2 root root 4096 8월 1 2012 ssh-qvRrNo2822
One important thing is "Do not reboot" when fixing this space problem. That's why I could not make to reboot the remote linux box.

Is it possible to fix the remote linux box without rebooting?

Any helpful comment would be appreciated.

Thanks in advance.
 
Old 07-30-2013, 04:05 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,280

Rep: Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829Reputation: 829
some disk is mounted /. Let's say it's sda2 in this example: Post the output of

df -h /dev/sda2
 
1 members found this post helpful.
Old 07-30-2013, 04:25 AM   #3
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
The result is this.

Quote:
[root@terauser /]# df -h /dev/sda2
Filesystem Size Used Avail Use% Mounted on
- 252M 84K 252M 1% /dev
 
Old 07-30-2013, 04:27 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,706

Rep: Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270Reputation: 1270
I would suggest looking for some excess log files...

But having /home in the root file system does allow a user to inadvertently use up everything...
 
1 members found this post helpful.
Old 07-30-2013, 07:51 AM   #5
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 216

Rep: Reputation: 38
you could use du command to dig out where the big files are eating all your HDD space.

use <du -h --max-depth=x> where x may be 1 or 2 to limit the output and give you a bit more control
 
1 members found this post helpful.
Old 07-30-2013, 08:02 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,589

Rep: Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817
you can try df -h /tmp and also du -h * in /tmp to find out the "big file"
 
1 members found this post helpful.
Old 07-30-2013, 08:30 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,036

Rep: Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853Reputation: 1853
The default CentOS partition scheme is a /boot partition and a LVM partition which contains / and swap as logical volumes. In your case this is sda1 and sda2. Your / partition is 100% full as shown in the output of the df command in your first post and /tmp is part of your / (root) logical volume. It does not appear that sdb1 is mounted.

Here is another method to find large files:
http://www.cyberciti.biz/faq/find-large-files-linux/

In case of files that are delete while still in use i.e logs, the space will not be reclaimed until the process using it has closed it. The file system will appear 100% (assuming ext3/4) until used space is below 95%.
 
1 members found this post helpful.
Old 07-30-2013, 10:58 PM   #8
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by pan64 View Post
you can try df -h /tmp and also du -h * in /tmp to find out the "big file"
The result is this.

Quote:
[root@terauser ~]# df -h /tmp
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
132G 123G 1.8G 99% /
[root@terauser ~]# cd /tmp
[root@terauser tmp]# du -h *
0 gedit.root.3582512283
4.0K hsperfdata_root
4.0K kde-terauser
4.0K kde-root
4.0K keyring-XXdnMT
4.0K keyring-ZsArJS
4.0K keyring-dreBAY
8.0K ksocket-terauser
8.0K ksocket-root
0 logwatch.txt
0 mapping-root
4.0K mc-root
4.0K orbit-root
4.0K scim-bridge-0.3.0.lockfile-0@localhost:0.0
0 scim-bridge-0.3.0.socket-0@localhost:0.0
0 scim-bridge-0.3.0.socket-0@localhost:1.0
0 scim-helper-manager-socket-root
0 scim-panel-socket:0-root
0 scim-panel-socket:1-root
0 scim-socket-frontend-root
4.0K ssh-qvRrNo2822
 
Old 07-30-2013, 11:18 PM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

this is not necessarily a problem with /tmp but with /. We can see in the first post the /tmp is just a directory in /. So, the OP needs to check all of /, not just /tmp.

Evo2.
 
1 members found this post helpful.
Old 07-31-2013, 02:11 AM   #10
varunb
Member
 
Registered: Mar 2011
Location: Bangalore, INDIA
Distribution: opensuse, fedora
Posts: 135
Blog Entries: 1

Rep: Reputation: 1
Go ahead and delete the contents inside tmp directory. And check the size inside /var/ and /usr/ directories as well.
You can delete the error log message which is older if it exists inside /var/log/ folder. Also check where user home directory is mounted? if it is in /home/ delete all unwanted data.
 
1 members found this post helpful.
Old 07-31-2013, 02:54 AM   #11
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,589

Rep: Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817Reputation: 2817
Quote:
Originally Posted by evo2 View Post
Hi,

this is not necessarily a problem with /tmp but with /. We can see in the first post the /tmp is just a directory in /. So, the OP needs to check all of /, not just /tmp.

Evo2.
Yes, you are right. I missed that.

strace -f -o /tmp/strace.log startkde
can be also tried. if startkde was a script bash -xv startkde may help too
 
1 members found this post helpful.
Old 08-04-2013, 09:33 PM   #12
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
pan64/

The result is this.

Quote:
-bash: strace: command not found

varunb/

I deleted every possible filess at /var/log and /tmp, and the result is this.

Quote:
[root@terauser /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
132G 106G 19G 85% /
/dev/sda1 99M 25M 70M 26% /boot
tmpfs 252M 0 252M 0% /dev/shm
 
Old 08-04-2013, 11:25 PM   #13
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
I have no idea if CentOS 5.2 has an ncdu package

but source is available at http://dev.yorhel.nl/ncdu

Code:
ncdu -x /
ncurses interface, which will allow you to 'drill into' your filesystem and find where all the space is going.
 
1 members found this post helpful.
Old 08-05-2013, 01:58 AM   #14
windstory
Member
 
Registered: Nov 2008
Posts: 486

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by Firerat View Post
I have no idea if CentOS 5.2 has an ncdu package

but source is available at http://dev.yorhel.nl/ncdu

Code:
ncdu -x /
ncurses interface, which will allow you to 'drill into' your filesystem and find where all the space is going.

I've downloaded ncdu and got an installation error message as follows;

Quote:
[root@terauser ncdu-1.10]# ./configure --prefix=/usr
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ranlib... ranlib
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking for unistd.h... (cached) yes
checking fnmatch.h usability... yes
checking fnmatch.h presence... yes
checking for fnmatch.h... yes
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
configure: error: required header file not found
 
Old 08-05-2013, 03:10 AM   #15
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Quote:
Originally Posted by windstory View Post
I've downloaded ncdu and got an installation error message as follows;
looks like you need a "dev" package for ncurses

in your package manager look for something like
ncurses-devel-<version>-<arch>.rpm

BUT, it might be easier to just use the static version
Quote:
Originally Posted by http://dev.yorhel.nl/ncdu
I also have convenient static binaries for Linux i486
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
[SOLVED] Disk space issue on /tmp ext3 partition on Fedora release 7 fboule Fedora 2 12-04-2012 03:35 AM
KDE will not start /tmp out of disk space Tony Littlejohn Mandriva 16 02-16-2009 02:08 AM
Newbie - X won't let me login because not enough free disk space in /tmp sart1 Linux - Software 1 06-02-2005 10:22 PM
/tmp not enough free space jang Linux - General 12 02-10-2005 03:21 AM

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

All times are GMT -5. The time now is 05:11 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration