View previous topic :: View next topic |
Author |
Message |
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 44
|
Posted: Wed Dec 18, 2024 9:38 am Post subject: installing vanilla kernel failed occupied full disk space. |
|
|
Hi I am Rupesh from India and I brought a new system with AMD Ryzen zen3 5500GT and Asus prime 450 motherboard. I have installed gentoo Linux successfully. At present there's no disk space.
Yesterday I updated my system successfully as specified in the gentoo handbook. After that I searched for vanilla package through emerge and found following packages.
vanilla kernel 6.12.5
Vanilla sources 6.12.3
Previously I installed vanilla sources 6.12.3 and created kernel image by the following command
genkernel all.
Yesterday I issued the following command after updating my system.
emerge sys-kernel/vanilla-kernel.
I think that it has tried to compile the source code and after one hour I got lots of errors and so I have restarted my system and entered into cinnamon desktop but this time I received error as
Disk space is too low less than 400 mb do you want to examine.
I neglected and restarted my system again and issued the following command
df -h
Unfortunately I seen that free space of root file system is 500 mb.
At the beginning of Gentoo Linux installation I have allocated 55 gb to gentoo Linux.
Yesterday when the update process completed the free space was 22 GB but now it is 500 mb.
I have checked the space occupied by /var /tmp but those directories occupied only upto 2 gb.
I even tried to uninstall vanilla kernel as follows
emerge --deselect sys-kernel/vanilla-kernel
emerge --depclean
But there's no use.
I have even cleaned the distfiles present in /var and no use.
I can't understand where these build files are present in my system.
Also I want to ask one question which is not related to the current topic ie., is there any need of llvm and clang.
If you say there's no need of llvm and clang I will uninstall them.
llvm, clang and webkitgtk are taking many hours to compile and install.
kindly try to suggest how to clean the working directory of the portage and free SSD drive disk space of upto 22 GB. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54637 Location: 56N 3W
|
Posted: Wed Dec 18, 2024 11:52 am Post subject: |
|
|
rupeshforu3,
Welcome to Gentoo.
There are several things that grow without limit.
1. The portage build space in /var/tmp/portage will fill with broken builds
2. Your distfiles, where all your source frles are stored
As long as emerge is not running, the portage build space can pe removed. All of it.
eclean -d distfiles will remove distfiles that are no longer require
eclean -d packages will dothe same for saved binary packages.
Are you really out of space or i-nodes?
Each file needs at least one i-node.
The kernel and the ::gentoo repo have a large number of small files.
What does df -h show?
That's your free space
What about df -ih
That's your i-node use.
Without a free i-node, no more files can be added, so free space cannout be used. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 44
|
Posted: Wed Dec 18, 2024 12:47 pm Post subject: |
|
|
I am providing the output of commands below
Code: |
localhost /home/build # df -h
Filesystem Size Used Avail Use% Mounted on
none 7.5G 1.5M 7.5G 1% /run
udev 10M 0 10M 0% /dev
tmpfs 7.5G 0 7.5G 0% /dev/shm
/dev/nvme0n1p19 53G 51G 1.9G 97% /
efivarfs 128K 32K 92K 26% /sys/firmware/efi/efivars
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journald.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-udev-load-credentials.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-sysctl.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs 7.5G 8.0K 7.5G 1% /tmp
/dev/nvme0n1p16 197M 512 197M 1% /efi
/dev/nvme0n1p17 197M 512 197M 1% /boot/efi
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-tmpfiles-setup.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-resolved.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-firstboot.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/getty@tty1.service
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-vconsole-setup.service
tmpfs 1.5G 184K 1.5G 1% /run/user/1000
localhost /home/build #
|
Code: |
localhost /home/build # df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
none 1.9M 1.4K 1.9M 1% /run
udev 1.9M 711 1.9M 1% /dev
tmpfs 1.9M 1 1.9M 1% /dev/shm
/dev/nvme0n1p19 4.8M 964K 3.8M 20% /
efivarfs 0 0 0 - /sys/firmware/efi/efivars
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-journald.service
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-udev-load-credentials.service
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-sysctl.service
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-tmpfiles-setup-dev-early.service
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-tmpfiles-setup-dev.service
tmpfs 1.0M 22 1.0M 1% /tmp
/dev/nvme0n1p16 0 0 0 - /efi
/dev/nvme0n1p17 0 0 0 - /boot/efi
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-tmpfiles-setup.service
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-resolved.service
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-firstboot.service
tmpfs 1.0K 1 1023 1% /run/credentials/getty@tty1.service
tmpfs 1.0K 1 1023 1% /run/credentials/systemd-vconsole-setup.service
tmpfs 383K 137 383K 1% /run/user/1000
localhost /home/build #
|
Code: |
localhost /home/build # emerge --info
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/desktop/systemd, gcc-14, glibc-2.40-r5, 6.12.3-x86_64 x86_64)
=================================================================
System uname: Linux-6.12.3-x86_64-x86_64-AMD_Ryzen_5_5500GT_with_Radeon_Graphics-with-glibc2.40
KiB Mem: 15657988 total, 13457780 free
KiB Swap: 3276796 total, 3276796 free
Timestamp of repository gentoo: Tue, 17 Dec 2024 12:30:00 +0000
Head commit of repository gentoo: 8c15fff28c7b67302f048bc14a2354753c8425cd
sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils: 1.3.8::gentoo
app-shells/bash: 5.2_p37::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.30.6::gentoo
dev-build/libtool: 2.4.7-r4::gentoo
dev-build/make: 4.4.1-r100::gentoo
dev-build/meson: 1.5.2::gentoo
dev-lang/perl: 5.40.0::gentoo
dev-lang/python: 3.11.11_p1::gentoo, 3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust-bin: 1.81.0-r101::gentoo, 1.82.0-r101::gentoo
llvm-core/clang: 18.1.8-r6::gentoo
llvm-core/lld: 18.1.8::gentoo
llvm-core/llvm: 18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout: 2.17::gentoo
sys-apps/sandbox: 2.39::gentoo
sys-apps/systemd: 256.7::gentoo
sys-devel/binutils: 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc: 14.2.1_p20241116::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.40-r5::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
CXXFLAGS="-march=znver3 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=znver3 -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver3 -O2 -pipe"
GENTOO_MIRRORS="https://mirrors.nxtgen.com/gentoo-mirror/gentoo-source/ http://mirrors.nxtgen.com/gentoo-mirror/gentoo-source/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="--jobs 10 --load-average 9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cet classic contrib crypt cups dbus dri dts dvd dvdr encode exif extras flac gdbm gif gpm gtk gui iconv icu ipv6 jpeg kf6compat lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds qml qt6 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
localhost /home/build #
|
_________________ Regards,
Rupesh. |
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1796 Location: Germany
|
|
Back to top |
|
|
rupeshforu3 n00b
Joined: 19 Aug 2024 Posts: 44
|
Posted: Wed Dec 18, 2024 3:34 pm Post subject: |
|
|
Thanks the issue has been resolved by using the tool ncdu.
The directory which occupied all the space is
/var/tmp/portage/sys-kernel/vanilla-kernel
It occupied 24 gb.
As previously said vanilla kernel failed to install because it need more space upto 60 gb I think so.
I can't understand why such a package was created. _________________ Regards,
Rupesh. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22848
|
Posted: Wed Dec 18, 2024 3:55 pm Post subject: |
|
|
Banana wrote: | If you are not able to install it, use du -h on folders. Starting on root level. Finding the biggest there and traversing manually into it to find the data. | This need not be done by hand when you can make the system do the work for you. Use du -hx / to generate the initial listing, preferably saved to a file. Sort that listing with sort -h to move all the worst offenders to one end, then start at that end and work toward the smaller offenders. |
|
Back to top |
|
|
Nowa Developer
Joined: 25 Jun 2014 Posts: 458 Location: Nijmegen
|
Posted: Wed Dec 18, 2024 7:45 pm Post subject: |
|
|
As a side note, you can significantly reduce the disk space requirements of the distribution kernels by disabling the "debug" USE flag. _________________ OS: Gentoo 6.10.12-gentoo-dist, ~amd64, 23.0/desktop/plasma/systemd
MB: MSI Z370-A PRO
CPU: Intel Core i9-9900KS
GPU: Intel Arc A770 16GB & Intel UHD Graphics 630
SSD: Samsung 970 EVO Plus 2 TB
RAM: Crucial Ballistix 32GB DDR4-2400 |
|
Back to top |
|
|
|
|
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
|
|