Skip to content

Instantly share code, notes, and snippets.

@moosetraveller
Created February 7, 2026 00:02
Show Gist options
  • Select an option

  • Save moosetraveller/b62175d042a4ee2c7aed5c48bb017567 to your computer and use it in GitHub Desktop.

Select an option

Save moosetraveller/b62175d042a4ee2c7aed5c48bb017567 to your computer and use it in GitHub Desktop.
Remove unwanted OS from rEFind boot loader

Assuming the boot loader partition is disk0s1 and we want to remove our Ubuntu (ubuntu, careful: the name may vary for your system!). The partition can be found with diskutil list.

sudo mkdir /Volumes/ESP
sudo mount -t msdos /dev/disk0s1 /Volumes/ESP
ls /Volumes/ESP/EFI
sudo cp -r /Volumes/ESP/EFI ~/EFI_backup
sudo rm -r /Volumes/ESP/EFI/ubuntu
sudo umount /Volumes/ESP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment