From owner-freebsd-questions@FreeBSD.ORG Thu Dec 16 10:55:20 2010 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 5EED1106564A for ; Thu, 16 Dec 2010 10:55:20 +0000 (UTC) (envelope-from bsd@todoo.biz) Received: from newmail.rmm.fr (newmail.rmm.fr [87.98.206.99]) by mx1.freebsd.org (Postfix) with ESMTP id D46468FC23 for ; Thu, 16 Dec 2010 10:55:19 +0000 (UTC) Received: from newmail.rmm.fr (localhost [127.0.0.1]) by newmail.rmm.fr (Postfix) with ESMTP id 06FE078C51 for ; Thu, 16 Dec 2010 11:55:19 +0100 (CET) X-Virus-Scanned: amavisd-new 2.6.4 (20090625) at rmm.fr Received: from newmail.rmm.fr ([127.0.0.1]) by newmail.rmm.fr (newmail.rmm.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id knMMGdOqNiXr for ; Thu, 16 Dec 2010 11:55:18 +0100 (CET) Received: from newmail.rmm.fr (newmail.rmm.fr [87.98.206.99]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: hidden) by newmail.rmm.fr (Postfix) with ESMTPSA id A06BA78C42 for ; Thu, 16 Dec 2010 11:55:18 +0100 (CET) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1082) From: bsd In-Reply-To: Date: Thu, 16 Dec 2010 11:55:17 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201012150800.oBF80FRf015357@mail.r-bonomi.com> <58F35D2B-19D0-4FE0-A4DA-03FDA8128BD2@todoo.biz> To: Liste FreeBSD X-Mailer: Apple Mail (2.1082) Subject: Re: Creating clone of a HDD including boot partition 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: Thu, 16 Dec 2010 10:55:20 -0000 Le 15 d=E9c. 2010 =E0 20:20, Warren Block a =E9crit : > On Wed, 15 Dec 2010, bsd wrote: >=20 >> Is there a way to dd to a file to create an iso image and then = restore (still using dd from this image). >> I only have one IDE <--> USB cable so this is the reason why It'd = more simple for me to create an iso image of the disk and then restore. >=20 > Use dd's of=3D parameter to send output to a file. If it really has = to be an ISO, pipe it to mkisofs. Using dd like that makes big files = with lots of wasted space. The article I posted earlier shows how to = save some of that by filling the disk's empty space with zeros. Then = gzip can do some useful compression. >=20 >> Using dump won't be very useful because I won't be able to get the = first 63 segments where boot info are written, I need something of lower = level (obviously dd will be my friend). >=20 > A hybrid approach would be to save the first 63 blocks with dd, then = use dump for the UFS filesystems. >=20 > dd if=3D/dev/ad0 of=3Dmbr.bin count=3D63 >=20 > PS: top-posting bad, inline with trimmed irrelevancies good. Ok,=20 Thanks for the link and explanation.=20 I have tried to use the compressed approach using smthg like: # mount /dev/ad0s1a /mnt # cd /mnt # dd if=3D/dev/zero of=3Dzerofile bs=3D1M I have a lot of errors on standerr output such as :=20 g_vfs_done() : da0s1a [WRITE(offset=3D58978680256, length=3D131072)]error = =3D 5 Up to a point where It has finaly freezed my running FBSD 8.1.=20 I don't think I have reached the end of the file=85 ??=20 --=20 I am restarting the operation.=20 =96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96= =96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96 ---------> Gr=E9gory Bernard Director <--------- ---------------> www.osnet.eu <--------------- --> Your provider of OpenSource appliances <-- =96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96= =96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96=96 OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO