From owner-freebsd-questions@FreeBSD.ORG Thu Aug 14 07:04:05 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF51237B401 for ; Thu, 14 Aug 2003 07:04:05 -0700 (PDT) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 015A743F85 for ; Thu, 14 Aug 2003 07:04:05 -0700 (PDT) (envelope-from jerrymc@clunix.cl.msu.edu) Received: from clunix.cl.msu.edu (localhost [127.0.0.1]) by clunix.cl.msu.edu (8.12.9/8.12.9) with ESMTP id h7EE3uOg029083; Thu, 14 Aug 2003 10:03:56 -0400 (EDT) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.12.9/8.12.9/Submit) id h7EE3tJY029082; Thu, 14 Aug 2003 10:03:56 -0400 (EDT) From: Jerry McAllister Message-Id: <200308141403.h7EE3tJY029082@clunix.cl.msu.edu> To: support@bluetooth-shop.sk (SUPPORT) Date: Thu, 14 Aug 2003 10:03:55 -0400 (EDT) In-Reply-To: <005801c3621b$4123a540$3501a8c0@pro.sk> from "SUPPORT" at Aug 14, 2003 06:19:23 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: FreeBSD Questions Subject: Re: Build world & build kernel question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2003 14:04:06 -0000 > > Hello everybody, > > please advice me if you know. > > I have my /usr partition 1200 MB big. I ran cvsup, then make world. > Everything was OK, but then I try build kernel and it stoped with > error - No inodes free. df show I use /usr to 103% :-))) > > So I cd into /usr/src then make clean. df show 80% free... > Now I run make kernel again but I'm not sure, if it is not wrong way. > Can I do it such way ? Doesn't make clean "clean" my previously > installed binaries (during make world) ????? make clean just does whatever is under the 'clean' label in the Makefile. It typically includes removing *.o files and other miscellaneous files used while building something. That can mean removing binaries, but usually does not include removing installed binaries. Anyway, you would have to dig down through the Makefile-s to know for sure. It is unique for each one. As for your /usr partition, it depends on what you have in it. Many people put things like /usr/ports and /usr/local and even /usr/src and maybe /usr/share into another large file system and make symbolic links to them. If you have it all in /usr, AND try to do a build it needs to be very big. You may also have some other stuff in there left over from some earlier activity. Go in to /usr and use du(1) to see what is eating up all the space. cd /usr du -sk * Go in to directories that seem unexpectedly large and do it again until you find things you can nuke. You may need to move some things to another file system and make links or create a larger file system. As for inodes, each file and directory needs an inode. A certain number area created when the file system is built. If you don't specify otherwise the system (newfs) tries to guess an appropriate number for the size of the file system you are creating. Of course it is a compromise. If you happen to fill up the file system with a lot of small files you can use up the number of inodes before you actually fill the space. On the other hand if you make a lot of very big files, you can have a lot of created inodes that don't get used even though the space is all used up. Check out newfs(8), especially the -i and -f parameters. /stand/sysinstall does the newfs-ing for you when you initially build the system, but if something like the number of inodes needs adjusting, you may need to do this by hand later. Note, that you can't just rerun newfs. That will wipe out the old file system and overwrite it with the new one (thus destroying all your existing files). ////jerry > > Any advice is very welcome. > > Peter Rosa > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >