From owner-freebsd-questions@FreeBSD.ORG Tue Feb 10 02:23:53 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AE28106566B for ; Tue, 10 Feb 2009 02:23:53 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.230]) by mx1.freebsd.org (Postfix) with ESMTP id 599E88FC0A for ; Tue, 10 Feb 2009 02:23:53 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2264807rvf.43 for ; Mon, 09 Feb 2009 18:23:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=6+Kv30oiURsT97MkE8am2eN4rzFts2PoGFzq8WjQPBU=; b=UlQZTwKM56iJqHttNmHpyMEzghVXeZKeKc/jXYWXoX6bu2UhNCjseIrix9932JLZKN Y6u/DydjDqvdxMfz6bSTr8qB5BhxQsvMuIzfXVI8w5G3UU0CDeX5vpMG+6V8WQOnIGR2 6y2bUUSVhoPHqWaC9HCzgfHxEghC23CjHN2Gw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=BKXQ8H5rF3AJ0mqwzCgB3wn6Kbe23UIVljBZxTUN+iRpwpPg+oct5DPvn3yIf4tT9c D/Uqi1RHwJjoAdD9YeH1YZwSvTzSxsDsIHwNP16K60ou0kGJpFhrPhXgGE5v/+Lf/6Il j+unAp2kuh7WwwRWUAkvgCeWqAYpbjePIxsIw= Received: by 10.141.161.6 with SMTP id n6mr4358864rvo.31.1234232633156; Mon, 09 Feb 2009 18:23:53 -0800 (PST) Received: from ?192.168.4.44? (c-68-35-57-46.hsd1.nm.comcast.net [68.35.57.46]) by mx.google.com with ESMTPS id k41sm9910065rvb.3.2009.02.09.18.23.52 (version=SSLv3 cipher=RC4-MD5); Mon, 09 Feb 2009 18:23:52 -0800 (PST) Message-ID: <4990E51A.6060104@gmail.com> Date: Mon, 09 Feb 2009 19:23:22 -0700 From: Tim Judd User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Albert.Shih@obspm.fr References: <20090206202032.GB76165@obspm.fr> <498E9D26.3090804@gmail.com> <20090209232815.GD95274@obspm.fr> In-Reply-To: <20090209232815.GD95274@obspm.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: questions@freebsd.org Subject: Re: installkernel on small disk 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: Tue, 10 Feb 2009 02:23:53 -0000 Albert Shih wrote: > Le 08/02/2009 à 01:51:50-0700, Tim Judd a écrit > >> Albert Shih wrote: >> >>> Hi all >>> >>> I've two servers (in fact guest in vmware) on don't have enought disk space >>> to make buildkernel (or world). >>> >>> For the world freebsd-update can work. But for the kernel I've my own >>> kernel. >>> >>> So if I compile the kernel on the other server how can I put it on the >>> first ? >>> >>> Regards. >>> >>> >>> >> With an NFS mount, with sneakernet, or scp. >> On the machine with enough disk space: >> make buildkernel installkernel DESTDIR=/nfsmount KERNCONF=otherkernel >> #hackish and i'd be worried of this. It will force a backup of the >> running kernel to the remote /boot/kernel.old >> >> I'd recommend: >> make buildkernel installkernel DESTDIR=/tmp KERNCONF=otherkernel >> tar -czf /tmp/otherkernel.tgz /tmp/boot/kernel >> # bring the otherkernel.tgz file to the machine, maybe by usb stick, >> and extract. don't forget to tar -xz*p*f (permissions) >> > > Thanks. > > But in that case why I can't just do > > cd /boot > tar czvf some_place/kernel.tgz kernel > > and just transfert the kernel.tgz and make the tar xpf ? > That is what I have above, commented out as another option. > >> How thin on disk space are you? >> > > 2 Go for everything.... But I can mount by NFS more space (very more). > > Thanks for the answer. > > Regards. >