Home > Questions

How can I recover the accidentally deleted APFS Container on Mac?

I accidentally deleted an APFS container on my internal hard drive, and now my Mac won't boot. The command I used was: sudo diskutil apfs deleteContainer disk0s1. Although I immediately aborted the action the moment I realized it, I guess it's already too late. Is there any way to restore the APFS container? Any suggestion is appreciated.

Best Answered by

iBoysoft author Jenny Zeng

Jenny Zeng

Answered on Tuesday, August 27, 2024

You can't restore the deleted APFS container, but there is a possibility of retrieving the data stored on it.

Try running iBoysoft Data Recovery in Recovery Mode. If it can't find anything, the data is likely permanently deleted and can't be retrieved.

To make your Mac work again, you need to reformat the internal drive to get the correct drive structure and reinstall macOS. Follow the steps below:

  1. Boot into macOS Recovery Mode.
  2. Click Disk Utility > Continue.
  3. Select View > Show All Devices.
  4. Select the top-level physical drive and click Erase.
  5. Name your drive.
  6. Choose APFS as the format if running macOS High Sierra or later; otherwise, select Mac OS Extended (Journaled).
  7. Select GUID Partition Map as the scheme.
  8. Click Erase.
  9. Once the erase process is complete, exit Disk Utility.
  10. Click "Reinstall macOS" and follow the on-screen instructions to finish the installation.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

Corrigir com.apple DiskManagement disenter error 49223

Corrigir erro 49223 do com.apple.DiskManagement.disenter

Recebendo 'Não foi possível montar com.apple.DiskManagement.disenter erro 49223' em Sonoma, Ventura, Monterey, Big Sur, ou versões anteriores do macOS? Corrija com estas 3 soluções.

Verificar la conexión de Mac para arreglar que la Mac no se encienda

¿Su MacBook Pro/Air no se enciende o arranca? Haga que se inicie ahora

Tutorial para arreglar Mac/MacBook que no se enciende o arranca, sin importar si el problema es debido a un mal funcionamiento del hardware o software. Haga que su Mac se inicie ahora.

Wie man in einem PDF auf einem Mac sucht

Wie Sie auf einem Mac nach einem Wort & Text in einem PDF suchen (kostenlose Methoden)

Erfahren Sie, wie Sie auf einem Mac nach Wörtern und exakten Phrasen in einem PDF suchen und wie Sie alle PDF-Dateien auf einem Mac finden. Gründe, warum Sie auf einem Mac keine Wörter in einem PDF suchen können.