Skip to content

Instantly share code, notes, and snippets.

@marcelblijleven
Last active November 13, 2019 08:50
Show Gist options
  • Save marcelblijleven/d1dfacac74b342a8082814e537db6d51 to your computer and use it in GitHub Desktop.
Save marcelblijleven/d1dfacac74b342a8082814e537db6d51 to your computer and use it in GitHub Desktop.
Delete boot entries from EFI
# 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