From owner-freebsd-questions@FreeBSD.ORG Sat Dec 31 15:45:33 2011 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 D22141065673 for ; Sat, 31 Dec 2011 15:45:33 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 8D1828FC08 for ; Sat, 31 Dec 2011 15:45:33 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.5/8.14.5) with ESMTP id pBVFjWiB050899; Sat, 31 Dec 2011 08:45:32 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.5/8.14.5/Submit) with ESMTP id pBVFjW93050896; Sat, 31 Dec 2011 08:45:32 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sat, 31 Dec 2011 08:45:32 -0700 (MST) From: Warren Block To: =?KOI8-R?B?68/O2MvP1yDl18fFzsnK?= In-Reply-To: <1112244537.20111231112327@yandex.ru> Message-ID: References: <211353632.20111231040344@yandex.ru> <20222.32401.326222.536203@jerusalem.litteratus.org> <1112244537.20111231112327@yandex.ru> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Sat, 31 Dec 2011 08:45:32 -0700 (MST) Cc: Robert Huff , 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: Sat, 31 Dec 2011 15:45:33 -0000 On Sat, 31 Dec 2011, ??????? ??????? wrote: > ????????????, Robert. > > ?? ?????? 31 ??????? 2011 ?., 5:16:33: > > > RH> =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= writes: > >>> Is there any way to reduce partition size on live system? > > RH> No. > RH> Basic steps: > RH> 0) go to single-user; unmount partition > RH> 1) backup affected partition; test backup > RH> 2) delete old partition > RH> 3) create new/smaller partition > RH> 4) restore from backup > > is there a way to goto singe-user through ssh? Single-user and unmounted partitions are desirable but not required. See dump(8) about the -L option.