Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/var dir 100% used
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Banzai_san
n00b
n00b


Joined: 02 May 2003
Posts: 50

PostPosted: Wed Nov 10, 2004 8:25 am    Post subject: /var dir 100% used Reply with quote

Hi,
Sorry a noobie qn.
my /var dir is 4.7G and is 100% used.
What dir(s) in my /var can I safely delete ?
Thanks.

nb/ Im using development-sources 2.6.9
Back to top
View user's profile Send private message
SchnulliBulli
n00b
n00b


Joined: 18 May 2004
Posts: 3

PostPosted: Wed Nov 10, 2004 10:33 am    Post subject: Reply with quote

At least the stuff in /var/tmp/portage/ is save to delete. It's only used during compilation of new packages.
Back to top
View user's profile Send private message
Banzai_san
n00b
n00b


Joined: 02 May 2003
Posts: 50

PostPosted: Wed Nov 10, 2004 11:08 am    Post subject: Reply with quote

thanks!!!
my /var now is only 7% used.
*PHEW* didnt realize the /var/tmp/portage directory would eat up so much space.
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Wed Nov 10, 2004 11:14 am    Post subject: Reply with quote

It shouldn't.

Once an emerge compleates it cleans up and leaves only afew bytes in /var/tmp/protage.

Unless you have a few faild emerges, they tend to leave an awful lot behind.

There is a script somewhere that cleans the /tmp directory on start-up. Maybe you could add a line to that to clean up /var/tmp as well?
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
Banzai_san
n00b
n00b


Joined: 02 May 2003
Posts: 50

PostPosted: Wed Nov 10, 2004 3:32 pm    Post subject: Reply with quote

hi nevynxxx

Thanks for the explanation.

Quote:
There is a script somewhere that cleans the /tmp directory on start-up. Maybe you could add a line to that to clean up /var/tmp as well?


Where can I find the script? anyone know?

Also, you mentioned the /tmp directory. My /tmp dir contains a lot of folders and files. Is it safe to delete them too?

Another qn, my /var/tmp contains directories:
emerge-webrsync
kdecache-banzai
kdecache-root
portage (which Ive just 'cleaned')
and .keep file

Is it safe to delete them too?
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Wed Nov 10, 2004 3:55 pm    Post subject: Reply with quote

Look in /etc/init.d/bootmisc

I'd back it up before you make any changes though!

As for /tmp and /var/tmp

everything in there should be temporary files, I've done rm -rf /tmp/* many times and not had a problem.

It only takes one silly program to give you a problem though. I'd have that boot script clean them and leave it at that. Cleaning them while the system is running could cause problems (especially the kde ones if kde is running).

Make sure you keep the .keep files about.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Nov 10, 2004 4:46 pm    Post subject: Reply with quote

Banzai_san wrote:
and .keep
https://forums.gentoo.org/viewtopic.php?t=57064
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed Nov 10, 2004 7:10 pm    Post subject: Reply with quote

Moved from Other Things Gentoo, please see this FAQ:

https://forums.gentoo.org/viewtopic.php?t=30547
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum