Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no more free space on /usr :(
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
daniel1988
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2005
Posts: 88
Location: Serbia

PostPosted: Fri Dec 02, 2005 12:12 pm    Post subject: no more free space on /usr :( Reply with quote

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
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Fri Dec 02, 2005 12:14 pm    Post subject: Reply with quote

3. rm /usr/portage/distfiles/* -rf
Back to top
View user's profile Send private message
daniel1988
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2005
Posts: 88
Location: Serbia

PostPosted: Fri Dec 02, 2005 12:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Fri Dec 02, 2005 1:07 pm    Post subject: Reply with quote

U've to shrink that lousy 1st partition, it takes too much space 8O
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Fri Dec 02, 2005 2:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
rev138
l33t
l33t


Joined: 19 Jun 2003
Posts: 848
Location: Vermont, USA

PostPosted: Fri Dec 02, 2005 2:14 pm    Post subject: Re: no more free space on /usr :( Reply with quote

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
View user's profile Send private message
daniel1988
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2005
Posts: 88
Location: Serbia

PostPosted: Fri Dec 02, 2005 4:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Fri Dec 02, 2005 5:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Dec 02, 2005 5:42 pm    Post subject: Reply with quote

Read the FAQ. SA1: Running out of disk space
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Fri Dec 02, 2005 5:54 pm    Post subject: Reply with quote

Eliminate windows. That will get you 28GB right away.
Seriously, you don't need 28GB for windows.
Back to top
View user's profile Send private message
bluedevils
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 252
Location: Vancouver BC -> NYC, NY

PostPosted: Fri Dec 02, 2005 6:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Baltimore, MD

PostPosted: Fri Dec 02, 2005 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
daniel1988
Tux's lil' helper
Tux's lil' helper


Joined: 24 Aug 2005
Posts: 88
Location: Serbia

PostPosted: Sat Dec 03, 2005 9:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
morodoch
Guru
Guru


Joined: 22 Sep 2005
Posts: 523
Location: England

PostPosted: Sat Dec 03, 2005 9:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
linuxtuxhellsinki
l33t
l33t


Joined: 15 Nov 2004
Posts: 700
Location: Hellsinki

PostPosted: Sat Dec 03, 2005 11:13 pm    Post subject: Reply with quote

Thanks 4 a tip, it freed over 60MB of useless stuff from my disk. Some French man-pages etc.... :D
_________________
1st use 'Search' & lastly add [Solved] to
the subject of your first post in the thread.
Back to top
View user's profile Send private message
Shedoks
n00b
n00b


Joined: 03 Oct 2005
Posts: 60
Location: Serbia

PostPosted: Mon Dec 05, 2005 5:46 pm    Post subject: Reply with quote

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
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