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ιc. 2010 ΰ 20:20, Warren Block a ιcrit : > 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. Ok, Thanks for the link and explanation. I have tried to use the compressed approach using smthg like: # mount /dev/ad0s1a /mnt # cd /mnt # dd if=/dev/zero of=zerofile bs=1M I have a lot of errors on standerr output such as : g_vfs_done() : da0s1a [WRITE(offset=58978680256, length=131072)]error = 5 Up to a point where It has finaly freezed my running FBSD 8.1. I don't think I have reached the end of the file ?? -- I am restarting the operation. ---------> Grιgory Bernard Director <--------- ---------------> www.osnet.eu <--------------- --> Your provider of OpenSource appliances <-- OSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetOSnetO
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C88DF83E-BCCA-4386-BB91-B12A5B4D7BBA>
