From owner-freebsd-questions@FreeBSD.ORG Mon Jul 6 07:59:24 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 D5F9C106564A for ; Mon, 6 Jul 2009 07:59:24 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (tunnel490.ipv6.xs4all.nl [IPv6:2001:888:10:1ea::2]) by mx1.freebsd.org (Postfix) with ESMTP id 67B088FC0C for ; Mon, 6 Jul 2009 07:59:24 +0000 (UTC) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.14.2/8.14.2) with ESMTP id n667xJwb078815; Mon, 6 Jul 2009 09:59:19 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.14.2/8.14.2/Submit) id n667xJD8078814; Mon, 6 Jul 2009 09:59:19 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Mon, 6 Jul 2009 09:59:19 +0200 From: Ruben de Groot To: insrc Message-ID: <20090706075919.GB78371@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , insrc , freebsd-questions@freebsd.org References: <98be5f7b0907050918k3b316120t491ddd5257be24f3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <98be5f7b0907050918k3b316120t491ddd5257be24f3@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on ei.bzerk.org X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (ei.bzerk.org [127.0.0.1]); Mon, 06 Jul 2009 09:59:23 +0200 (CEST) Cc: freebsd-questions@freebsd.org Subject: Re: how to do a live migration of a freebsd box to another box with rsync 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, 06 Jul 2009 07:59:25 -0000 On Sun, Jul 05, 2009 at 06:18:03PM +0200, insrc typed: > Hi, > I'm used to migrate GNU/Linux system from one box to another by booting the > second box with a liveCD (like systemrescueCD for example) and by copying > the "/" filesystem (using the ssh transport) with rsync. > I would like to do the same for BSD system but i have two issues: > - as the UFS write support is still experimental in the Linux kernel, it > seems that i've to use a BSD liveCD but i can't find one :-/ I heard about > frenzy ( http://frenzy.org.ua/en/ ) but the homepage says that the project > is no longer maintained ! > - i'm wondering how to restore the bootloader after copying the files on the > second box. On linux, i can use the grub-install script to do the job but > i'm a bit lost on FreeBSD :-) Assuming you install on the first slice of the first disk (ad0s1), to install the bootloader and bootstrap code: fdisk -B ad0 bsdlabel -B ad0s1 Ruben