You are not logged in.

#1 2011-12-03 22:33:24

bicyclingrevolution
Member
Registered: 2010-10-18
Posts: 71

(SOLVED) no space left in /tmp

My KDE system began running into a brick wall today. I found Dolphin is reporting /tmp as using all of it's 1 GB size. As far as I know, /tmp is on the same partition. The Beginners Guide says /tmp is normally cleared when the system is booting, but that is not happening. I deleted the files I could without using root, and that fixed the problems. How do I keep this from happening?

Last edited by bicyclingrevolution (2011-12-04 02:01:57)

Offline

#2 2011-12-03 22:38:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: (SOLVED) no space left in /tmp

bleachbit ?

sudo bleachbit --clean system.cache system.localizations system.trash system.tmp

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2011-12-03 22:47:07

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: (SOLVED) no space left in /tmp

well, if you want your /tmp to be empty at each boot, a simple solution I guess could be to keep it in memory (i.e. use tmpfs in your fstab) instead of putting it on a disk/mounting a partition.

Offline

#4 2011-12-03 22:55:18

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: (SOLVED) no space left in /tmp

jjacky wrote:

well, if you want your /tmp to be empty at each boot, a simple solution I guess could be to keep it in memory (i.e. use tmpfs in your fstab) instead of putting it on a disk/mounting a partition.

This is the distro default...

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2011-12-04 00:03:23

jjacky
Member
Registered: 2011-11-09
Posts: 347
Website

Re: (SOLVED) no space left in /tmp

oh, my bad. Although he did say it's not happening for him (/tmp isn't empty/cleared on boot), so i guess one could assume he's got things set up differently....

Offline

#6 2011-12-04 00:07:06

bicyclingrevolution
Member
Registered: 2010-10-18
Posts: 71

Re: (SOLVED) no space left in /tmp

Here's what I have:

# <file system> <dir>           <type>   <options>       <dump>  <pass>
tmpfs                  /tmp              tmpfs      nodev,nosuid        0              0
/dev/sdb1           /                     ext4        defaults                 0              1
/dev/sda5           /media/Arch   ext4       defaults                  0              1
/root/swap          swap              swap      defaults                  0              0

So it should be mounting tmp to ram, right? But for some reason it's not. I should have plenty of ram to do this--2 GB and a 4 GB swapfile.
Also, if it was mounted in ram, would I be able to view it with a file manager?
Bleachbit worked well: /tmp is now 1% full. But I would like to keep maintenance down if at all possible.

Offline

#7 2011-12-04 00:11:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: (SOLVED) no space left in /tmp

Tmpfs is 1/2 physical memory so 1 G is right.  You should be able to access /tmp via the file manager or the shell.  Bleachbit is your friend.  Bind an alias to it and call it after every pacman -Syu you run.  See my .bashrc on my githut (link in sig) for an example.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2011-12-04 00:33:38

bicyclingrevolution
Member
Registered: 2010-10-18
Posts: 71

Re: (SOLVED) no space left in /tmp

Sounds good, but do I need to install bleachbit-cli to use it from the terminal? I tried to install it and it said it would have to remove bleachbit, and I would like to have both options.
Running bleachbit as user worked, but when I tried it as root it failed because root cannot connect to X server :0

 $ sudo bleachbit --clean system.trash
No protocol specified
/usr/lib/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
info: starting BleachBit version 0.9.1
warning: cannot find GPLv3 license text file
debug: makedirs(/root/.config/bleachbit)
debug: makedirs(/root/.config)
debug: chown(/root/.config, uid=1000)
note: chown for path /root aborted
debug: chown(/root/.config/bleachbit, uid=1000)
note: chown for path /root aborted
debug: chown(/root/.config/bleachbit/bleachbit.ini, uid=1000)
note: chown for path /root aborted
info: automatically preserving language 'en'
debug: clean_operation('system'), options = '['trash']'
Disk space recovered: 0
Files deleted: 0 

Offline

#9 2011-12-04 00:36:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,606
Website

Re: (SOLVED) no space left in /tmp

No, either package works from the shell.  the -cli package doesn't have all the pygtk deps as the main package.  It is for light-weight systems without gtk.  You need to run it as root or install sudo and give your users sudo rights to run it.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2011-12-04 00:53:55

bicyclingrevolution
Member
Registered: 2010-10-18
Posts: 71

Re: (SOLVED) no space left in /tmp

Thank you! I looked at sudo configuration again, realized I needed to uncomment a line, and now bleachbit works perfectly. Thanks for the .bashrc file, too, those aliases will make administering things much easier.

Offline

Board footer

Powered by FluxBB