You are not logged in.
Pages: 1
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
bleachbit ?
sudo bleachbit --clean system.cache system.localizations system.trash system.tmp
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Offline
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 packages • Zsh and other configs
Offline
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
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 packages • Zsh and other configs
Offline
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
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 packages • Zsh and other configs
Offline
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
Pages: 1