View previous topic :: View next topic |
Author |
Message |
daniel1988 Tux's lil' helper
Joined: 24 Aug 2005 Posts: 88 Location: Serbia
|
Posted: Fri Dec 02, 2005 12:12 pm Post subject: no more free space on /usr :( |
|
|
survivor@tux ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda6 2.6G 629M 1.9G 26% /
udev 251M 2.6M 248M 2% /dev
/dev/hda2 92M 2.8M 84M 4% /boot
/dev/hda7 3.8G 3.6G 6.2M 100% /usr
/dev/hda8 2.4G 797M 1.5G 35% /home
/dev/hda1 28G 21G 7.2G 74% /win-c
none 251M 0 251M 0% /dev/shm
What should I do:
1. play with LVM
2. stage4, change partitions sizes, rool-back gentoo
3. u suggest
Regards,
Daniel |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Fri Dec 02, 2005 12:14 pm Post subject: |
|
|
3. rm /usr/portage/distfiles/* -rf |
|
Back to top |
|
|
daniel1988 Tux's lil' helper
Joined: 24 Aug 2005 Posts: 88 Location: Serbia
|
Posted: Fri Dec 02, 2005 12:57 pm Post subject: |
|
|
Folder /usr/portage/distfiles uses "only" 224MB of space (I clean it regularly)
I need even more (want to install KDE 3.5, and other huge things). |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Fri Dec 02, 2005 1:07 pm Post subject: |
|
|
U've to shrink that lousy 1st partition, it takes too much space _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Fri Dec 02, 2005 2:12 pm Post subject: |
|
|
3. see which subdir takes a lot of space and move it to one of the other partitions. Then nmount it with mount -b on it's old position.
Or just move the whole portage tree to another position and set PORTDIR in your make.conf |
|
Back to top |
|
|
rev138 l33t
Joined: 19 Jun 2003 Posts: 848 Location: Vermont, USA
|
Posted: Fri Dec 02, 2005 2:14 pm Post subject: Re: no more free space on /usr :( |
|
|
SurvivoR wrote: | 1. play with LVM |
If you're using LVM, it should be trivial to shuffle some space around. If not, converting to LVM might be a bit of a pain, but well worth it IMO. |
|
Back to top |
|
|
daniel1988 Tux's lil' helper
Joined: 24 Aug 2005 Posts: 88 Location: Serbia
|
Posted: Fri Dec 02, 2005 4:17 pm Post subject: |
|
|
linuxtuxhellsinki wrote: | U've to shrink that lousy 1st partition, it takes too much space | I will, but my little brother is still windoz only... He uses my laptop as well.
BlackEdder wrote: | 3. see which subdir takes a lot of space and move it to one of the other partitions. Then nmount it with mount -b on it's old position. |
Which of these subdirs should I move and where? Tell me the exact syntax for doing that (I don't want my gentoo to be down right now)
[img=http://img213.imageshack.us/img213/2548/snapshot29vq.th.jpg]
Quote: | Or just move the whole portage tree to another position and set PORTDIR in your make.conf |
Same question: where to move it? Will have it enough space for breathing on " / "
rev138 wrote: | If you're using LVM, it should be trivial to shuffle some space around. If not, converting to LVM might be a bit of a pain, but well worth it IMO. | Never used LVM before, just heard that it helps in cases like this. Should I try to use it? |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
Posted: Fri Dec 02, 2005 5:05 pm Post subject: |
|
|
Let's go with moving the protage dir, because it is the easiest to do. It will only give you 360 mb extra space on /usr, but you are low on diskspace all around, so diskspace will always stay a problem.
Where is basically your choice, but I will go with the root partition now, because it should be able to host thos extra 360 mb.
Code: | mkdir /var/portage
cp -a /usr/portage/* /var/portage |
edit /etc/make.conf to contain
Code: | PORTDIR=/var/portage |
Now you might want to sync and see if it really uses the new portdir (better safe than sorry)
Code: | rm -rf /usr/portage |
|
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
|
Back to top |
|
|
davidgurvich Veteran
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Fri Dec 02, 2005 5:54 pm Post subject: |
|
|
Eliminate windows. That will get you 28GB right away.
Seriously, you don't need 28GB for windows. |
|
Back to top |
|
|
bluedevils Apprentice
Joined: 21 Jul 2004 Posts: 252 Location: Vancouver BC -> NYC, NY
|
Posted: Fri Dec 02, 2005 6:29 pm Post subject: |
|
|
do you have a desktop with good disk space? I'd move your stuff from home onto the desktop as temporary storage. I'd also unmerge some of the non essential software (open office, maybe?) and hope you can get it small enough to fit on the root partition. Remember you can re emerge it again later. Once you've emptied hda7 and hda8, you should be able to combine them to make a healthier /usr size. /home could eventualy go onto the root partition as it is almost 800MB and you have almost 2GB left on root.
to find the worst offenders for disk space, go to the base of a partition and run
du -kax|sort -rn|more
or the quick answer, cp the worst offenders to /home or / and make a link |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Fri Dec 02, 2005 7:58 pm Post subject: |
|
|
You might also be interested in Cleaning out stale distfiles. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
daniel1988 Tux's lil' helper
Joined: 24 Aug 2005 Posts: 88 Location: Serbia
|
Posted: Sat Dec 03, 2005 9:38 pm Post subject: |
|
|
Thanks for your responses...
What do you think about moving /usr/share on root partition and making a symlink like this beneath?
ln -s /share /usr/share
Regards,
Daniel |
|
Back to top |
|
|
morodoch Guru
Joined: 22 Sep 2005 Posts: 523 Location: England
|
Posted: Sat Dec 03, 2005 9:43 pm Post subject: |
|
|
If disc space under /usr/share is a problem, it may be your docs. Check out localepurge:
http://www.gentoo-portage.com/app-admin/localepurge _________________ Well, the Sister was right. You boys could use a little churching up. Slide on down to the Triple Rock, and catch Rev. Cleophus. You boys listen to what he's got to say.
-- Curtis |
|
Back to top |
|
|
linuxtuxhellsinki l33t
Joined: 15 Nov 2004 Posts: 700 Location: Hellsinki
|
Posted: Sat Dec 03, 2005 11:13 pm Post subject: |
|
|
Thanks 4 a tip, it freed over 60MB of useless stuff from my disk. Some French man-pages etc.... _________________ 1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread. |
|
Back to top |
|
|
Shedoks n00b
Joined: 03 Oct 2005 Posts: 60 Location: Serbia
|
Posted: Mon Dec 05, 2005 5:46 pm Post subject: |
|
|
at 1st place 4 windows it enough 10gb for all usuall software including some games.
If u have a desktop you can keep your distfiles on it and use it with samba.
This will give you aditionali free space. |
|
Back to top |
|
|
|