Mac os x clone hard drive command line
I came up with these two, you might be able to find better ones. Thanks for the helpful tips. I use dd-gui as a gui front end for the dd utility. It can duplicate a whole drive to another. It gives a progress indicator which is helpful. As you noted, the process can take a very long time. My next project is to clone a drive containing a Windows XP bootcamp partition to a new drive. Not sure how that will work as far as creating a bootable XP partition. Everytime I double click on the dmg my computer reboots. Cloning to another external hfs drive.
You are commenting using your WordPress. You are commenting using your Google account. You are commenting using your Twitter account. You are commenting using your Facebook account.
Create an account or sign in to comment
Notify me of new comments via email. Notify me of new posts via email. Rolfje's blog.
But just in case, we wanted to make an exact disk image of the drive, so that we could easily restore it when the PC returns from the store I wanted to have a future proof process, run on a Mac, something as follows: Make an image file of the complete source harddisk including all partitions in our case there were 3 NTFS partitions on the disk.
Sasha S. Chris Pierce says:. Per Jensen says:. Kevin Smith says:. Dude says:. I've got several TB and want to back everything up at one go rather than doing a Finder copy of each partition, three of which have different versions of MacOS necesitating tge use of something like CCC. I want to set it and forget it, letting the operation run overnight unattended. Mac mini, macOS Sierra Posted on May 7, PM. Page content loaded. I am not aware of any GUI based tools that offer this feature but can suggest one possible approach.
It would I feel only have a change of working if both drives are identical sizes and preferable identical models as well. Which in your case seems a possibility. There is a command-line tool called dd which stands for disk duplicate presumably. Normally one uses it to duplicate an individual partition but you can specify the entire drive as well.
Here is the command to copy an example individual 2nd partition to another individual 2nd partition -. It is tailored to the specifics of OS X needs to perform file by file as well as block based imaging and deals with differences in partition sizes, allows network streaming and even multicast streaming as well as copying between disks that are locally connected. Unlike dd , it knows about Apple's latest Core Storage volume management and is the program that the graphical Disk Utility calls to move data from one partition or volume to another.
You can read more at the manual page for asr. Disk Utility can do volume-to-volume cloning with the Restore tab. Between two Mac OS Extended volumes, this'll do a block copy, i. So it looks like the rdisk suggestion makes dd run about the same speed as Disk Utility; the real differences are that Disk Utility verifies its data slower, but maybe safer and skips blank space faster if the disk isn't nearly full. That, and as I said above DU can resize as it copies. Copying even a small disk can take a long time and the silence can be frustrating. If you install pv pipe viewer you can use it to monitor the progress of any stream.
hard drive - What is the best way to clone a disk between two Macs? - Ask Different
If you are using homebrew and you should be installing pv is as easy as:. This allows you to use unix pipes in between. Carbon copy cloner was good, but then on my Mac Pro it no longer made bootable clones, I tried it 3 times and every clone failed to boot unlike previously. So I switched to SuperDuper! We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.
How about good ol' fashioned dd. It can make a bit-by-bit copy of your drive. There are lots of guides out there on how to do this such as this one or this one. There are two types of cloning Mac drive. File level and block level based cloning. As we know carbon copy cloner can create file level based clone only and its one of the big competitor Superduper can create clone of volumes and partition only not the whole disk.
So, I will suggest to go for a new emerging Mac cloning software that is Stellar Drive Clone capable to both file level and block level cloning. It can create bit by bit exact copy of your entire drive and particular volumes on your any external drive, volume and network drive too. It can create clone of drive on folder and restore backups from the same in its free demo version feature.
Thank you for your interest in this question.
How to Copy a USB disk using dd for MAC or Linux
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site the association bonus does not count. Would you like to answer one of these unanswered questions instead? Sign up to join this community. The best answers are voted up and rise to the top.
Home Questions Tags Users Unanswered. Ask Question. Asked 7 years, 4 months ago. Active 1 year, 10 months ago. Viewed 91k times. So, really now, once again: how do you clone the disk over byte-for-byte?