0

Hello all and sorry for the newbie question, but I'm going through this tutorial: How do I remove "Ubuntu" in the bios boot menu? (UEFI) and am unable to find the Ubuntu subdirectory to delete it. I've been through several of the articles on here: Using locate to find a directory , https://stackoverflow.com/questions/47887522/how-to-search-for-a-directory-from-the-terminal-in-ubuntu etc. with no success. Any advice would be much appreciated.

Jon
  • 3

1 Answers1

0

If you successfully mounted the partition with the following command (assuming your EFI partition is located in /dev/sda2. If not, you need to replace /dev/sda2 with the actual partition name to mount it to /mnt/efipart)

sudo mount /dev/sda2 /mnt/efipart

then, you can change directories to it and search:

cd /mnt/efipart
find . -name '*buntu'

If you use the wildcard *, then then it will match Ubuntu and ubuntu. If you do not have sufficient permissions to cd into /mnt/efipart, you can switch users with sudo su and you will now have root permission (sudo is no longer needed for each command). Be careful while you have root permission (and you will notice your prompt has changed to #). To return to your user permissions, simply enter exit