From owner-freebsd-questions@FreeBSD.ORG Thu Dec 16 11:02:01 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 7FBEE106566B for ; Thu, 16 Dec 2010 11:02:01 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id E7C808FC13 for ; Thu, 16 Dec 2010 11:02:00 +0000 (UTC) X-Spam-Status: No X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.9, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: oBGB1i9A005900 Received: from gkeramidas-glaptop.linux.gr ([74.125.57.36]) (authenticated bits=0) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.4) with ESMTP id oBGB1i9A005900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 16 Dec 2010 13:01:50 +0200 From: keramida@freebsd.org (Giorgos Keramidas) To: bsd References: <201012150800.oBF80FRf015357@mail.r-bonomi.com> <58F35D2B-19D0-4FE0-A4DA-03FDA8128BD2@todoo.biz> <391E3F03-4064-40FB-850E-C852C10D789A@todoo.biz> Date: Thu, 16 Dec 2010 12:01:43 +0100 In-Reply-To: <391E3F03-4064-40FB-850E-C852C10D789A@todoo.biz> (bsd@todoo.biz's message of "Wed, 15 Dec 2010 18:57:33 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: Thu, 16 Dec 2010 11:02:01 -0000 On Wed, 15 Dec 2010 18:57:33 +0100, bsd wrote: > 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. >>> >>> 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). >>> >>> Thanks everyone. I'll try to post the line code once I got It up and >>> running. >> >> No dd(1) cannot do that. >> >> 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. > > Just to be precise, I am not trying to do an ISO image of a running > root FS, but of a USB attached disk. Then it's much easier. Just mount the disk as read-only and use growisofs to dump its contents to a CD-ROM or DVD disk :)