From owner-freebsd-questions@FreeBSD.ORG Wed May 18 18:09:54 2005 Return-Path: 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 0D82D16A4CE for ; Wed, 18 May 2005 18:09:54 +0000 (GMT) Received: from sockeye.firmanix.com (sockeye.firmanix.com [216.127.139.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97B7B43DC0 for ; Wed, 18 May 2005 18:09:53 +0000 (GMT) (envelope-from andy@firman.us) Received: from andy by sockeye.firmanix.com with local (Exim 4.44 (FreeBSD)) id 1DYSzS-000Diu-BM for freebsd-questions@freebsd.org; Wed, 18 May 2005 14:09:54 -0400 Date: Wed, 18 May 2005 14:09:54 -0400 From: Andy Firman To: freebsd-questions@freebsd.org Message-ID: <20050518180954.GA52537@sockeye.firmanix.com> References: <20050506143453.GA65703@sockeye.firmanix.com> <200505061628.41006.ian@codepad.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505061628.41006.ian@codepad.net> User-Agent: Mutt/1.4.2.1i Subject: Re: dump/restore over ssh question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andy Firman List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 18:09:54 -0000 On Fri, May 06, 2005 at 04:28:40PM +0100, Xian wrote: > To restore the filesystems: > Boot from a rescue disk and create the partitions of on the disk. I've never > smashed anything badly enough to need to work out how to do this. At least > the partitions were still there. Well this is more complicated than it seems. First of all, using the fixit mode from 4.11-RELEASE-i386-disc2.iso and trying to use disklabel -e does not work. It gives this error: disklabel: /mnt2/stand/vi: No such file or directory It turns out vi is located at /mnt2/usr/bin/vi and one has to set EDITOR=/mnt2/usr/bin/vi for disklabel to work. Is that a bug? This also happens when I boot off disk1, enter fixit mode, and use the live filesystem with disk2. It is very easy to dump filesystems for backup, but it is not easy to restore filesystems. (I am trying to do this all over ssh...not tape) It is probably just better, easier, faster, to backup all your data and config files (rsync -e ssh -avp ...) and in case of disk failure, replace the disk, install fresh OS, then restore data and config files. What do you think?