The Stack Overflow podcast is back! Listen to an interview with our new CEO.
44

You can use the dd command to make a bit-perfect clone of a drive. It's a command line tool that ships with OS X. In order to make the clone perfect you'll need to ensure the source and the destination aren't actively in use. To prepare for the clone I recommend creating a secondary boot disk that you can boot from. Your source for the clone should be an ...


21

If you have XCode installed, the best solution is Xcode -> Preferences -> Downloads -> Install Command Line Tools. This put git (among other things) at /usr/bin/git. If you don't have Xcode installed, then installing it just for git would definitely be overkill.


14

Apple's bespoke command line utility to do disk cloning is asr. 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 ...


14

Had the same problem, what I did was i run brew list -1 > brew.txt # list out all installed packages brew list -1 | xargs brew rm --force # remove all installed packages brew install $(cat brew.txt | tr '\n' ' ') # install all previously installed packages If everything went fine, remove the package list by: rm brew.txt You should probably check ...


12

From my point of view, best option is Migration Assistant. You can select: Which users you want to migrate. If you want to migrate or no the installed apps. Allow to migrate settings or not. You can select other files. You can use it with Wifi or Ethernet, FireWire or ThunderBolt. Disk clone is an option for me, when the target machine have the same ...


12

Yes doing the following will fix it brew uninstall --force gettext brew install gettext


11

$ dscl . list /Users | grep -v '^_' daemon Guest macports <--------------------------------------------- remove? mixelpix nobody root $ /usr/bin/dscl . -search /Users name macports macports dsAttrTypeNative:name = ( macports <----------------------------------------- confirm... ) $ sudo /usr/bin/dscl . -delete "/Users/macports" <---- ...


9

Indeed, there are some differences between cloning the disk and Migration Assistant. As you mentioned, MA will not migrate all the files, which can be both good and bad… Corrupt system files won't be copied if you use MA since you are installing a completely new OS, then copying certain files over. However, be warned that since they won't be copied over, ...


8

Pressing Command + Q on both machines will exit the migration assistant. I have a feeling that it copies all files to temporary location before installing them/creating user accounts. So you should be fine. Depending on how far in you might have problems.


8

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.e. it just copies the volume structures, so all the files come out identical (down to the file ID numbers). This is essentially the same thing dd does, except that Disk Utility can expand/contract the volume if the destination ...


8

Verbose output from dd via pv 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. If you are using homebrew (and you should be) installing pv is as easy as: brew install pv Then decide which disks you want to copy. diskutil list /dev/...


8

That part of the prompt is the hostname (\h) by default. Normally changing the computer name from System Preferences also changes the hostname: The settings are stored in /Library/Preferences/SystemConfiguration/preferences.plist: <key>Network</key> <dict> <key>HostNames</key> <dict> <key>...


8

Apparently with macOS Sierra your new Mac can inherit your old Time Machine disk and likely with High Sierra, too. I recently moved the main drive from a failing 2011 mini to a new-to-me 2012 mini. I was prepared to erase the Time Machine disk and start over, as suggested by the first commenter, but I plugged it in and out of curiosity was looking at its ...


7

When you get a new Mac, you can use Migration Assistant, along with your Time Machine external drive, to restore your a backup to your new computer. However, Time Machine will not backup your new computer to that external drive because it recognizes that the identifier of the internal drive on your new computer doesn't match the identifier of the internal ...


7

Like all the comments say, "install macOS fresh." What you are doing is taking a VW based dune buggy and trying to turn it back into a VW Bug. It will be both quicker and easier to to boot into recovery mode. Install a fresh copy of macOS and then using the Migration Assistant, migrate your files, preferences and apps from the Hackintosh drive to the drive ...


5

You could also go System Preferences > Users & Group, right click on your username, click Advanced Options, and set the path of your Home directory. I also feel it's a more "robust" solution, because it's "endorsed" by Apple.


5

This worked for me: After an incomplete timemachine backup (I excluded the folder /System/Library) I had to do the following to get it working again on the same machine (I guess it should also work on your second Mac). Beside the App that was installed to /Applications/Microsoft\ Office\ 2011 Restore these files from your previous installation: /Library/...


5

name (2) is your computer's hostname. You can change it in the 'Sharing' section of System Preferences:


5

As it turns out, it is super easy with a single Terminal command. First, you need to mount the Time Machine share using Finder. Just browse to the server, then to the share so that it mounts. I mounted with Admin privileges since Admin owns the the Time Machine sparsebundle. Then, you open Terminal and run this command: sudo tmutil inheritbackup "/path/to/...


4

As @Globalnomad says using the Migration Assistant is the easiest way as per the Apple reference . However you do not need the extra disk but connect them with a firewire cable see Apple knowledge base for firewire booting The steps are given in the first reference in he section "Migrating using FireWire or ThunderBolt " or if no Firewire cable - connect ...


4

The previous answer is missing one path/folder. For simplicity here is the complete list: /Library/Application\ Support/Microsoft/ /Applications/Microsoft\ Office\ 2011/ /Library/LaunchDaemons/com.microsoft.office.licensing.helper.plist /Library/PrivilegedHelperTools/com.microsoft.office.licensing.helper /Library/Preferences/com.microsoft.office.licensing....


4

You should not use CCC between Macs. Every Mac has a set of drivers configured for the current hardware during installation. When you use CCC to clone to another Mac, you are getting the setup, which is not optimized for that Mac. Use Migration Assistant. I had to migrate several Macs in the past, restoring from the Time Machine or copying from older Macs. ...


4

You can't get that dialog back, but you can inherit the backup manually via Terminal using the tmutil command. Do man tmutil for more information. Example: $ sudo tmutil inheritbackup "/Volumes/Time Machine/Backups.backupdb/iMac" For more information, see the blue box here: http://Pondini.org/TM/B6.html and you would do well to read the whole page before ...


4

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! and that clone booted fine


4

If both MacBook Airs have Thunderbolt, the easiest way would be to use Migration Assistant over Thunderbolt: Get a Thunderbolt cable (borrow or buy). Boot the old Air into Target Disk Mode (hold down T while booting). Connect the MacBook Airs via the Thunderbolt cable. On initial boot of the new Air, you'll have the option of using Migration Assistant off ...


4

Under System Preferences -> Sharing -> Remote Login, my "allow access for" is showing "Unknown User" under "only for these users". This is probably because my user's UID changed after the fresh install. Solution is of course, make sure my user account is in the allowed list, or enable for all users.


4

Apple has a very nice explanation of how Migration Assistant works, what steps and accessories you need and much more: How to use Migration Assistant to transfer files from another Mac In a nutshell, Migration Assistant has three bins of data to move: Applications (just the programs - no user data or settings transfer) Users (the user data, settings, ...


4

A few ways to approach.... Clone your existing drive to a drive image on the 1TB (if it has room). As @revolver mentioned, Carbon Copy Cloner is a good tool. Super Duper does very much the same thing. Your choice. Swap drives and then restore. You'll need a boot drive that has your clone tool. The 1TB could do this, or a flash drive, etc. Plug the new ...


Only top voted, non community-wiki answers of a minimum length are eligible