Accidentally deleted operating system

I was trying to reset my computer to factory to give to someone and I deleted my operating system and I don’t see my original hard drive. I inserted an external and got the computer to turn on but how do I move it back to the internal hard drive so I don’t have to have the external?

Posted on Jan 3, 2023 5:14 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 4, 2023 11:03 AM

Hello Hpwilliams,



Thanks for choosing the Apple Support Communities. It sounds like you may need to format your hard drive and create a new partition. To do that, try following the steps below.


Erase and reinstall macOS - Apple Support


"Erase and reinstall macOS

You can erase your Mac and use macOS Recovery, the built-in recovery system on your Mac, to reinstall macOS.

WARNING: Erasing your Mac removes all the information from it. Before you start, back up your Mac with Time Machine.

On a Mac with Apple silicon or an Intel-based Mac with the Apple T2 Security Chip

Your computer must be connected to the internet. If you’re reinstalling on a Mac notebook computer, plug in the power adapter.

  1. Erase your Mac using Erase Assistant.
  2. Restart your Mac.
  3. Choose Apple menu > Shut Down, press and hold the power button until “Loading startup options” appears, select Options, click Continue, then follow the onscreen instructions.
  4. In the Recovery app window, select Reinstall for your macOS release, click Continue, then follow the onscreen instructions.

On an Intel-based Mac without the Apple T2 Security Chip

Your computer must be connected to the internet. If you’re reinstalling on a Mac notebook computer, plug in the power adapter.

  1. Choose Apple menu  > Restart, then immediately press and hold Command-R.
  2. In the Recovery app window, select Disk Utility, then click Continue.
  3. In Disk Utility, select the volume you want to erase in the sidebar, then click Erase in the toolbar.
  4. Type a name for the volume in the Name field, click the Format pop-up menu and choose APFS, then click Erase Volume Group.
  5. When the erase process is complete, click Done, then choose Disk Utility > Quit Disk Utility.
  6. In the Recovery app window, select Reinstall for your macOS release, click Continue, then follow the onscreen instructions.

If you want to erase your Mac without reinstalling macOS, in order to restore it to factory settings before you trade it in or sell it, see Erase your Mac.


See also

Intro to macOS Recovery

Reinstall macOS

Recover all your files from a Time Machine backup

Restore items backed up with Time Machine on Mac"



We hope this helps.


Cheers!





1 reply
Question marked as Top-ranking reply

Jan 4, 2023 11:03 AM in response to Hpwilliams

Hello Hpwilliams,



Thanks for choosing the Apple Support Communities. It sounds like you may need to format your hard drive and create a new partition. To do that, try following the steps below.


Erase and reinstall macOS - Apple Support


"Erase and reinstall macOS

You can erase your Mac and use macOS Recovery, the built-in recovery system on your Mac, to reinstall macOS.

WARNING: Erasing your Mac removes all the information from it. Before you start, back up your Mac with Time Machine.

On a Mac with Apple silicon or an Intel-based Mac with the Apple T2 Security Chip

Your computer must be connected to the internet. If you’re reinstalling on a Mac notebook computer, plug in the power adapter.

  1. Erase your Mac using Erase Assistant.
  2. Restart your Mac.
  3. Choose Apple menu > Shut Down, press and hold the power button until “Loading startup options” appears, select Options, click Continue, then follow the onscreen instructions.
  4. In the Recovery app window, select Reinstall for your macOS release, click Continue, then follow the onscreen instructions.

On an Intel-based Mac without the Apple T2 Security Chip

Your computer must be connected to the internet. If you’re reinstalling on a Mac notebook computer, plug in the power adapter.

  1. Choose Apple menu  > Restart, then immediately press and hold Command-R.
  2. In the Recovery app window, select Disk Utility, then click Continue.
  3. In Disk Utility, select the volume you want to erase in the sidebar, then click Erase in the toolbar.
  4. Type a name for the volume in the Name field, click the Format pop-up menu and choose APFS, then click Erase Volume Group.
  5. When the erase process is complete, click Done, then choose Disk Utility > Quit Disk Utility.
  6. In the Recovery app window, select Reinstall for your macOS release, click Continue, then follow the onscreen instructions.

If you want to erase your Mac without reinstalling macOS, in order to restore it to factory settings before you trade it in or sell it, see Erase your Mac.


See also

Intro to macOS Recovery

Reinstall macOS

Recover all your files from a Time Machine backup

Restore items backed up with Time Machine on Mac"



We hope this helps.


Cheers!





This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Accidentally deleted operating system

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.