LinuxQuestions.org
Visit Jeremy's Blog.
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 01-09-2011, 11:16 AM   #16
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221

Quote:
These files reappeared even when I deleted them individually, HELP!!
There will always be some temporary files in /tmp. These files are needed by running X / WM and various services/programs
to function properly.

I'm sure the files that keep reappearing do not weigh much.
 
Old 01-09-2011, 11:17 AM   #17
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
So what I am supposed to do now to get rid of this problem?
 
Old 01-09-2011, 11:47 AM   #18
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
Quote:
Originally Posted by Anisha Kaul View Post
So what I am supposed to do now to get rid of this problem?
I have put the following:
Code:
/usr/bin/find /tmp -mindepth 1 -maxdepth 1 -print0 | xargs -0r /bin/rm -rf
in my Slackware's /etc/rc.d/rc.local_shutdown
The command cleans out the entire /tmp directory everytime I shut down the system. It's got its drawbacks and
some people prefer doing it on the startup of the system.

Anyway, having files in /tmp is not a bug, it's a feature. The problem is when for some reason it doesn't
get cleaned regularly. In Slackware it doesn't get cleaned automatically by default. I'm not sure how other
distros (ie. openSuse) approach it.
 
Old 01-09-2011, 11:54 AM   #19
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
But right now my /tmp directory is empty and still the problem is there!
 
Old 01-09-2011, 12:09 PM   #20
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,825
Blog Entries: 1

Rep: Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221Reputation: 1221
As to your kdevelop problem, I don't know you could check ~/.kde for some lock files or move temporarily
~/.kde/share/apps/kdevelop and see what happens.
 
Old 01-09-2011, 12:15 PM   #21
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by Anisha Kaul View Post
This time it is OpenSuse 11.2 in my home!

I have followed the post no. 12 solution and rebooted the system, this didn't help
I deleted the /tmp:
Code:
linux-dpjj:/tmp # ls
.ICE-unix  .X0-lock  .X11-unix  .xfsm-ICE-PKFOOV
linux-dpjj:/tmp # rm -rf
linux-dpjj:/tmp # ls
.ICE-unix  .X0-lock  .X11-unix  .xfsm-ICE-PKFOOV
These files reappeared even when I deleted them individually, HELP!!

If home is filling up there's NO point in deleting stuff from
/tmp as it's part of your root file-system.

Identify what's gobbling up space in /home this time, and kill
off large things you don't need anymore.

If I interpreted the "home" bit incorrectly have a look for deleted
files, and see if you're still writing to/reading from a file that
you thought you deleted using lsof ...
Code:
lsof|grep deleted


Cheers,
Tink
 
1 members found this post helpful.
Old 01-09-2011, 08:36 PM   #22
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Did you mean this, Tinkster? What should I delete here?

Code:
anisha@linux-dpjj:~> cd /home/
anisha@linux-dpjj:/home> lsof | grep deleted
Terminal  4205     anisha    9u      REG        8,1        0  67737 /tmp/vte79M0OV (deleted)
Terminal  4205     anisha   10u      REG        8,1        0  67846 /tmp/vteS2M0OV (deleted)
Terminal  4205     anisha   11u      REG        8,1        0  73692 /tmp/vteI8X8OV (deleted)
anisha@linux-dpjj:/home> ll
total 20
drwxr-xr-x 32 anisha users  4096 2011-01-10 06:30 anisha
drwx------  2 root   root  16384 2010-07-20 22:40 lost+found
anisha@linux-dpjj:/home> cd anisha/
anisha@linux-dpjj:~> ll
total 5045152
drwxr-xr-x  2 anisha users       4096 2010-07-20 22:57 bin
drwxr-xr-x  3 anisha users       4096 2010-08-01 19:49 Comics
drwxr-xr-x  8 anisha users       4096 2010-12-26 12:03 cppPrograms
drwxr-xr-x  6 anisha users      12288 2011-01-09 21:10 Desktop
drwxr-xr-x 20 anisha users       4096 2010-12-29 21:50 Documents
-rw-r--r--  1 anisha users     114896 2010-09-09 22:28 Frm_Reports.aspx
-rw-r--r--  1 anisha users       2548 2010-08-16 21:49 How to install wireless LAN card
-rw-r--r--  1 anisha users 5166069760 2011-01-06 22:25 myHome.tar
drwxr-xr-x  3 anisha users       4096 2010-08-29 11:45 Photography
drwxr-xr-x  2 anisha users       4096 2010-09-21 23:27 tarballs
 
Old 01-09-2011, 08:47 PM   #23
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by Anisha Kaul View Post
Did you mean this, Tinkster? What should I delete here?

Code:
anisha@linux-dpjj:~> cd /home/
anisha@linux-dpjj:/home> lsof | grep deleted
Terminal  4205     anisha    9u      REG        8,1        0  67737 /tmp/vte79M0OV (deleted)
Terminal  4205     anisha   10u      REG        8,1        0  67846 /tmp/vteS2M0OV (deleted)
Terminal  4205     anisha   11u      REG        8,1        0  73692 /tmp/vteI8X8OV (deleted)
Those are deleted files that are still being updated,
but looking at their size I doubt they're the cause
of you running out of disk.

