Date: Thu, 16 Dec 2010 11:55:17 +0100 From: bsd <bsd@todoo.biz> To: Liste FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Creating clone of a HDD including boot partition Message-ID: <C88DF83E-BCCA-4386-BB91-B12A5B4D7BBA@todoo.biz> In-Reply-To: <alpine.BSF.2.00.1012151214220.98403@wonkity.com> References: <201012150800.oBF80FRf015357@mail.r-bonomi.com> <58F35D2B-19D0-4FE0-A4DA-03FDA8128BD2@todoo.biz> <alpine.BSF.2.00.1012151214220.98403@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C88DF83E-BCCA-4386-BB91-B12A5B4D7BBA>