Date: Thu, 16 Dec 2010 12:01:43 +0100 From: keramida@freebsd.org (Giorgos Keramidas) To: bsd <bsd@todoo.biz> Cc: Liste FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Creating clone of a HDD including boot partition Message-ID: <xeiaoc8mf0bs.fsf@kobe.laptop> In-Reply-To: <391E3F03-4064-40FB-850E-C852C10D789A@todoo.biz> (bsd@todoo.biz's message of "Wed, 15 Dec 2010 18:57:33 %2B0100") References: <201012150800.oBF80FRf015357@mail.r-bonomi.com> <58F35D2B-19D0-4FE0-A4DA-03FDA8128BD2@todoo.biz> <xeiaei9j3uq5.fsf@kobe.laptop> <391E3F03-4064-40FB-850E-C852C10D789A@todoo.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 Dec 2010 18:57:33 +0100, bsd <bsd@todoo.biz> wrote: > Le 15 d=E9c. 2010 =E0 16:45, Giorgos Keramidas a =E9crit : >> On Wed, 15 Dec 2010 16:11:45 +0100, bsd <bsd@todoo.biz> 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 :)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xeiaoc8mf0bs.fsf>