From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 19 14:10:03 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DB568106566C for ; Tue, 19 Oct 2010 14:10:03 +0000 (UTC) (envelope-from fidaj@ukr.net) Received: from fsm1.ukr.net (fsm1.ukr.net [195.214.192.23]) by mx1.freebsd.org (Postfix) with ESMTP id 6E25A8FC1A for ; Tue, 19 Oct 2010 14:10:03 +0000 (UTC) Received: from 75-199-132-95.pool.ukrtel.net ([95.132.199.75] helo=localhost) by fsm1.ukr.net with esmtps ID 1P8Ct8-000L0R-4J ; Tue, 19 Oct 2010 17:10:02 +0300 Date: Tue, 19 Oct 2010 17:10:01 +0300 From: Ivan Klymenko To: Jack Engqvist Johansson Message-ID: <20101019171001.6fed1b70@ukr.net> In-Reply-To: References: <20101019093023.5efb3bcb@ukr.net> <20101019163826.63c7d632@ukr.net> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Filesystem full when installing custom kernel in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Oct 2010 14:10:03 -0000 =D0=92 Tue, 19 Oct 2010 15:58:35 +0200 Jack Engqvist Johansson =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Tue, Oct 19, 2010 at 3:38 PM, Ivan Klymenko wrote: > > =D0=92 Tue, 19 Oct 2010 13:53:34 +0200 > > Jack Engqvist Johansson =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: > > > >> On Tue, Oct 19, 2010 at 8:30 AM, Ivan Klymenko > >> wrote: > >> > =D0=92 Tue, 19 Oct 2010 00:53:31 +0200 > >> > Jack Engqvist Johansson =D0=BF=D0=B8=D1=88=D0=B5= =D1=82: > >> > > >> >> Hi, > >> >> > >> >> I just got succeeded with my compilation of a custom kernel for > >> >> FreeBSD 8.1. But when I'm trying to install it, I got an error. > >> >> File system is full! > >> >> > >> >> So I moved the old kernel to another partition, but got the same > >> >> error. And I cannot move it back again. > >> >> Whats wrong? How can I do to get a kernel again? > >> >> > >> >> Thanks. > >> >> Best regards, Jack Engvist Johansson > >> >> > >> >> > >> >> > >> >> =C2=A0bsd# make installkernel KERNCONF=3DNECTRUS > >> >> -------------------------------------------------------------- > >> >> >>> Installing kernel > >> >> -------------------------------------------------------------- > >> >> cd /usr/obj/usr/src/sys/NECTRUS; =C2=A0MAKEOBJDIRPREFIX=3D/usr/obj > >> >> MACHINE_ARCH=3Damd64 =C2=A0MACHINE=3Damd64 =C2=A0CPUTYPE=3D > >> >> GROFF_BIN_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/bin > >> >> GROFF_FONT_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/groff_font > >> >> GROFF_TMAC_PATH=3D/usr/obj/usr/src/tmp/legacy/usr/share/tmac > >> >> PATH=3D/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/le= gacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr= /sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bi= n:/usr/sbin:/usr/bin > >> >> =C2=A0make KERNEL=3Dkernel install > >> >> thiskernel=3D`sysctl -n kern.bootfile` ; =C2=A0if [ ! "`dirname > >> >> "$thiskernel"`" -ef /boot/kernel ] ; then =C2=A0chflags -R noschg > >> >> /boot/kernel ; =C2=A0rm -rf /boot/kernel ; =C2=A0else =C2=A0if > >> >> [ -d /boot/kernel.old ] ; then =C2=A0chflags -R > >> >> noschg /boot/kernel.old ; =C2=A0rm -rf /boot/kernel.old ; =C2=A0fi ; > >> >> =C2=A0mv /boot/kernel /boot/kernel.old ; =C2=A0sysctl > >> >> kern.bootfile=3D/boot/kernel.old/"`basename "$thiskernel"`" ; =C2= =A0fi > >> >> mkdir -p /boot/kernel install -p -m 555 -o root -g wheel > >> >> kernel /boot/kernel > >> >> > >> >> /: write failed, filesystem is full > >> >> install: /boot/kernel/kernel: No space left on device > >> >> *** Error code 71 > >> >> > >> >> Stop in /usr/obj/usr/src/sys/NECTRUS. > >> >> *** Error code 1 > >> >> > >> >> Stop in /usr/src. > >> >> *** Error code 1 > >> >> > >> >> Stop in /usr/src. > >> >> -------------------------------------------------------------------= ---------------------- > >> >> > >> > > >> > Look how much space left on partition / > >> > df -h > >> > and is not used for the root account > >> > > >> > >> $ df -h > >> Filesystem =C2=A0 =C2=A0 Size =C2=A0 =C2=A0Used =C2=A0 Avail Capacity = =C2=A0Mounted on > >> /dev/ad4s1a =C2=A0 =C2=A0496M =C2=A0 =C2=A0490M =C2=A0 =C2=A0-34M =C2= =A0 108% =C2=A0 =C2=A0/ > >> devfs =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01.0K =C2=A0 =C2=A01.0K =C2=A0 = =C2=A0 =C2=A00B =C2=A0 100% =C2=A0 =C2=A0/dev > >> /dev/ad4s1e =C2=A0 =C2=A0496M =C2=A0 =C2=A0 26M =C2=A0 =C2=A0430M =C2= =A0 =C2=A0 6% =C2=A0 =C2=A0/tmp > >> /dev/ad4s1f =C2=A0 =C2=A0137G =C2=A0 =C2=A0 13G =C2=A0 =C2=A0113G =C2= =A0 =C2=A010% =C2=A0 =C2=A0/usr > >> /dev/ad4s1d =C2=A0 =C2=A02.8G =C2=A0 =C2=A0162M =C2=A0 =C2=A02.4G =C2= =A0 =C2=A0 6% =C2=A0 =C2=A0/var > >> procfs =C2=A0 =C2=A0 =C2=A0 =C2=A0 4.0K =C2=A0 =C2=A04.0K =C2=A0 =C2= =A0 =C2=A00B =C2=A0 100% =C2=A0 =C2=A0/proc > >> linprocfs =C2=A0 =C2=A0 =C2=A04.0K =C2=A0 =C2=A04.0K =C2=A0 =C2=A0 =C2= =A00B =C2=A0 100% > >> =C2=A0/usr/compat/linux/proc > >> > >> > >> Nautilus: 4258945024 bytes (Free space) > >> /root: 14.2 KB (Used space) > >> > >> > > > > show me the output the following commands from the root account: > > du -chd0 /bin > > du -chd0 /boot > > du -chd0 /etc > > du -chd0 /lib > > du -chd0 /libexec > > du -chd0 /root > > du -chd0 /sbin > > >=20 > bsd# du -chd0 /bin > 1.2M /bin > 1.2M total > bsd# du -chd0 /boot > 14M /boot > 14M total > bsd# du -chd0 /etc > 1.7M /etc > 1.7M total > bsd# du -chd0 /lib > 7.5M /lib > 7.5M total > bsd# du -chd0 /libexec > 514K /libexec > 514K total > bsd# du -chd0 /root > 457M /root > 457M total !!!!!! do not use the Root account to work in the system! !!!!!! Create another account for this... go to this directory (/root) and delete the files that take up much space a= nd you're free ~ 450Mb... > bsd# du -chd0 /sbin > 4.6M /sbin > 4.6M total >=20 >=20 =D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC, =D0=98=D0=B2= =D0=B0=D0=BD! ------------------------------------------ =D0=9C=D1=8B =D0=BC=D0=BE=D0=B6=D0=B5=D0=BC =D0=B2=D1=81=D0=B5 - =D1=87=D1= =82=D0=BE =D0=BC=D0=BE=D0=B6=D0=B5=D0=BC =D1=81=D0=B5=D0=B1=D0=B5 =D0=BF=D1= =80=D0=B5=D0=B4=D1=81=D1=82=D0=B0=D0=B2=D0=B8=D1=82=D1=8C! jabber: fidaj@jabber.ru skype: freedom_fidaj youtube channel: http://www.youtube.com/freedomfidaj mob.: +380938326345