dd - cloning a disk.
Glenn Dawson
glenn at antimatter.net
Sun Mar 12 09:23:27 UTC 2006
At 03:29 PM 3/11/2006, Joseph Vella wrote:
>On Saturday 11 March 2006 14:43, Wojciech Puchar wrote:
> > >
> > > 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.
> >
>
>Would this also work to copy CDs? If so, does it matter what os
>and/or format
>they would have?
You can get an image of a data cd with:
dd if=/dev/acd0 of=foo.iso bs=2048
You can then use burncd to make a copy. Also note that the block
size is important here.
-Glenn
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list