Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
out of drive space
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
FictionPimp
n00b
n00b


Joined: 24 Aug 2004
Posts: 43

PostPosted: Tue Dec 06, 2005 9:45 pm    Post subject: out of drive space Reply with quote

Ok, so I'm an idiot.

I setup a new box a little while ago and set it up with the following partitions

50megs /boot (ext2)
2 gigs swap
20 gig / (reiserfs)
rest of the drive /home (reiserfs)

Now I'm finding i'm about 80% full on my / drive (with /usr/portage/distfiles empty). I need to get some more space onto that partition. Now I have a few options, but i'm not sure which is the best. All of these will solve my problem.

1) The biggest apps I have installed are UT2004 and NWN in my /opt folder. I could uninstall those games and install them in my home drive. This would free up a few gig. (annoying because then portage can't manage my updates for me)

2) I could get a new drive, partition it and copy over my old drive with cp -a. (expensive gonna cost a little to get another dirve, but I would then have another 300-400 gig)

3) I could do a bind mount (mount --bind /home/games /opt) to mount /opt to a folder on my home drive (I could also do this with other folders like /usr/portage/distfiles or anything else that gets large. I already do this with /root in my fstab, but thats just to make sure the root user files get backed up with my other user /home files. (This might work out great for a while, but i'm concerned about access times doing this. Will this cause any issues?)

4) Do a backup of my system, repartition the drive and restore the backup (just really freaking time comsuming)

Anways, what do you think the best solution is? Do you have any other ideas?
Back to top
View user's profile Send private message
TheX
Guru
Guru


Joined: 31 Jul 2004
Posts: 349
Location: .de

PostPosted: Tue Dec 06, 2005 10:06 pm    Post subject: Reply with quote

I dont know which programs could be erased without having a effect on your system..

But if you want to recompile all your code ( 8O ) you could try other CFLAGS which are optimized for size .

Take a look on "-Os" on the gcc-site :

http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Optimize-Options.html


..Good Luck


TheX
Back to top
View user's profile Send private message
Mben
Guru
Guru


Joined: 29 Mar 2004
Posts: 465
Location: New York, USA

PostPosted: Wed Dec 07, 2005 12:07 am    Post subject: Reply with quote

/var/log and /var/tmp/portage are expendable. also look in /var/spool for old mail/printspooler output (cups-pdf clutters /var/spool/cups-pdf for example)
I get a couple gigs of logs in /var/log every week. /var/tmp/portage gets cluttered as emerges fail.

Good luck.

Depending on where you live, http://www.techbargains.com/ might help you find a deal on a new drive.
Back to top
View user's profile Send private message
FictionPimp
n00b
n00b


Joined: 24 Aug 2004
Posts: 43

PostPosted: Wed Dec 07, 2005 3:09 am    Post subject: Reply with quote

/var/log /var/tmp/portage and /var/spool are all basically empty.

I'm compiling with march=k8 -pipe -02

How much do you think I will save with -0s?
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20093

PostPosted: Wed Dec 07, 2005 5:49 am    Post subject: Reply with quote

Code:
du -h --max-depth=1 /
Might help you track down some unnecessary space hogs.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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