Try:
Code:
du -sm /tmp/*|sort -n
to find the biggest offenders in /tmp.


Cheers,
Tink
 
Old 01-09-2011, 09:17 PM   #24
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
If you run SuSE's /etc/sysconfig editor, you can configure it to delete temporary files when you shut down. That will prevent /tmp from containing stale files. You can also configure your system to delete old /tmp files periodically. Or edit /etc/sysconfig/cron manually.

I noticed a large tar backup (myHome.tar) in your HOME directory. Could you move that to an external drive?

If you use KDE, look at using konqueror. It has a View -> View Mode -> File Size View setting that shows graphically how much space is used by directories and files. When KDE 4 was new, I had a bug fill up ~/.xsessionerrors to several Gigs. Using konqueror, I found it quickly.
 
1 members found this post helpful.
Old 01-09-2011, 10:44 PM   #25
NirvanaII
Member
 
Registered: Jun 2005
Posts: 139

Rep: Reputation: 18
Whenever I'm looking to clear space out of my home directory I always work to a list showing the size of each file and directory:

Code:
du -a --block-size=M $HOME | sort -nr | less
You can scroll up and down the outputted list using the arrow keys to see everything you have. To exit just hit q. You might wish to open up a second terminal window to do the business of deleting while keeping this one open for referencing.

To see files smallest first knock out the 'r' (reverse) of 'sort -nr'.

But yeah, I agree that tarball sticks out like a sore thumb!

Last edited by NirvanaII; 01-09-2011 at 10:46 PM.
 
1 members found this post helpful.
Old 01-10-2011, 10:34 AM   #26
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
This didn't show anything:
Code:
anisha@linux-dpjj:~> du -sm /tmp/*|sort -n
du: cannot access `/tmp/*': No such file or directory
Quote:
Originally Posted by jschiwal View Post
If you run SuSE's /etc/sysconfig editor, you can configure it to delete temporary files when you shut down. That will prevent /tmp from containing stale files. You can also configure your system to delete old /tmp files periodically.
Did you click the link shown in post 12?

I have deleted the tar file!
Code:
anisha@linux-dpjj:~/Desktop> g++ constructor.cpp -Wall -Wextra
constructor.cpp:40: fatal error: error writing to /tmp/ccqrQMkY.s: No space left on device
compilation terminated.
anisha@linux-dpjj:~/Desktop> cd
anisha@linux-dpjj:~> ll
total 156
drwxr-xr-x  2 anisha users   4096 2010-07-20 22:57 bin
drwxr-xr-x  3 anisha users   4096 2010-08-01 19:49 Comics
drwxr-xr-x  8 anisha users   4096 2010-12-26 12:03 cppPrograms
drwxr-xr-x  6 anisha users  12288 2011-01-09 21:10 Desktop
drwxr-xr-x 20 anisha users   4096 2010-12-29 21:50 Documents
-rw-r--r--  1 anisha users 114896 2010-09-09 22:28 Frm_Reports.aspx
-rw-r--r--  1 anisha users   2548 2010-08-16 21:49 How to install wireless LAN card
drwxr-xr-x  3 anisha users   4096 2010-08-29 11:45 Photography
drwxr-xr-x  2 anisha users   4096 2010-09-21 23:27 tarballs
anisha@linux-dpjj:~> df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1             10325748  10307996         0 100% /
udev                   1031068       256   1030812   1% /dev
/dev/sda2             41286828   8635888  30553656  23% /home

Last edited by TheIndependentAquarius; 01-10-2011 at 10:40 AM.
 
Old 01-10-2011, 11:24 AM   #27
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
And what do you get when you do
Code:
du -sm /* | grep -v /home| sort -n
 
Old 01-10-2011, 11:34 AM   #28
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Thanks for bothering, Tinkster, the myHome.tar you are seeing here has just been created by me after the above post.
Code:
linux-dpjj:/home/anisha # du -sm /* | grep -v /home| sort -n
du: cannot access `/home/anisha/.gvfs': Permission denied
du: cannot access `/proc/5553/task/5553/fd/4': No such file or directory
du: cannot access `/proc/5553/task/5553/fdinfo/4': No such file or directory
du: cannot access `/proc/5553/fd/4': No such file or directory
du: cannot access `/proc/5553/fdinfo/4': No such file or directory
0	/proc
0	/sys
1	/dev
1	/lost+found
1	/media
1	/mnt
1	/selinux
1	/srv
1	/tmp
7	/root
8	/bin
11	/sbin
24	/etc
29	/boot
111	/opt
158	/var
202	/lib
3428	/usr
5943	/myHome.tar
 
Old 01-10-2011, 11:49 AM   #29
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Have you (just in case) rebooted since the deletion of content
from /tmp ?

Also, what's the current status of "df -m" on that machine?
 
Old 01-10-2011, 11:59 AM   #30
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,680
Blog Entries: 29

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Ok, just now I have rebooted this computer:
Code:
anisha@linux-dpjj:~> df -m
Filesystem           1M-blocks      Used Available Use% Mounted on
/dev/sda1                10084     10067         0 100% /
udev                      1007         1      1007   1% /dev
/dev/sda2                40320      8967     29305  24% /home
anisha@linux-dpjj:~> cd Desktop/
anisha@linux-dpjj:~/Desktop> g++ constructor.cpp -Wall -Wextra
constructor.cpp:40: fatal error: error writing to /tmp/ccSD0AVT.s: No space left on device
compilation terminated.
anisha@linux-dpjj:~/Desktop> su
Password: 
linux-dpjj:/home/anisha/Desktop # du -sm /tmp/*|sort -n
du: cannot access `/tmp/*': No such file or directory
 
  


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
no space left on device cjupiter2 Red Hat 2 09-03-2007 08:55 PM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 05:22 PM
No space left on device (28) AllanBC Linux - Software 3 04-03-2006 04:55 AM
no space left on device, but it has enough!!! help!!! sarah21 Red Hat 3 02-03-2005 09:37 PM
No space left on the device ashwinipahuja Programming 1 06-24-2004 01:05 AM

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

All times are GMT -5. The time now is 11:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration