From owner-freebsd-questions@FreeBSD.ORG Mon Jan 19 18:12:54 2009 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 E60EB106564A for ; Mon, 19 Jan 2009 18:12:54 +0000 (UTC) (envelope-from cliftonr@lava.net) Received: from outgoing01.lava.net (cake.lava.net [IPv6:2001:1888:0:1:230:48ff:fe5b:3b50]) by mx1.freebsd.org (Postfix) with ESMTP id 596158FC1C for ; Mon, 19 Jan 2009 18:12:54 +0000 (UTC) (envelope-from cliftonr@lava.net) Received: from malasada.lava.net (malasada.lava.net [64.65.64.17]) by outgoing01.lava.net (Postfix) with ESMTP id E17AFD009A; Mon, 19 Jan 2009 08:12:48 -1000 (HST) Received: by malasada.lava.net (Postfix, from userid 102) id 7A559153882; Mon, 19 Jan 2009 08:12:48 -1000 (HST) Date: Mon, 19 Jan 2009 08:12:48 -1000 From: Clifton Royston To: FreeBSD Message-ID: <20090119181247.GA9669@lava.net> Mail-Followup-To: FreeBSD , freebsd-questions@freebsd.org References: <4974B9A2.4070709@optiksecurite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4974B9A2.4070709@optiksecurite.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Advice for dump/restore over SSH 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: Mon, 19 Jan 2009 18:12:55 -0000 On Mon, Jan 19, 2009 at 12:34:26PM -0500, FreeBSD wrote: > I'm having difficulties trying to clone a FreeBSD 7.1 PC to another > exact same PC over SSH. > > There is my the things I tried: > > I found that link http://devpit.org/wiki/Dump_and_Restore_over_SSH which > seemed exactly what I wanted. The problem is that FreeSBIE is not > working on this PC (Dell Vostro 220 Slim). It seems to be a problem with > the disk controler (can't mount the / partition). > > So, I decided to install a minimal FreeBSD 7.1 on the PC to be cloned. > I'm trying to dump/restore the /usr partition but I got warnings with > the files already being present and it finally crashed SSHd just after > transfering /usr/lib/libssl.so. After that, there is nothing to do with > the PC, SSHd refuse to restart (segmentation fault). It sounds like you're trying to restore onto the non-empty /usr partition while running programs from that partition. I don't think that is ever likely to work, and I'm not surprised that your sshd crashes and won't restart when you've replaced some-but-not-all of its files. You should restore non-incremental dump backups onto a file system made freshly empty with newfs, which you can do if you bring the system up in single-user mode or boot it from other media like a live CD. This is why the FreeSBIE CD is an essential part of the plan at the link you posted. You will probably have to start again from scratch on the PC you're cloning onto; find some media you can boot it from, or install it to where you can bring it up in single-user and run some listener which is simpler than sshd. -- Clifton -- Clifton Royston -- cliftonr@iandicomputing.com / cliftonr@lava.net President - I and I Computing * http://www.iandicomputing.com/ Custom programming, network design, systems and network consulting services