Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Tip: partition too small for /usr/portage/distfiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1689
Location: Switzerland (Romandie)

PostPosted: Mon Sep 12, 2005 3:25 pm    Post subject: Tip: partition too small for /usr/portage/distfiles Reply with quote

I have a few partitions on my box, and the one with among other /usr/portage/distfiles was running out of space.

What i have done is to deplace the files in this directory to another partition and symlink them. Linux is amazing, because you can symlink all those files with a simple command.

If you have a mounted partition in /mnt/patition1 , you copy /usr/portage/distfiles to get /mnt/partition1/distfiles with all the files in it, you delete all the files in /usr/portage/distfiles, you go in /mnt/partition1 and run:

Code:
find distfiles/ -type f -exec ln -s /mnt/partition1/{} /usr/portage/{} \;


Thats all!
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Sep 12, 2005 3:38 pm    Post subject: Reply with quote

Won't you need to do this quite frequently, i.e. every time you start running out of space?

Why not just have the new partition mounted to /usr/portage/distfiles once you have copied the files over?
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Tue Sep 13, 2005 2:59 am    Post subject: Reply with quote

nevynxxx wrote:
Won't you need to do this quite frequently, i.e. every time you start running out of space?

Why not just have the new partition mounted to /usr/portage/distfiles once you have copied the files over?

:lol: :lol: :lol: :lol: :lol:

The OP seems to have thought not too deeply before doing things. ;)
Quote:
the thought come before the action

The OP's signature above is true, but one must think deeply before doing, too.

Symlinks are messy compared to just moving the files.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
Pithlit
l33t
l33t


Joined: 27 Dec 2003
Posts: 887
Location: fuhen

PostPosted: Tue Sep 13, 2005 4:21 am    Post subject: Reply with quote

There's also the little thing in make.conf called "DISTDIR" :
Code:
DISTDIR=/path/to/distfiles
You might wanna use that instead of symlinking stuff (that doesn't need symlinking). :lol:
_________________
If someone solves a problem for you say thanks... and put [SOLVED] in the title!
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4924
Location: Gothenburg, Sweden

PostPosted: Tue Sep 13, 2005 5:05 am    Post subject: Reply with quote

You may also want to consider cleaning the directory from time to time.

Moved from Installing Gentoo to Documentation, Tips & Tricks.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
syrrus
n00b
n00b


Joined: 16 May 2005
Posts: 24
Location: College Station, TX

PostPosted: Tue Sep 13, 2005 6:54 pm    Post subject: Reply with quote

Or consider using a space saving file system such as cloopfs, unionfs, squashfs etc....
_________________
Gates Closed,
Windows Broken,
I Found the Source;
And It Was Open.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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