Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Mar 2006 23:43:30 +0100 (CET)
From:      Wojciech Puchar <wojtek@tensor.3miasto.net>
To:        Grant Peel <gpeel@thenetnow.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: dd - cloning a disk.
Message-ID:  <20060311234213.N68417@chylonia.3miasto.net>
In-Reply-To: <001901c64517$9d891950$6701a8c0@GRANT>
References:  <001901c64517$9d891950$6701a8c0@GRANT>

next in thread | previous in thread | raw e-mail | index | archive | help
>
> Here is a simple (I think!) question for the I/O savy among you:
>
> If I had two identical disks, say, 73 GB Seagate 10K SCSIs, one completely 
> operational fully setup FreeBSD with all the trimmings, and the other blank, 
> or perhaps loaded but no longer usable, is 'dd' and appropriate tool to 
> completely clone the Good disk to the not so good disk....therefor making the 
> second disk identical to the first? Bootable and all?

yes

dd if=/dev/firstdisk of=/dev/seconddisk bs=64k

and yes it is bootable, but if you boot from second disk, FreeBSD kernel 
will mount root from first disk anyway, unless you will reconfigure it.

so for booting from 2-nd disk, swap SCSI IDs



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060311234213.N68417>