Creating clone of a HDD including boot partition
bsd
bsd at todoo.biz
Thu Dec 16 10:55:20 UTC 2010
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
More information about the freebsd-questions
mailing list