You are not logged in.
Pages: 1
Topic closed
Hi all!
Suddenly, today, i was unable to open programs and the system looked really slow.... then, i realized that the root partition (containing /tmp) was full.
When i entered /tmp, i found thousands of folders with names starting by "bug-buddy-xxxxx"
I am trying to delete everything in /tmp to free the space up.
I need several things:
1) Is it safe to regularly wipe the /tmp folder?
2) Can i do it automatically?
3) How can i wipe everything under /tmp? if i try rm -R /tmp/* i get an error complaining about "too many arguments".....
Thanks!
Last edited by Xi0N (2010-10-21 15:29:54)
Offline
It's safe to clean it regularly (well when the programs aren't using it of course). Mine is mounted over tmpfs so at every shutdown it's emptied.
at every boot it's emptied by /etc/rc.sysinit with the following command
/bin/rm -rf /tmp/* /tmp/.* &>/dev/null
You can put that in a cron job and maybe check with lsof or fuser if the file is on use.
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline
Thanks! I think i will just erase it manually from time to time....... meanwhile, i will have a look on that way you said: Mounting as tmpfs.....
Offline
You can try:
for i in /tmp/* ; do rm -r "$i" ; done
Last edited by stqn (2010-10-21 20:18:23)
Offline
You can try:
for i in /tmp/* ; do rm -r "$i" ; done
That's whaat i did.... thanks!!
Offline
Some infos about tmpfs here
http://wiki.archlinux.org/index.php/Ramdisk
I have this line in /etc/fstab
none /tmp tmpfs noatime,nosuid,nodev,noexec 0 0
also when I said
at every boot it's emptied by /etc/rc.sysinit with the following command
/bin/rm -rf /tmp/* /tmp/.* &>/dev/null
I meant, it's the default on every arch install, so everytime you reboot /tmp is cleaned. My wording was a bit confusing
Last edited by ChoK (2010-10-21 23:29:25)
Ah, good taste! What a dreadful thing! Taste is the enemy of creativeness.
Picasso
Perfection is reached, not when there is no longer anything to add, but when there is no longer anything to take away.
Saint Exupéry
Offline
Some infos about tmpfs here
http://wiki.archlinux.org/index.php/Ramdisk
I have this line in /etc/fstab
none /tmp tmpfs noatime,nosuid,nodev,noexec 0 0also when I said
at every boot it's emptied by /etc/rc.sysinit with the following command
/bin/rm -rf /tmp/* /tmp/.* &>/dev/nullI meant, it's the default on every arch install, so everytime you reboot /tmp is cleaned. My wording was a bit confusing
Is this really required?
https://wiki.archlinux.org/index.php/Ramdisk
Under systemd, /tmp is automatically mounted as a tmpfs even though no entry is specified in /etc/fstab.
Offline
Dude, you're replying to a thread from *2010* ...
Online
Indeed. Please pay attention to the dates.
https://wiki.archlinux.org/index.php/Co … bumping.22
Closing.
Last edited by V1del (2018-04-12 08:35:16)
Offline
Pages: 1
Topic closed