Mac Mini automatically shuts down when booted

16,524

This is probably a result of a corrupted filesystem -- the OS tries to repair it in order to start up, fails, and shuts down as a result. This in turn was probably caused by force-restarting the computer.

You can check this by starting in Recovery mode with Command-R, then running Disk Utility, selecting the startup volume in the sidebar (note that the volume will be listed under the disk it's on) -> First Aid tab -> Repair Disk button; this runs essentially the same repair process (and therefore will probably fail), but it'll tell you what it finds.

Assuming I'm right about the filesystem corruption, the next question is whether you need to recover any data from the disk. Is there anything on the computer you care about? Is it backed up? Are you sure it's backed up? If you need to get anything off the computer, do this before doing anything else! Getting data off an unbootable computer tends to be tricky, and depends greatly on what resources you have available (e.g. other Macs, external disks, etc).

Once you have everything you need copied off the computer, go back into Recovery mode, run Disk Utility, select the startup volume -> Erase tab -> set Format to "Mac OS Extended (Journaled)" -> Erase button. When that finishes, quit Disk Utility, select Reinstall Mac OS X, and follow the instructions. Note that this will download the installer files (about 4GB) over the internet, so it may take a while.

Relevant Apple KB articles: About OS X Recovery, Resolve startup issues and perform disk maintenance with Disk Utility and fsck, Erase and reinstall Mac OS X

EDIT: data recovery in a situation like this can be rather messy, with a number of things that need to be dealt with.

  1. Is the external disk in Mac OS Extended format? If not, you may need to reformat it to get full compatibility with Mac files. This is especially if you're going to use it as a boot disk (see below); in this case you'll also have to make sure it's formatted with a GPT partition scheme. This will, of course, erase the current contents of the disk, so if there's anything important on that, it needs to be backed up first. And be very very sure you're erasing & reformatting the external, not internal, disk.
  2. You need to get the internal disk to mount, so you can get at the files on it. OS X will sometimes refuse to even mount a badly damaged disk. If it's not mounting at all, my go-to tool is Alsoft's DiskWarrior, which is good at both repairing the file structure in place, and also (if it's beyond that) mounting a virtual cleaned-up version of the volume that you can copy files off of.
  3. Finally, you need some way to actually copy the files:

    • If you're familiar with the command line, you can use Terminal in Recovery mode for this; but if you're not already familiar with the command line, this is not a good time to try it out.
    • You can also use Finder, but it's not available in Recovery mode. What you'll probably have to do is use Recovery mode's "Reinstall Mac OS X" option to install OS X on the external disk (after making sure it's in GPT+Mac OS Extended format), then reboot with the Option key held down & select the external as your startup disk. Note that you could also download, install, and run DiskWarrior from the external if necessary.
    • You can use Migration Assistant to copy off your entire user account. It can also copy things like applications; but I'd recommend reinstalling them clean rather than copying possibly-damaged ones. As with the Finder, this isn't available in Recovery mode, so you'd need to install OS X on the external. Once that's done, you can either run Migration Assistant during the initial setup of the new system (one of the screens it goes through is labelled something like "Transfer information from another computer?"), or set the new disk up with a different account (choose a different account name to avoid conflicts), then run Migration Assistant from the Utilities folder.
Share:
16,524

Related videos on Youtube

user36089
Author by

user36089

Updated on September 18, 2022

Comments

  • user36089
    user36089 over 1 year

    My Mac Mini (OS X Mountain Lion) always shuts down when starting it up after the recent upgrade. It displayed as below:

    It always shuts down when it reaches 10~20% of the progress bar.

    I tried to enter the safe mode by pressing Shift, but the result is the same. Is there any way to avoid the auto upgrade and enter desktop directly?

    • HikeMike
      HikeMike almost 11 years
      Did you previously shut down your Mac? Or did you hibernate/sleep it? Did this start happening immediately after installing the update? What version of OS X is installed?
    • user36089
      user36089 almost 11 years
      I shut down several times due to its freezing
    • pzkpfw
      pzkpfw almost 11 years
      Can you boot from a CD? support.apple.com/kb/ht1533
    • jaume
      jaume almost 11 years
      Can you start your Mac and immediately press <Command>-V to enter verbose mode (as explained here: support.apple.com/kb/HT1492 )? When the computer freezes, take a picture of the text on the screen and post it.
    • user36089
      user36089 almost 11 years
      I Press Command-R during startup Start from the OS X Recovery System1 and try to reinstall osx but it said the disk is locked. I found the free space of disk is only 660M, maybe it is the reason, but how to fix it?
    • brevno
      brevno almost 11 years
      Try starting up in single user mode and running fsck -fy. If it shows an error that the disk is write-locked and read-only, running fsck_hfs might fix it. Or try deleting files in single user mode.
  • user36089
    user36089 almost 11 years
    It said 'Disk utility can not repair the disk, and restore your backup files
  • user36089
    user36089 almost 11 years
    I need to copy some files on the root disk to an extenal disk before formatting, How can I do?
  • user36089
    user36089 almost 11 years
    There is an external Toshiba hard disk(1TB) connected to the mac mini, mac mini hard disk is 120G, I hope to copy more files as I can. How can I do?
  • user36089
    user36089 almost 11 years
    Is there a way to copy all datas on the disk to another disk?