If you are using mac hardware, but also want to use ubuntu, you can install ubuntu on an external hard drive without risk to remove your macOS. Here is how to do it without screw up your bootloader:
- Plugin your external SSD/HDD. Open Disk Utility and format it to MS-DOS (FAT)
- Open Terminal window and run:
Then you can find your external hard drive IDENTIFIER, e.g. disk2 in this example.
Install Virtualbox: https://www.virtualbox.org/
Run the 2 command below and start virtual box with admin right:
$ sudo VBoxManage internalcommands createrawvmdk -filename bootcamp.vmdk -rawdisk /dev/disk2
$ sudo /Application/VirtualBox.app/Contents/MacOS/VirtualBox
- Select New and click on Expert Mode. Select “Use an existing virtual hard disk file.
At the System tab, check the checkbox “Enable EFI (special OSes only)”
- At the Storage tab, mount the ubuntu ISO file to the virtual machine, which you can download from here: https://ubuntu.com/download/desktop
8.Start the machine and continue with the installation.
After installation, now you are ready to boot from the drive. For mac, you would also need to decrease the Security level and allow booting from external media. Press and hold Command-R immediately after you see the Apple logo and start macOS recovery.
10.Restart your Mac again and press the Option key. You can now choose your drive with EFI label.
Enjoy the ubuntu on apple hardware (and have fun to sort out the driver issue). I hope this worked for you :)
Experience in software development, application architecture, and deploying cloud solutions for enterprise customers. Strong hands-on skills with a Master's degree in Computer Science and business acumen with a master of business administration (MBA) in Finance. Certified in Amazon Web Services (AWS), Google Cloud Platform (GCP), Microsoft Azure, Kubernetes (CKA, CKAD, CKS, KCNA) and Scrum (PSM, PSPO) with experience in building banking products from scratch.