Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cloning an Entire Disk




On Jan 19, 2007, at 11:21 AM, email@hidden wrote:


Hi all,

Maybe not MacOS related, but I'm looking how to clone an entire
device drive drive, regardless filesystems on it,  I need to "simply"
make two hard drive equals, if have read about 'dd' command but is a
bit hard to understand the options...

in my opinion should be:

dd if=sourceDrive of=targetDrive conv=notrunc

for source and target should I use 'disk' or 'rdisk' ?

can anyone help me or know where to read further docs?

Thanks
Amedeo

Use diskutil list to determine which raw disks you want to clone. Alternately, you can use Apple's Disk Utility application, click on the disks you want one by one and then hit the info button to get the raw disk numbers.


Then I just type:

sudo dd if=/dev/rdisk0 of=/dev/rdisk1 bs=131072

The bs option is important or you will be copying the disk one sector at a time. I do this all the time and it works well.

Tim Standing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.