Accidentally deleted macOs while installing Ubuntu

Hello guys. I did a horrible thing, accidentally deleted my original macOs monterey while trying Ubuntu 22.04. Even ubuntu is not launching because of a grub error and I don’t have an access to os. How can I reinstall macOs. I have no other mac product. I tried downloading dmf file and etched to my usb and even tried internet recovery but it is not working. Help me please I don’t know what to do.

MacBook Pro 15″

Posted on Dec 9, 2022 10:49 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 9, 2022 01:29 PM

I believe Ubuntu will usually make the GRUB bootloader the default boot option, so there is a chance your macOS installation may still be there unless you actually ended up erasing & using the entire internal drive. Try holding down the Option key immediately after the startup chime to see whether you get a macOS boot option. If you do, then once macOS boots, go into the Startup System Preferences and make sure to make macOS the default boot option. I can provide instructions for removing the GRUB bootloader later if this works.


Try booting into Internet Recovery Mode using Command + Option + R. If you get a large negative error code, then try connecting the Mac directly to the router using an Ethernet cable for a faster more reliable connection which bypasses any hard to troubleshoot WiFi issues. If you cannot boot into Internet Recovery Mode using these special keys, then please tell us at what point the process failed and provide the exact error message.


What is the exact model of your Mac? You can get this information by entering the system serial number here:

Check Your Service and Support Coverage - Apple Support


The problem you encountered here is one reason why I never recommend partitioning a drive or dual booting a system using a single drive. If anyone wants to try using Linux, then installing Linux into a Virtual Machine is the safest option. If the performance of the VM is not sufficient for what is needed and installation to bare metal is wanted, then it is best to install Linux to an external drive (or a second internal drive) so that it is unlikely the main internal boot drive will be touched (or only minimally touched). People should only dual boot to a single drive when they are confident in what they are doing and fully understand the risks. In fact the first time a person attempts to dual boot a computer especially to a single drive, they should do so with a secondary test computer so if something goes wrong nothing important is lost and there are no worries about data loss and system down time.


1 reply
Question marked as Top-ranking reply

Dec 9, 2022 01:29 PM in response to Kholiyl

I believe Ubuntu will usually make the GRUB bootloader the default boot option, so there is a chance your macOS installation may still be there unless you actually ended up erasing & using the entire internal drive. Try holding down the Option key immediately after the startup chime to see whether you get a macOS boot option. If you do, then once macOS boots, go into the Startup System Preferences and make sure to make macOS the default boot option. I can provide instructions for removing the GRUB bootloader later if this works.


Try booting into Internet Recovery Mode using Command + Option + R. If you get a large negative error code, then try connecting the Mac directly to the router using an Ethernet cable for a faster more reliable connection which bypasses any hard to troubleshoot WiFi issues. If you cannot boot into Internet Recovery Mode using these special keys, then please tell us at what point the process failed and provide the exact error message.


What is the exact model of your Mac? You can get this information by entering the system serial number here:

Check Your Service and Support Coverage - Apple Support


The problem you encountered here is one reason why I never recommend partitioning a drive or dual booting a system using a single drive. If anyone wants to try using Linux, then installing Linux into a Virtual Machine is the safest option. If the performance of the VM is not sufficient for what is needed and installation to bare metal is wanted, then it is best to install Linux to an external drive (or a second internal drive) so that it is unlikely the main internal boot drive will be touched (or only minimally touched). People should only dual boot to a single drive when they are confident in what they are doing and fully understand the risks. In fact the first time a person attempts to dual boot a computer especially to a single drive, they should do so with a secondary test computer so if something goes wrong nothing important is lost and there are no worries about data loss and system down time.


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 macOs while installing Ubuntu

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