I'm going to go out on a limb and try to answer the question that you may be thinking but not asking directly: Is there any way to recover my non-functional hard drive and/or computer?
A: Yes, you are in luck there are several options.
- First, if your computer is completely failing to start, even in (normal) Recovery Mode, it's very likely that you have an NVRAM issue and fortunately this is super easy to fix by resetting the NVRAM. Here are the steps from Apple's official support docs:
Shut down your Mac, then turn it on and immediately press and hold these four keys together: Option, Command, P, and R. You can release the keys after about 20 seconds, during which your Mac might appear to restart.
- On Mac computers that play a startup sound, you can release the keys after the second startup sound.
- On Mac computers that have the Apple T2 Security Chip, you can release the keys after the Apple logo appears and disappears for the second time.
Please visit this support page for more details: https://support.apple.com/en-us/HT204063
- If reseting the NVRAM didn't help, and you are not able to use the normal Recovery Mode (as you mentioned in your question), you have another option: Mac computers have something called Internet Recovery Mode. This mode downloads a recovery OS from the internet and allows you to run basic operations on your computer. After booting into Internet Recovery Mode, you can use the native macOS/OSX Disk Utility app to try to correct whatever software issues your disk may have.
To manually start up from Internet Recovery, press and hold either of these key combinations at startup:
- Option-Command-R
- Shift-Option-Command-R
Please visit this support page for more details: https://support.apple.com/en-us/HT201314
- If running Disk Utility in Internet Recovery Mode doesn't solve your issue, then as @Motti Shneor suggested, you can try connecting your mack to another computer using Target Disk mode and copying over your files.
Connect the two computers with a FireWire or Thunderbolt cable. On the Mac you want to use as the disk in target disk mode, do one of the following:
- If the computer is off, start it up while pressing and holding the T key.
- ...
Please visit this support page for more details: https://support.apple.com/guide/mac-help/transfer-files-mac-computers-target-disk-mode-mchlp1443/mac
- If Target Disk Mode doesn't work, but you have the option of either using Internet Recovery Mode (or pulling out your hard drive and plugging it in to another computer), there are some great command line tools for recovering data from a corrupted hard drive. Please see my previous answers here and here for details. I've personally used both of these, and they are good for the following use cases:
- The first option is a native
dd
command. This will attempt to copy your entire disk into a mountable disk image file on an external drive. While doing this, it will replace any physically damaged sectors of the hard drive with zeros: This means all of your undamaged data will be fully accessible without any issues on the new disk image.
- The second option is to use PhotoRec (a third party command line tool), which will attempt to bruit-force read all the data from your hard drive and look for specific file types in it. (You can specify the file types you want when you run it.) This is useful in case your boot sector somehow got destroyed leaving your hard drive inaccessible. (Please note though, both of these options require your hard drive to be un-encrypted, and for you to have at least some degree of read capability on it.)
Continuing from #4: If your issue really is due to a damaged boot sector, you may not need to spend the many hours it will take to run PhotoRec. Check out this almost-magic guide to try to fix your damaged boot sector using TestDisk (another third party command line tool). (Again this requires your hard drive to not be encrypted and be at least somewhat accessible.)
Lastly, if you reached this far, it's probably because your hard drive was encrypted and you're about to give up hope. Fear not, you still have 2 more options! First, when you encrypted your drive, Apple would have given you a prompt asking if you wanted them to save your encryption key on their server. If you agreed to do this, you might be able to reach out to Apple Support and ask them for help to decrypt your hard drive. Second, if you didn't trust Apple with your encryption key, fear not! It's actually not that hard to decrypt a hard drive. While I haven't done this myself, I knew someone who had, and apparently it's not that hard to find tutorials on it. (As a personal example, a couple years ago I stumbled on an official tutorial from Intel about how to decrypt a hard drive using one of their tools. So there are articles out there if you've got the patience to find them.)
Closing remarks:
In the first few options above, I gave some keyboard shortcuts to use while trying to boot your computer. You can find a summary of these (and other useful commands) on this Apple support page: https://support.apple.com/en-us/HT201255. Quickly glancing over this page, I see a few more options that might be able to help you fix your computer, but I didn't list them in my answer because I have not personally tried them, so feel free to try them out if nothing else helps.
diskutil list
? – May 08 '21 at 22:47diskutil cs list
– May 09 '21 at 05:28