View previous topic :: View next topic |
Author |
Message |
FictionPimp n00b
Joined: 24 Aug 2004 Posts: 43
|
Posted: Tue Dec 06, 2005 9:45 pm Post subject: out of drive space |
|
|
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 |
|
|
TheX Guru
Joined: 31 Jul 2004 Posts: 349 Location: .de
|
Posted: Tue Dec 06, 2005 10:06 pm Post subject: |
|
|
I dont know which programs could be erased without having a effect on your system..
But if you want to recompile all your code ( ) 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 |
|
|
Mben Guru
Joined: 29 Mar 2004 Posts: 465 Location: New York, USA
|
Posted: Wed Dec 07, 2005 12:07 am Post subject: |
|
|
/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 |
|
|
FictionPimp n00b
Joined: 24 Aug 2004 Posts: 43
|
Posted: Wed Dec 07, 2005 3:09 am Post subject: |
|
|
/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 |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20093
|
Posted: Wed Dec 07, 2005 5:49 am Post subject: |
|
|
Code: | du -h --max-depth=1 / | Might help you track down some unnecessary space hogs. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|