Skip to content

Instantly share code, notes, and snippets.

@oscarkraemer
Created November 19, 2017 20:15
Show Gist options
  • Select an option

  • Save oscarkraemer/c8747fbc85e7f908dcc00b4357fb04b2 to your computer and use it in GitHub Desktop.

Select an option

Save oscarkraemer/c8747fbc85e7f908dcc00b4357fb04b2 to your computer and use it in GitHub Desktop.
Linux UEFI boot on Lenovo m91p
# http://www.rodsbooks.com/linux-uefi/
# 1. Install Linux normally
# 2. Boot from Linux live usb drive
# 3. Most likely /dev/sda1 but it can be something else:
mount /dev/sda1 /mnt
mkdir -p /mnt/EFI/Microsoft/Boot
# 5. Depending on if it is ubuntu, centos or any other distro:
cp /mnt/EFI/centos/grubx64.efi /mnt/EFI/Microsoft/Boot/bootmgfw.efi
# I don't remember but I think it was like this.
7 efibootmgr --create --label "Windows Boot Manager" --loader "\EFI\Microsoft\Boot\bootmgfw.efi"
@Vahtera
Copy link

Vahtera commented Apr 10, 2025

This is not working for me. I have an old ThinkCentre M91p that I'm trying to use as a ubuntu server (no dual boot). The original gist commands run without any errors, but result in the same 1962: No OS present -error like everything else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment