You want to sell or give a way your MacBook. You want to ensure that the new owner will not access any of your data.
You may also have so many buggy applications on your MacBook and want to increase stability and performance of your macOS.
- Create a backup of data in your machine .
- Sign out of iTunes, iCloud, iMessage, App Store.
- Remove Messages account.
- Restart the machine and hold Cmd + R.
- Go to Disk Utility.
- Ignore macOS Base System Disk (it will be removed after a new macOS is installed).
- Select a volume (Macintosh HD) and click the minus (-) button on the tool bar above the Volume lable, then click on the Delete Volume Group button.
- Select a volume (Container disk2), click on the Erase button on the tool bar, Name = Macintosh HD, Format = APFS, click on the Erase button.
- APFS, or “Apple File System,” is one of the new features in macOS High Sierra. It’s optimized for solid state drives (SSDs) and other all-flash storage devices.
- Close Disk Utility.
- Select Install macOS (or Reinstall macOS) and follow the instructions to install a clean macOS.
You have a MacBook and you want to use an application that only works on Windows.
- Ensure that your macOS is up-to-date and does not have any issue.
- If you want to reinstall macOS then you can hold down Command+R after powering your machine on.
2. Installing Windows on your MacBook using Boot Camp
- Finder > Shift+Command+u > Boot Camp Assistant
- Select 350Gb (or another appropriate size) for Windows. Use Windows 10 version 1709, November 2017 or an earlier version.
- Install Windows 10.
DO NOT USE Disk Management to create new partitions during Windows installation. Only use Disk Management to format an existing partition when installing Windows.
During the next boot into OS X, the OSXRESERVED partition is removed and put back into the Core Storage container of the OS X partition.
- Install Boot Camp drivers.
- Boot Camp Control Panel… > TrackPad > Tap to Click.
- Change Computer Name, disable System Protection, enable Remote Desktop, activate Windows.
- Turn on Automatic Logon
Command Prompt (Run as Administrator) >> netplwiz
- Disable Hibernate
Command Prompt (Run as Administrator) >> powercfg.exe /hibernate off
- Power management > Change plan settings > Change advanced power settings
>> Hard disk > Turn of hard disk after > Never
>> Sleep > Sleep after > Never
>> Display > Enable adaptive brightness > Off
- Uninstall unnecessary apps, check and install Windows updates
- Use Disk Management to shrink the BOOTCAMP partition and create a new DATA partition. Use 150Gb (153600MB) as the amount of space to shrink.
- Copy portable apps
- Turn the following Windows features on: ASP.NET 3.5, 4.7, Internet Information Service, Telnet Client
- Install Hyper-V, create an external Virtual Switch for Internet access
- Install Total Commander, Remote Desktop Connection Manager
- Install Firefox
- Install MS SQL Server 2008 R2, MS Office 2007 SP3 (Display >> Scale and layout: 175%), MS Project 2016, MS Visio 2016, Visual Studio 2010, Visual Studio 2015, Adobe Acrobat Pro DC v15.8, Adobe Photoshop CC 2015, TortoiseSVN 1.11.1
- Install Python 3.6.8, TensorFlow, Keras
3. Removing Windows from your MacBook using Boot Camp
- Delete all Windows Data partitions, then Extend the Boot Camp volume (C:\) using Windows Disk Management.
- Finder > Shift+Command+u > Boot Camp Assistant > Continue > Restore
- If you get any problem with Boot Camp Assistant then delete Windows Boot Camp partition using Disk Utility: Finder > Shift+Command+u > Disk Utility > Partition.
- If you get a “Ghost” partition after deleting Windows Boot Camp partition using Disk Utility then please use the following procedure to remove it:
Execute below command:
Find EFI IDENTIFIER (e.g. disk0s1).
Execute 2 below commands:
sudo mkdir /Volumes/efi
sudo mount -t msdos /dev/disk0s1 /Volumes/efi
Navigate to /Volumes/efi/EFI. Delete all directories (i.e. Microsoft and Boot) except the APPLE directory.
Execute below command:
diskutil unmount /Volumes/efi