View previous topic :: View next topic |
Author |
Message |
Dominique_71 Veteran
Joined: 17 Aug 2005 Posts: 1877 Location: Switzerland (Romandie)
|
Posted: Mon Sep 12, 2005 3:25 pm Post subject: Tip: partition too small for /usr/portage/distfiles |
|
|
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! _________________ "Confirm You are a robot." - the singularity |
|
Back to top |
|
|
nevynxxx Veteran
Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Mon Sep 12, 2005 3:38 pm Post subject: |
|
|
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 |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2968
|
Posted: Tue Sep 13, 2005 2:59 am Post subject: |
|
|
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? |
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. |
|
Back to top |
|
|
Pithlit l33t
Joined: 27 Dec 2003 Posts: 887 Location: fuhen
|
Posted: Tue Sep 13, 2005 4:21 am Post subject: |
|
|
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). _________________ If someone solves a problem for you say thanks... and put [SOLVED] in the title! |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Tue Sep 13, 2005 5:05 am Post subject: |
|
|
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.libera.chat |
|
Back to top |
|
|
syrrus n00b
Joined: 16 May 2005 Posts: 24 Location: College Station, TX
|
Posted: Tue Sep 13, 2005 6:54 pm Post subject: |
|
|
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 |
|
|
|