• On BNET: Bill Gates on the iPad
advertisement
March 27, 2009 3:02 PM PDT

Information and Recommendations on Cloning Hard Drives

by CNET staff

Cloning Benefits

Cloning a hard drive is when you create an exact copy of one drive's contents to another, which has been made quite simple with the availability of high-capacity external drives, simple connectivity, and highly developed cloning software. Many troubleshooting guides include recommendations for "cloning" your system's boot drive. Various MacFixIt articles references this, and it is advocated in discussion forums and other places as an alternate means of backing up the hard drive before performing system maintenance, system alterations, or software upgrades.

Unlike conventional backup systems such as Time Machine, which keep multiple versions of files and track changes over time, cloning only makes one copy of the files on a disk; however, it does have one major advantage in that the clone is bootable. This means that in the event of a hardware failure or major software corruption you can immediately boot off the cloned drive and be running again in a matter of seconds.

Beyond bootability, cloning also can make your work highly portable. For instance, if you have Macintosh computers available in several locations, instead of transferring files back and forth between them, you can clone your drive to a portable external disk and then boot off of it from every machine you work on. This will ensure you have the proper programs installed, and you won't have to worry about strange settings that might interfere with your work flow. You take everything with you, without having to lug around a laptop.

In addition to the computing benefits from cloning, its popularity has arisen partly from the simplicity involved in cloning the contents of one drive to another. All you need is an external drive and cloning software, some of which is included in OS X.


The hardware setup

In order to prepare for cloning your drive, you will first need to have a free drive partition to clone to. This partition can be on any locally mountable drive (internal or external), and can be any size as long as it is at least large enough to accommodate the size of the files on the source disk. Despite the option for this minimum size, we recommend making the clone as large as possible, and preferably the same size as the internal boot disk, which will accommodate clone growth over time.

To find the minimum space required for the clone partition, select your boot drive and get information on it. The number that is displayed next to "Used" in the "General" section is the minimum number of GB that will be needed for the cloned partition. A general rule of thumb is in order to run the system without major slow downs: you will need at least the amount of space to hold everything currently on your hard disk, plus an additional 10 percent or so for virtual memory space. For instance, a drive with 61GB of used space would need at least 68GB free on the clone (61GB 6.1GB free, rounded up).

Even though cloning can be done using minimum drive space, we recommend to plan ahead for drive growth, especially if you plan on booting from and working with files on the clone at some point. If possible, making the clone the same size as the boot drive is the preferred practice.


The software setup

Beyond the hardware and drive size considerations, you will need to use some cloning software to create the clone. While there are well-known third-party packages for creating clones, many people overlook the cloning utilities that come with OS X. In OS X, the "Disk Utility" application can restore one volume to another one, and create a working copy of the system.

To clone with Disk Utility, select a local disk drive in the device list and click the "Restore" tab. Then drag the boot drive to the "Source" box, and your destination partition to the "Destination" box, and click the "Restore" button. You will have the option to erase the destination partition before restoring, which you should do unless the volume is already empty.

This process is convenient, however, unlike third-party solutions there are no ways to schedule Disk Utility to create these clones. Regardless, you can schedule the underlying "asr" (Apple Software Restore) terminal command that Disk Utility utilizes, which can be done using Automator, Applescript, or other scripting solutions that can send commands to the Terminal. To use the "asr" command, consider the following example:

asr restore --source /Volumes/Source --target /Volumes/Clone

In this example, the command will restore the mounted source volume to the mounted target volume, using the disks at the given mount paths for "Source" and "Clone." For a standard boot drive, the full "Source" path would be /Volumes/"Macintosh HD," and the destination would be the name of the destination drive. For more information on the "asr" command, read the manual page by entering "man asr" in the Terminal or visit the following Web site: http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man8/asr.8.html

Other than the built-in options, there are a couple of robust cloning software packages that people have preferred for various reasons, which include support for various cloning methods as well as options for scheduling. In addition, their cloning routines are faster and in some instances more successful than Disk Utility.

NOTE: Carbon Copy Cloner was recently updated, so be sure you have the latest version if you are planning on using that software


Cloning methods

When you clone a drive, you are either doing file-level cloning or block-level cloning. Each of these methods have unique benefits, though not every cloning package supports them, such as in Disk Utility where file-level cloning is the only option.

File-level cloning is where the system will copy files as they are organized on the disk, but will place them in any available spot on the clone disk. This usually means the files get written to one section of the drive, which can be taken advantage of if you want to defragment your drive for various reasons.

