View previous topic :: View next topic |
Author |
Message |
brahm n00b
Joined: 13 Sep 2006 Posts: 72
|
Posted: Wed Nov 29, 2006 10:46 am Post subject: [URGENT] disk full due to portage |
|
|
Does anybody know how to deal with such a situation? I was doing a emerge -ND world. It got interrupted due to full disk usage. I have a 14gb hard disk. half of it was empty before the emerge. Now, it is full and the emerge also got interrupted. my user files are less than 1 gb. So the portage is taking about 10-12 gb. This is very annoying. I tried eclean and rm -rf /usr/portage/distfiles/* && rm -rf /var/tmp/portage/* , but nothing helped. Kidly help.
(I reached on this conclusion that portage is taking the space since the /usr folder is about 12gb large....which is huge. Kindly help me) |
|
Back to top |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Wed Nov 29, 2006 10:49 am Post subject: Re: [URGENT] disk full due to portage |
|
|
Give the output of:
Sveikinu
Arfrever |
|
Back to top |
|
|
brahm n00b
Joined: 13 Sep 2006 Posts: 72
|
Posted: Wed Nov 29, 2006 10:52 am Post subject: |
|
|
Portage 2.1.1-r2 (default-linux/amd64/2006.0, gcc-3.4.4, glibc-2.4-r4, 2.6.18-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Mon, 27 Nov 2006 02:29:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.iitb.ac.in/os/gentoo"
LC_ALL="en_GB.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://ftp.iitb.ac.in/gentoo-portage"
USE="amd64 X aac alsa berkdb bitmap-fonts bluetooth browserplugin cdinstall cdr cjk cli cracklib crypt cups dlloader doc dri dvd eds elibc_glibc emboss encode examples firefox foomaticdb fortran ftp gcj gif gphoto2 gpm gstreamer gtk gtk2 iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java javascript jpeg kde kernel_linux lzw lzw-tiff mad mp3 mpeg msn ncurses nls nptl nptlonly nsplugin nv nvidia objc opengl pam pcre perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session source sources spell spl ssl symlink tcpd test tiff truetype-fonts type1-fonts unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis x264 xorg xpm xv yahoo zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY |
|
Back to top |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
|
Back to top |
|
|
brahm n00b
Joined: 13 Sep 2006 Posts: 72
|
Posted: Wed Nov 29, 2006 11:09 am Post subject: |
|
|
Oh I am sorry! there was a mistake. The /usr directory is about 4.5 gb (is this big or is this normal). I had counted the size of the remaining directories and arrived on the conclusion that since the other folders total to 2 gb, the size of /usr should be 12.5 . Now the total of the sizes of the folders is approximately 6.2gb whereas all of the 14 gb is used. (by total of the sizes of the folders, I mean that the sizes of all the folders in / except the mnt folder) |
|
Back to top |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Wed Nov 29, 2006 11:40 am Post subject: |
|
|
Give the output of: Code: | for x in /usr /usr/portage /usr/portage/distfiles /usr/portage/packages /var /var/log /var/tmp /tmp ; do du -m $x | tail -n1 ; done |
Sveikinu
Arfrever |
|
Back to top |
|
|
padoor Advocate
Joined: 30 Dec 2005 Posts: 4185 Location: india
|
Posted: Wed Nov 29, 2006 12:35 pm Post subject: |
|
|
try deleting /var/log/*.log
check stregth of the folder first .sometimes it goes as much as 2 3 gb
emerge -NDu world does not install any new applications.it is supposed to update the world only. the portage it self needs about 1.5 to 2 gb space . as we install more and more apps /usr will get bigger. you cannot steal the portage's space. _________________ reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name) |
|
Back to top |
|
|
Arfrever Bodhisattva
Joined: 29 Apr 2006 Posts: 2463 Location: 異世界
|
Posted: Wed Nov 29, 2006 12:52 pm Post subject: |
|
|
padoor wrote: | emerge -NDu world does not install any new applications. |
It can install new packages, when new version of an already installed package has additional dependencies.
Sveikinu
Arfrever |
|
Back to top |
|
|
JeliJami Veteran
Joined: 17 Jan 2006 Posts: 1086 Location: Belgium
|
|
Back to top |
|
|
Scratalacha Tux's lil' helper
Joined: 24 Feb 2004 Posts: 127
|
Posted: Wed Nov 29, 2006 1:21 pm Post subject: |
|
|
I found the easiest way to save space with portage and also make it faster is to put it on a seperate ext2 with dir_index and a 1K block size(could be located on a loopback file as well). This ends up taking portage down to about 250-300MB. Just remember to change the locations of your distfiles and pkgs directory to avoid filling up the ext2 partition. _________________ Anime ate my computer |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
|
Back to top |
|
|
|