From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 4 10:40:40 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 2374316A401 for ; Tue, 4 Apr 2006 10:40:40 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail02.syd.optusnet.com.au (mail02.syd.optusnet.com.au [211.29.132.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A50943D46 for ; Tue, 4 Apr 2006 10:40:38 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail02.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k34AeVtL025476 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 4 Apr 2006 20:40:36 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k34AeV6l091399; Tue, 4 Apr 2006 20:40:31 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k34AeV6Z091398; Tue, 4 Apr 2006 20:40:31 +1000 (EST) (envelope-from peter) Date: Tue, 4 Apr 2006 20:40:31 +1000 From: Peter Jeremy To: Khaled Hussain Message-ID: <20060404104031.GI683@turion.vk2pj.dyndns.org> References: <20060328.210412.18287651.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: FreeBSD Hackers 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: Tue, 04 Apr 2006 10:40:40 -0000 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. -- Peter Jeremy