Fw: dd - cloning a disk. Second Part!

Chuck Swiger cswiger at mac.com
Sat Mar 11 14:39:05 UTC 2006


Grant Peel wrote:
> I the answer is yes to the first question (original question), then,
> what happens if one 'dd's a small, say 36 GM disk to a larger one, say
> 73 GB. Can the newly made disk be resized so as not to loose 1/2 of it?

If you partition the bigger disk into two fdisk partitions, one of which is
exactly the size of your original disk, you could use dd to copy the contents of
the BSD slice from one disk to the other, and then use newfs to create a
separate filesystem on the second fdisk partition.

However, if you want to use the entire 73GB space at once, use dump and restore
to copy the data instead.  There's detailed documentation on this on the FreeBSD
website...

-- 
-Chuck


More information about the freebsd-questions mailing list