Mar 11, 2021

Lenovo Thinkstation C30 Linux EFI

The key to setting up the TS C30 for Linux is in changing the default efi entry to have the name "Windows Boot Manager".

This is done through the Linux program efibootmgr.

 

EFI File Location

Disk: e.g. /dev/sda1 

Directory: e.g. /EFI/OS directory/grubx64.efi



efibootmgr full command example

This adds the new boot entry, and names it "Windows Boot Manager"
 

sudo efibootmgr -c -d /dev/sda -p 1 -l '\EFI\opensuse\grubx64.efi' -L "Windows Boot Manager" 

    -c = create a new entry with your computer's UEFI listings
    -d = specify the disk
    -p = specify the disk partition number
    -l = the directory location (starting from the root of the specified partition)
    -L = chosen label: (in this case, it must be "Windows Boot Manager")


To list the new boot order with the new entry

sudo efibootmgr



To delete any obsolete entries

sudo efibootmgr -B -b XXXX

Note: XXXX represents what is usually something like 000A or 0002




To make sure the new "Windows Boot Manager" entry boots first

sudo efibootmgr -o NNNN, XXXX, ZZZZ, YYYY 

No comments:

Post a Comment