From owner-freebsd-questions@FreeBSD.ORG Tue Nov 22 23:24:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B8BD116A420 for ; Tue, 22 Nov 2005 23:24:55 +0000 (GMT) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (chylonia.3miasto.net [213.192.74.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E23743D7E for ; Tue, 22 Nov 2005 23:24:35 +0000 (GMT) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (localhost [127.0.0.1]) by chylonia.3miasto.net (8.13.4/8.13.4) with ESMTP id jAMNOFnL038928 for ; Wed, 23 Nov 2005 00:24:15 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) Received: from localhost (wojtek@localhost) by chylonia.3miasto.net (8.13.4/8.13.4/Submit) with ESMTP id jAMNOFbv038925 for ; Wed, 23 Nov 2005 00:24:15 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) X-Authentication-Warning: chylonia.3miasto.net: wojtek owned process doing -bs Date: Wed, 23 Nov 2005 00:24:15 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@chylonia.3miasto.net To: freebsd-questions@freebsd.org Message-ID: <20051123001731.D38500@chylonia.3miasto.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: growfs - to fear or not to fear? 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, 22 Nov 2005 23:24:55 -0000 did anyone used this little thing? i have system like this: # /dev/ad0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 18432000 0 4.2BSD 2048 16384 28552 (/) b: 2457600 18432000 swap c: 312581808 0 unused 0 0 d: 291692208 20889600 4.2BSD 2048 16384 43400 (/home) and would like to have one partition+swap, not two. after booting from CD and turning on shell will 1) copy files from partition a to d, and put files from partition d's root to d's home. mount -o async,noatime /dev/ad0d /mnt cd /mnt mkdir home mv * home mount -r /dev/ad0a /mnt2 (cd /mnt2;tar cf - .)|tar xpf - umount /mnt2 cd .. umount /mnt 2) bsdlabel and delete b, set up a partition to end of disk-1GB, and b after a, not deleting d (yes it will overlap temporarily) 3) dd if=/dev/ad0d of=/dev/ad0a bs=1m to move 4) bsdlabel and remove d 5) FINALLY - growfs /dev/ad0a 6) boot0cfg to make it all bootable. can i do 5) without fear? i want to do full dump of my data, but don't like to do it twice (before for sure, and then after repartitioning).