From owner-freebsd-questions@FreeBSD.ORG Wed Mar 31 12:34:55 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29FDF1065672 for ; Wed, 31 Mar 2010 12:34:55 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id AB2BC8FC0C for ; Wed, 31 Mar 2010 12:34:54 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nwx8H-00063Y-4g for freebsd-questions@freebsd.org; Wed, 31 Mar 2010 14:34:53 +0200 Received: from pool-141-156-220-120.res.east.verizon.net ([141.156.220.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Mar 2010 14:34:53 +0200 Received: from nightrecon by pool-141-156-220-120.res.east.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 31 Mar 2010 14:34:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Followup-To: gmane.os.freebsd.questions Date: Wed, 31 Mar 2010 08:34:59 -0400 Lines: 46 Message-ID: References: <20100331102600.GJ76702@emmi.physik-pool.tu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-141-156-220-120.res.east.verizon.net Subject: Re: Default labeling and space for rebuilding the kernel. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2010 12:34:55 -0000 Leon Meßner wrote: > Hi, > > if one uses the default labeling with current installer it is not > possible to rebuild the kernel (GENERIC). It fails on installing the > wlan.ko. > > Isn't that wrong somehow ? > > ===> wi (install) > install -o root -g wheel -m 555 if_wi.ko /boot/kernel > install -o root -g wheel -m 555 if_wi.ko.symbols /boot/kernel > ===> wlan (install) > install -o root -g wheel -m 555 wlan.ko /boot/kernel > install -o root -g wheel -m 555 wlan.ko.symbols /boot/kernel > > /: write failed, filesystem is full > install: /boot/kernel/wlan.ko.symbols: No space left on device [snip] There has been some discussion lately about possibly changing the defaults. If you become faced with having to reinstall jot down your current partition sizes and adjust manually making / larger. Since it is full, if you intend to try and recover it will entail deleting something. This could get tricky, especially if the new 'kernel' space is what filled up. This would presuppose that the kernel.old area was already written out successfully. If the machine will not boot successfully with the new kernel it is imperative that kernel.old still be healthy in order to recover. However, if the new kernel does actually boot, with the result being that some modules are missing you may be able to delete the kernel.old in order to buy space. Messing around with this can potentially be problematic, for obvious reasons. A strong 'YMMV' is indicated here. If you can get past that, you may be able to mitigate the / being too small. Place STRIP= -s into /etc/make.conf and WITHOUT_PROFILE= true into /etc/src.conf. The con of this is that you lose some debugging ability. The pro is new kernels will now fit. I have two servers set up this way at home, and one uses 91MB while the other uses 93MB of space. The 91MB one only has a / of 200MB total, and is nearly half empty. Allows for rebuilding and installing a new kernel without running out of space. -Mike