Date: Wed, 15 Dec 2010 12:20:05 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: bsd <bsd@todoo.biz> Cc: freebsd-questions@freebsd.org, Robert Bonomi <bonomi@mail.r-bonomi.com> Subject: Re: Creating clone of a HDD including boot partition Message-ID: <alpine.BSF.2.00.1012151214220.98403@wonkity.com> In-Reply-To: <58F35D2B-19D0-4FE0-A4DA-03FDA8128BD2@todoo.biz> References: <201012150800.oBF80FRf015357@mail.r-bonomi.com> <58F35D2B-19D0-4FE0-A4DA-03FDA8128BD2@todoo.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 Dec 2010, 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. Use dd's of= 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. > 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). A hybrid approach would be to save the first 63 blocks with dd, then use dump for the UFS filesystems. dd if=/dev/ad0 of=mbr.bin count=63 PS: top-posting bad, inline with trimmed irrelevancies good.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1012151214220.98403>