Last active
November 13, 2019 08:50
-
-
Save marcelblijleven/d1dfacac74b342a8082814e537db6d51 to your computer and use it in GitHub Desktop.
Delete boot entries from EFI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find the partition called EFI | |
diskutil list | grep 'EFI' | awk '{print $(NF)}' | sed 's/s[0-9]/s1/' | |
sudo mkdir /Volumes/EFI | |
sudo mount -t msdos /dev/disk0s1 /Volumes/EFI # Replace disk0s1 with actual EFI partition | |
# Delete boot entries | |
cd /Volumes/EFI/EFI | |
# choose any applicable, renaming is also an option (to be safe). | |
rm -rf Microsoft | |
rm -rf Boot | |
rm -rf ubuntu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment