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 Wednesday, April 24, 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

Finderが予期せずに停止

Receive Finder Quit Unexpectedly Error? Try These Fixes!

Macのファイルマネージャーを通常通りに使用できるように、finderが予期せずに終了するエラーを修正するためのいくつかの動作する解決策を提供してます。

Qué es ReportCrash en Mac

Qué es ReportCrash en Mac | Solucionar el uso elevado de la CPU por ReportCrash

¿ReportCrash está consumiendo mucha CPU en tu Mac? Aprende qué es ReportCrash, cómo detener su demanda de CPU y cómo desactivar ReportCrash en Mac.

Wie man Easystore auf dem Mac verwendet

Wie verwendet man WD Easystore auf dem Mac? [Formatieren & Time Machine]

Interessiert an der Verwendung von WD easystore auf dem Mac? Erfahren Sie, wie Sie easystore für den Mac formatieren oder für Mac und PC, sichern Sie Ihren Mac auf easystore über die Time Machine und beheben Sie das Problem, dass easystore nicht funktioniert.