From owner-freebsd-questions@FreeBSD.ORG Wed Dec 15 17:57:35 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 3E2C91065673 for ; Wed, 15 Dec 2010 17:57:35 +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 F20548FC1A for ; Wed, 15 Dec 2010 17:57:34 +0000 (UTC) Received: from newmail.rmm.fr (localhost [127.0.0.1]) by newmail.rmm.fr (Postfix) with ESMTP id 4F8F878C2C; Wed, 15 Dec 2010 18:57:34 +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 gF7TGsDHnK02; Wed, 15 Dec 2010 18:57:34 +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 E393278C21 ; Wed, 15 Dec 2010 18:57:33 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=windows-1252 From: bsd In-Reply-To: Date: Wed, 15 Dec 2010 18:57:33 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <391E3F03-4064-40FB-850E-C852C10D789A@todoo.biz> References: <201012150800.oBF80FRf015357@mail.r-bonomi.com> <58F35D2B-19D0-4FE0-A4DA-03FDA8128BD2@todoo.biz> To: Giorgos Keramidas X-Mailer: Apple Mail (2.1082) Cc: Liste FreeBSD 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: Wed, 15 Dec 2010 17:57:35 -0000 Just to be precise, I am not trying to do an ISO image of a running root = FS, but of a USB attached disk. =20 =85=20 Le 15 d=E9c. 2010 =E0 16:45, Giorgos Keramidas a =E9crit : > On Wed, 15 Dec 2010 16:11:45 +0100, bsd wrote: >> 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 >> 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 >> Thanks everyone. I'll try to post the line code once I got It up and >> running. >=20 > No dd(1) cannot do that. >=20 > What you _can_ do is boot into single-user mode, and then use mkisofs > with burncd or growisofs from dvd+rw-tools to burn an image while = still > in single-user mode. The only user mode process is your root shell at > that point, so you can be relatively sure there are no major changes > happening somewhere at the filesystem while you are still dumping it = to > a CD-ROM or DVD-ROM disk. >=20 >=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