Unlike file-level cloning, which alters the physical location of files on the disk, block-level cloning is like a virtual photocopy of the drive structure and on a per-block basis copies the layout of the source drive to the destination drive. This keeps the files as they are on the disk, and ensures they do not get moved to different locations on the cloned drive. This will not make a difference to most people, but in some instances block-level cloning may be preferred.


Testing and troubleshooting

Once the clone has been made, you will need to test it out and ensure everything went smoothly. The easiest way to do this is to simply boot off of it. With the drive connected to the system, reboot and hold the Options key to bring up the boot menu. Then select the cloned drive to boot from, and if everything worked out you should see your desktop and files as if you were booted to the internal drive.

It may also benefit you to run disk verification and permissions checks on the drive using Disk Utility or other drive maintenance software to ensure the drive structure is intact. This can be done either booted off the drive or done more thoroughly when running from another boot drive.


Basic use and recommendations

Once the drive has been cloned, you can boot from it using other computers or allow it to be a backup for testing new software or system configurations. If you need to restore your internal boot drive from the clone, the steps are exactly the same as creating the clone initially, only that you're using the internal drive as the destination drive. Unlike Time Machine, which requires you to boot to your Leopard DVD and restore using various utilities, you can immediately boot to the clone and either work from it or restore at a time of your choosing. Regardless of the files you create on the clone drive, when you restore it to the internal drive all new files will be copied over.

There are several things to keep in mind with clones. For one, clones do not need to be on their own drive, and you can utilize both the cloning and Time Machine on separate partitions of the same drive. There are many combinations of drives that can be used, and its worth exploring the options that will best suit your setup. Additionally, even though some people may argue either way on this, they're not a replacement for conventional backup systems since they don't keep a history of file changes. Time Machine's "snapshots" are exceptionally useful for finding preferred or lost versions of files, and therefore one setup you might consider is using clones in conjunction with Time Machine and other backup systems. Using Time Machine will allow for hourly backups, and scheduling clones to be made once a day can be easily set up to ensure you can immediately boot in the event of a major software or hardware fault and access your most recent files. Doing this will ensure you are able to keep working with minimum interruption to your workflow.

