Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

Running out of Space! What to do?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Ravilj
Apprentice
Apprentice
User avatar
Posts: 164
Joined: Thu Jul 29, 2004 9:34 am
Location: ziig / #

Running out of Space! What to do?

  • Quote

Post by Ravilj » Mon Mar 28, 2005 11:06 pm

I am running out of space on my root partition. I know my /usr/portage/distfiles is getting on the LARGE side but obviously I dont want to go deleting it since I dont want to have to download things again (on a 3Gb cap :( ) so what are my options?
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/hda3 9468 8137 1332 86% /
I dont have much in the way of music or movies or any personal such things that is all on another driver.
Top
pussi
l33t
l33t
Posts: 727
Joined: Sat May 08, 2004 9:28 am
Location: Finland

Re: Running out of Space! What to do?

  • Quote

Post by pussi » Mon Mar 28, 2005 11:12 pm

Did you try 'rm -rf /var/tmp/portage/*' ?
Top
chemmett
n00b
n00b
Posts: 40
Joined: Sun Dec 26, 2004 2:20 am
Location: Maryville, TN, USA

  • Quote

Post by chemmett » Tue Mar 29, 2005 3:10 am

If you use it, 'ccache -C' can free up a gig or two. You can also go through and delete old versions out of /usr/portage/distfiles. Takes time but is usually quite effective.

Code: Select all

# cd / (or a sub-directory)
# du -h --max-depth 1
Can help you figure out what's taking up all the space.
Top
msubzwari
n00b
n00b
User avatar
Posts: 9
Joined: Tue Sep 14, 2004 11:16 am
Location: Karachi, Pakistan

  • Quote

Post by msubzwari » Tue Mar 29, 2005 9:37 am

I had the same problem. Fortunately, I had space on the harddisk to create another partition. I made a new partition and moved my "distfiles" subdirectory to that new partition. Note that you have to specify new path for distfiles directory in your /etc/make.conf in order for portage to find those files. Also, you will need to update your /etc/fstab to mount the new partition where "distfiles" is located.

The sequence of actions I took in my case was:

1. Created new linux partition in my harddisk.
2. My mount point is /mnt so created new subdirectory /mnt/distfiles and mounted the new partition there.
3. Made subdirectory /mnt/distfiles/packages.
3. copied all files from /usr/portage/distfiles to the new partition /mnt/distfiles. (If you have precompiled packages in /usr/portage/packages, copy those as well).
4. updated /etc/fstab to mount /mnt/distfiles on boot
5. updated /etc/make.conf to add DISTDIR variable (DISTDIR="/mnt/distfiles") and PKGDIR (PKGDIR="/mnt/distfiles/packages")

Rebooted system to verify new directory is mounting ok or not. For further verification, I did emerge --fetchonly something small and checked that it is indeed being stored under /mnt/distfiles from emerge output in the console.

6. All this went Ok, so I deleted the files in /usr/portage/distfiles and removed /usr/portage/distfiles subdirectory.

You can follow the same process. Just ensure that you replace /mnt/ with your mount point directory.

Alternatively, if you have CDR capability enabled in your gentoo box, you can burn files to a CD and delete those from /usr/portage/distfiles.

Hope this helps
Cheers
Top
untiefe
Apprentice
Apprentice
User avatar
Posts: 230
Joined: Mon Jan 12, 2004 2:22 pm
Location: the nonexisting Bielefeld, Germany
Contact:
Contact untiefe
Website

Re: Running out of Space! What to do?

  • Quote

Post by untiefe » Tue Mar 29, 2005 10:31 am

Ravilj wrote:I am running out of space on my root partition. I know my /usr/portage/distfiles is getting on the LARGE side but obviously I dont want to go deleting it since I dont want to have to download things again (on a 3Gb cap :( ) so what are my options?
Try distclean:
Website
Forum Thread
"I'm an angel bored like hell
And you're a devil meaning well"

:: Cardigans - You're The Storm ::

glcu - gentoo linux cron update (full featured semi-automatic updates via cron)
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic