From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 5 18:54:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A45216A400 for ; Wed, 5 Apr 2006 18:54:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id A880D43D66 for ; Wed, 5 Apr 2006 18:54:02 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k35IrwPU063055; Wed, 5 Apr 2006 14:53:58 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 5 Apr 2006 14:53:55 -0400 User-Agent: KMail/1.9.1 References: <20060328.210412.18287651.imp@bsdimp.com> <20060404104031.GI683@turion.vk2pj.dyndns.org> In-Reply-To: <20060404104031.GI683@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604051453.57372.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1376/Wed Apr 5 01:51:25 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Khaled Hussain Subject: Re: cloning a FreeBSD HDD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Apr 2006 18:54:03 -0000 On Tuesday 04 April 2006 06:40, Peter Jeremy wrote: > On Tue, 2006-Apr-04 11:12:03 +0100, Khaled Hussain wrote: > >Why does everyone talk about dump+restore as a pair? I thought it was > >possible just to dump a filesystem to a different hard disk i.e. > >dump -0a -f /dev/ad2 / > > It is. But /dev/ad2 will have a dumpfile on it, not a filesystem. > The only thing that can then read /dev/ad2 is restore. > > >Also, how can I find out which /boot/boot# file a freebsd system is using by > >default? > > None of the ones in the filesystem - these files are embedded into the > beginning of the hard disk. > > One of boot0, boot0sio or mbr is located in absolute sector 0 of the disk. > boot1 is located in sector 0 of the bootable slice > boot2 is located in the (I think) sectors 1-15 of partition a. Actually, boot1 + boot2 occupy sectors 0,2-15 of the bootable slice (the a partition starts at the start of the slice to be confusing) with the actual disklabel table in sector 1 of the slice. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org