From owner-freebsd-questions@FreeBSD.ORG Sun Jan 1 07:12:59 2012 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 2CF811065675 for ; Sun, 1 Jan 2012 07:12:59 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (unknown [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 08B128FC0A for ; Sun, 1 Jan 2012 07:12:59 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id q017CpSO012506 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 31 Dec 2011 23:12:51 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.14.2/Submit) with UUCP id q017CpC2012505; Sat, 31 Dec 2011 23:12:51 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA12129; Sat, 31 Dec 11 23:01:06 PST Date: Sun, 01 Jan 2012 06:00:57 -0800 From: perryh@pluto.rain.com To: freebsd@edvax.de Message-Id: <4f006719./AMuNtohIrbc9KiB%perryh@pluto.rain.com> References: <211353632.20111231040344@yandex.ru> <20222.32401.326222.536203@jerusalem.litteratus.org> <1112244537.20111231112327@yandex.ru> <20111231171538.fd1156fb.freebsd@edvax.de> In-Reply-To: <20111231171538.fd1156fb.freebsd@edvax.de> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: kes-kes@yandex.ru, roberthuff@rcn.com, freebsd-questions@freebsd.org Subject: Re: reduce partition size. HELP 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: Sun, 01 Jan 2012 07:12:59 -0000 Polytropon wrote: > # cd /var > # dump -0 -L -a -u -f - /dev/ad0s1a | restore -r -f - > > Make sure /var does _not_ contain directory > names identical to those found on the / partition! > As I said, maybe use /scratch. :-) Unless using a freshly newfs-ed partition, it will likely be safer to use restore -x instead of -r; see the description of -r in the restore(8) manpage.