Quote Originally Posted by susejunky View Post
I would like to share the line of action i use to investigate and (hopefully) repair broken UEFI boot scenarios (It may even serve to manually install GRUB2 for UEFI boot).
  1. Check the GRUB2 configuration file
    Code:
    # cat /etc/default/grub | grep "GRUB_USE_LINUXEFI"
    GRUB_USE_LINUXEFI="true"
    # cat /etc/default/grub | grep "GRUB_DISABLE_OS_PROBER"
    GRUB_DISABLE_OS_PROBER="false"
    If you do not see the results shown above use an editor (e.g. vi) to change the file "/etc/default/grub"
  2. Code:
    # cat /etc/fstab | grep boot
    UUID=1234-ABCD   /boot/efi  vfat umask=0002,utf8=true  0  0
    Make sure that "1234-ABCD" fits the UUID of the EFI system partition you want to use. If there is no entry with "/boot/efi" the EFI system partition will not be mounted at system startup so you need to add an entry for the EFI system partition to "/etc/fstab".




Regards

susejunky

Hi,

That was a great info i definitely had this bookmarked. My only suggestion i repeat just a suggestion is avoid doing

Code:
cat file | grep pattern
because grep does not need cat since it can parse files by itself.

Code:
grep --help | head -n 4
the output would be something like below.
Code:
Usage: grep [OPTION]... PATTERN [FILE]...
Search for PATTERN in each FILE or standard input.
PATTERN is, by default, a basic regular expression (BRE).
Example: grep -i 'hello world' menu.h main.c

ie.
Code:
grep boot /etc/fstab
Code:
grep -E '^(GRUB_USE_LINUXEFI|GRUB_DISABLE_OS_PROBER)' /etc/default/grub
or
Code:
grep -E '^(GRUB_)USE_LINUXEFI|DISABLE_OS_PROBER' /etc/default/grub