Resources

  • http://developer.apple.com...
  • http://www.bombich.com/sof...
  • http://www.shirt-pocket.co...
  • More from Late-Breakers
  • Recent posts from MacFixIt
    iTunes 10 user interface sees some minor changes
    Apple seeds iOS 4.1 Gold Master to developers
    Possible fix for Harman Kardon iSub problems with PowerPC Macs
    Precautions to take before installing iTunes 10
    A reminder on how to reset your Mac's system password
    Mail messages appearing blank
    Adobe Lightroom update brings direct Facebook publishing; Camera Raw 6.2 released
    Weekly troubleshooting utilities update
    Add a Comment (Log in or register) Showing 1 of 2 pages (27 Comments)
    by hamarkus March 27, 2009 3:27 PM PDT
    I wonder why Synk always gets omitted from such lists of cloning tools? But probably there are even more cloning tools that are equally missing not least the block copy tools that only work on non-boot drives.
    Reply to this comment
    by frito-bandito March 27, 2009 3:56 PM PDT
    CCC is all you need. it is the bomb! use it every month as I think clones of current drive is the best backup
    Reply to this comment
    by rmosec2 March 27, 2009 3:56 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by frito-bandito</i></div></class><br />
    CCC is not the best. The reason being, I have had data errors where, the disk was non-repairable or useable after cloning with CCC. Disk Warrior was not able to repair all the damage that CCC caused.

    THe best one is CCX. Copy Cat X. It's not free, but, it works and there's no bugs. It's rarely updated as it's already a solid application.

    CCC supports both file by file mode and block mode but, for some reason, It did not retain any license codes for software applications. I found in my testing that only CCX retains full key codes thus elimating the tedious tasks of calling the software companies for new keys. This saves tons of time and hassles.

    One requirement of CCX is that the drive volume must equal to or greater than the source drive in order for it to accommodate the block by block clone method. It's limitation is that it does not support file by file method. So, with that limitation that means that one can not clone to a smaller volume than the source drive like one can when using CCC's file by file method. Both apps are necessary in my opinion. So, to just simply backup to a drive, CCC works fine as long as they have fixed that data error bug.

    I back up to an image as well as duping the drive to a spare. If the main drive becomes irreparable, I simply fly the image back on and, if the drive fails, I use the duplicate spare and there's no downtime and no need to relicense any software. I can keep working no matter what happens. Simply replace the failed drive and clone to that as your spare and the whole process is back where you started. No downtime.
    Reply to this comment
    by Andreas.. March 27, 2009 5:20 PM PDT
    Permit me three small corrections. 1) An Intel Mac will boot on a drive using either GUID or Apple Partition Map schemes. What you cannot do on an Intel Mac without GUID is use the Apple Installer, as for instance for an OS update. 2) With Carbon Copy Cloner you CAN have other data in the same partition as the clone - not perhaps highly recommended because prone to user error, but perfectly possible. 3) Western Digital say that none of their external drives (not just My Book models) are recommended for booting any computer.<p>---<br><I>Andreas</I><br />
    G5 2.1GHz ? Nosing around in OS 10.5.6, but working in 10.4.10
    Reply to this comment
    by kent1 March 27, 2009 6:08 PM PDT
    Well that WD page says that certain models will and I have personal experience of those models which it says won't they don't!
    I run our Mac User Group www.hbmug.com and several members came unstuck when they bought certain drives to use with a Power PC
    They cloned OK but would not boot their Mac.
    Didn't even appear in Startup Disk or Startup manager<p>---<br>DocOnMac
    Reply to this comment
    by tkessler March 27, 2009 6:08 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by kent1</i></div></class><br />
    I was referring to it stretching out the article... ;)
    Reply to this comment
    by pachy_dotmac March 27, 2009 6:08 PM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by tkessler</i></div></class><br />
    He provides valuable information and you criticize the way it is presented. Why not just keep silent.
    Reply to this comment
    by tkessler March 27, 2009 6:08 PM PDT
    <class="merchant"><span>&#62;&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by pachy_dotmac</i></div></class><br />
    Relax there champ. I'm not criticizing his content and can give whatever feedback I like.
    Reply to this comment
    by kent1 March 27, 2009 6:08 PM PDT
    <class="merchant"><span>&#62;&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by pachy_dotmac</i></div></class><br />
    Thanks patchy, I was just filling in what I considered the good article missed out from my personal experience, not what I had just read!Several of my members came unstuck with un bootable drives when they bought WD drives from PC vendors in town. Also they are all formatted for Windows.
    I suppose it pays to get a more Mac friendly drive from Mac retailers.
    It's a pity the link was so huge but all you have to do is click it or copy and paste.
    Blame Western Digital for the verbose URL!
    <p>---<br>DocOnMac
    Reply to this comment
    by kent1 March 27, 2009 6:08 PM PDT
    <class="merchant"><span>&#62;&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by pachy_dotmac</i></div></class><br />
    Thanks patchy, I was just filling in what I considered the good article missed out from my personal experience, not what I had just read!
    It's a pity the link was so huge but all you have to do is click it or copy and paste.
    Blame WD for the verbose URL!
    <p>---<br>DocOnMac
    Reply to this comment
    by macdad614 March 27, 2009 6:08 PM PDT
    <class="merchant"><span>&#62;&#62;&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by kent1</i></div></class><br />
    While it is true that copy-and-paste will put the text into a narrower (and readable) format,
    it does not show (by indentations) which comments are replies to whom.
    Reply to this comment
    by macdad614 March 27, 2009 6:08 PM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by tkessler</i></div></class><br />
    Whoever sent this must have been using a display wider than 23 inches! WUWT?

    I have not seen this much need for scrolling since I programmed on a Mac Classic with a 9-inch screen.

    Perhaps it could be re-posted.
    Reply to this comment
    by tkessler March 27, 2009 10:16 PM PDT
    I dont believe you can boot off an APM partition on an intel-mac. Granted I've not tried, but from what I've read it basically comes down to GUID=intel, APM=PPC...
    Reply to this comment
    by Andreas.. March 27, 2009 10:16 PM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by tkessler</i></div></class><br />
    You are correct in just one thing: "<b>from what I've read</b>".
    Please don't be one of those who spreads that erroneous belief.<p>---<br><I>Andreas</I><br />
    G5 2.1GHz ? Nosing around in OS 10.5.6, but working in 10.4.10
    Reply to this comment
    by tkessler March 27, 2009 10:16 PM PDT
    <class="merchant"><span>&#62;&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Andreas..</i></div></class><br />
    Thats why this is a discussion and also why I didnt state it as fact...ffs lighten up.
    Reply to this comment
    by Macsure1 March 28, 2009 9:49 AM PDT
    Good overview and appreciated.

    However, it is not possible to just clone any one Mac Volume to any "randomly chosen" or "on hand" Mac: there are currently G3, G4. G5 and a few iterations of Intel CPUs in the hands of Mac owners. Often, at-home collections will include two or more generations of Macs.

    So, even if the cloned (source) Mac Volume is to be duplicated on an external drive, it will not work unless that drive is then connected via FireWire to a Mac which is of the same OS generation and same CPU type as the Mac which has been cloned. I don't believe it's possible (for example) to clone a G4 OS X 10.2.x Mac Volume to an Intel OS X Mac Volume. You cannot, as the article implies, just take a cloned "bootable" external drive and connect it to "any Mac" you may wish without regard to these specifics.

    If the clone is an OS X disk - and *files only* are cloned - then those files should be transferrable to, for example, any Mac which is also running OS X, regardless of the generation difference in Systems and CPU type. Of course, files-only sharing and transfer are much simpler than cloning systems.

    Those new to cloning should take note of this and do their homework thoroughly before proceeding. As noted, there are also choices of cloning applications: check with the third party vendors regarding any cloning configurations you may have in mind to determine if it can and should be done with their cloning app.
    Reply to this comment
    by tkessler March 28, 2009 9:49 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Macsure1</i></div></class><br />
    I guess clarification would be that this would work for any supported mac for the given operating system version, provided the architectures are the same. For PPC macs you should be able to boot an installation for a G5 on a G4, and the intel versions should also be bootable on other models of intel macs (not from software differences, but from GUID/APM differences that would prevent intel installations from booting up on PPC architecture). Keeping the models the same is recommended for maximal compatibility, but isnt always a requirement.
    Reply to this comment
    by WhiteDog March 28, 2009 9:49 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Macsure1</i></div></class><br />
    There are important differences between SuperDuper! and Carbon Copy Cloner to consider. SuperDuper is the easiest to use. But Carbon Copy Cloner offers more granular copies. You can specify which files and folders, if any, to exclude from a copy. As for Copy Cat X, I haven't tried it, but the limitations of its block copy procedure should be taken into account. Not only can you not copy to a smaller drive, the copy is not defragmented. And the fact that it hasn't been updated in two years raises a caution flag in my mind. OS X has changed considerably in that time. And Copy Cat X is twice as expensive at SuperDuper! and costs six times more than Carbon Copy Cloner.

    Personally, I use both Time Machine and SuperDuper!. They each have their advantages and they don't overlap much.

    ---
    Don't anthropomorphize computers.
    They hate that.
    Reply to this comment
    by m-bomb March 28, 2009 9:49 AM PDT
    <class="merchant"><span>&#62;</span><div class="datestamp"><i>This is a reply to a previous comment by Macsure1</i></div></class><br />
    Yes you can BOOT off an APM partition on an Intel mac. However, an Intel mac will not let you INSTALL to an APM partition. You can only install to GUID from Intel, and only install to APM from PPC. Interestingly, however, if you clone an Intel GUID formatted drive functioning Mac OS X install to an APM drive, you can boot the Intel via USB from the cloned APM drive. You can also boot the Intel from the APM clone via firewire. You can also boot an original PPC installation (at least in Leopard) off an APM partition, to run an Intel. My Leopard Install, at 10.5.6 etc., created on a trusty old G5 Powermac, and cloned to external firewire 800, will boot a Macbook Air, via USB, from the same drive (the OWC enclosure in question has fw 800, usb, and esata), and run it fine. Thus a cloned PPC/APM external drive (firewire) gives you a "dual boot" drive. And this is the only way to make a "dual boot" drive. Once you get into trying to boot older systems you may run into trouble, so I'd stick to the latest Leopard for these stunts. The only experiment I haven't tried is cloning a GUID to APM, and trying to boot a PPC from that. (The Western Digital I use to boot my Intel, and where I have my Intel clones, will not boot PPC via firewire, only Intel via USB. Yawn.)
    Reply to this comment
    by samarb March 29, 2009 5:17 AM PDT
    I've just read the Western Digital advice on bootable clones and it appears that, on an Intel Mac and using USB, all the Western drives will work. A smaller number will work with firewire, and there are also limitations with PPC Macs. For those of us who are willing to work with USB and who have Intel Macs, there should be no worry with the Western drives.
    Reply to this comment
    Showing 1 of 2 pages (27 Comments)