From owner-freebsd-questions@FreeBSD.ORG Tue Sep 29 17:31:00 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 0E9B2106566C for ; Tue, 29 Sep 2009 17:31:00 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id C1C078FC0A for ; Tue, 29 Sep 2009 17:30:59 +0000 (UTC) Received: from r55.edvax.de (port-92-195-71-245.dynamic.qsc.de [92.195.71.245]) by mx01.qsc.de (Postfix) with ESMTP id B78033DBC1; Tue, 29 Sep 2009 19:30:58 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id n8THUvaI001461; Tue, 29 Sep 2009 19:30:57 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 29 Sep 2009 19:30:57 +0200 From: Polytropon To: RW Message-Id: <20090929193057.b889ea39.freebsd@edvax.de> In-Reply-To: <20090929023233.69b37187@gumby.homeunix.com> References: <20090928011444.29110022@chris.makeworld.com> <20090928213703.ecf59a9d.freebsd@edvax.de> <20090929022231.9a92783f.freebsd@edvax.de> <20090929023233.69b37187@gumby.homeunix.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Disk Cloning X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Sep 2009 17:31:00 -0000 On Tue, 29 Sep 2009 02:32:33 +0100, RW wrote: > On Tue, 29 Sep 2009 02:22:31 +0200 > Polytropon wrote: > > > doing 1:1 copies with dd is always possible and will > > keep content identically; remember to copy the MBR separately > > with bs=512 and count=1 from the /dev/ad{source} device. > > Why? As far as I understood, the MBR is 512 bytes at the beginning of the disk. If you dd the disk with a bs != 512, it won't be transferred correctly, because in relation to the disk size you usually do something like bs=1m. So the commands would be: # dd if=/dev/ad0 of=/mnt/ad0.mbr.dd bs=512 count=1 # dd if=/dev/ad0 of=/mnt/ad0.dd bs=1m But I have to admit that I never tried it in reality. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...