Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Disappearing HD space
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Duckman
n00b
n00b


Joined: 14 Sep 2003
Posts: 6

PostPosted: Thu Jan 08, 2004 9:38 pm    Post subject: Disappearing HD space Reply with quote

I have been havin a bit of trouble lately with my laptop. I have 15 GB partitioned off for my gentoo install, and I know I shouldn't be using all of that, but my disk usage keeps jumping up to 100%. In the past few days I have seen ~5 GB mysteriously dissapear only to reappear again and dissapear a day later. I have a 500 MB swap partition which never even gets close to filling up, and i've checked my temp directories and they don't seem to be the problem.

Does anybody out there know what is going on and how I can fix it?
Back to top
View user's profile Send private message
BiggJ
Guru
Guru


Joined: 07 Nov 2003
Posts: 384
Location: /usr/share/ \ zoneinfo/America/Los_Angeles

PostPosted: Thu Jan 08, 2004 9:47 pm    Post subject: Reply with quote

Check ...

/usr/portage/distfiles
/var/tmp/portage

There are a bunch of threads on what they are for and how to clean them.

--J
Back to top
View user's profile Send private message
Duckman
n00b
n00b


Joined: 14 Sep 2003
Posts: 6

PostPosted: Thu Jan 08, 2004 10:04 pm    Post subject: Reply with quote

yeah, i usually try and prune /usr/portage/distfiles whenever i need space. as for /var/tmp/portage, i can't seem to even find out the size of that folder, konqueror just seems to freeze for a while while it is calculating it's size. does that folder really fluctuate by several GB on a normal basis?
Back to top
View user's profile Send private message
BiggJ
Guru
Guru


Joined: 07 Nov 2003
Posts: 384
Location: /usr/share/ \ zoneinfo/America/Los_Angeles

PostPosted: Thu Jan 08, 2004 10:17 pm    Post subject: Reply with quote

Duckman wrote:
yeah, i usually try and prune /usr/portage/distfiles whenever i need space. as for /var/tmp/portage, i can't seem to even find out the size of that folder, konqueror just seems to freeze for a while while it is calculating it's size. does that folder really fluctuate by several GB on a normal basis?


I don't know if it's that much. I delete the contents of /var/tmp/portage on cron every night. It gets really big.

I use ...
Code:
rossi home # crontab -l | grep portage
0 1 * * * rm -rf /var/tmp/portage/*


--J
Back to top
View user's profile Send private message
Duckman
n00b
n00b


Joined: 14 Sep 2003
Posts: 6

PostPosted: Fri Jan 09, 2004 5:21 am    Post subject: Reply with quote

well, just deleting /var/tmp/portage seems to have freed up nearly 2 GB of disk space. Thanks for that tip. I'm reading through the man pages to figure out how to make it automatically delete it like you do. I'm still trying to figure out where the rest of my HD space went to. Could it have something to do with those instances of updatedb and bzip2 that keep running in the background? I don't know what is up with those. Oh well, thanks for the tip :D
Back to top
View user's profile Send private message
BiggJ
Guru
Guru


Joined: 07 Nov 2003
Posts: 384
Location: /usr/share/ \ zoneinfo/America/Los_Angeles

PostPosted: Fri Jan 09, 2004 5:45 pm    Post subject: Reply with quote

Duckman wrote:
I'm reading through the man pages to figure out how to make it automatically delete it like you do.


As "root" ...
Code:
crontab -e


... will open your crontab for editing... put the following in there and save it ...

Code:
0 1 * * * rm -rf /var/tmp/portage/*


... you can then use ...

Code:
crontab -l


... will print the contents of your crontab for verification.

That line will delete the contents of your /var/tmp/portage dir everything night at 1am.

--J
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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