Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder if it is possible to restore one partition to another in command line? The similar operation can be performed with Disk Utility, but unfortunately I cannot boot in graphics mode (even safe mode does not work). Man page of diskutil does not describe such option. I use Mac OS X 10.7.

share|improve this question
up vote 2 down vote accepted

Normally you can't. If you boot into single-user mode you'll find that diskutil can't run because it's required modules aren't available.

You can try this:

But, the easiest way would be to use an OSX install CD. Boot from the CD (put it in, hold C at boot). When the installer first loads you can choose Disk Utility from the Tools menu.

share|improve this answer
Thanks a million! I totally forgot about installation CD. Anyway it seems diskutil is not able restore the the partition. – zeliboba Nov 9 '12 at 22:15

Even in single-user mode, diskutil can start and repair permissions. You'll have to start the following five services first:

  1. notifyd
  2. configd
  3. diskmanagementd
  4. securityd
  5. disarbitrationd

Details and example-script here:

share|improve this answer
Well, the link with details and example is in German, I do not read it. I'm not interested in repairing the permissions, could you please explicitly mention which command restores one partition to another? – zeliboba Mar 17 '13 at 16:51
That link just gave me a black screen. Seems the same instructions are here in English.… – Julian Mann Jun 9 '15 at 17:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.