Welcome!
Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

grub-efi not compatible?

User avatar
fehlix
Forum Veteran
Forum Veteran
Posts: 3980
Joined: Wed Apr 11, 2018 5:09 pm

Re: grub-efi not compatible?

#11

Post by fehlix » Sun Dec 30, 2018 5:31 pm

pinako wrote:
Sun Dec 30, 2018 5:26 pm
Should I have installed only grub-efi-amd64-bin instead? It seems that grub-pc would coexist peacefully with grub-efi-amd64-bin, and grub-efi and grub-efi-amd64 could be removed without breaking the boot.
I suggest this: get a fresh MX18 iso, (which you surely have already) and create a new LiveUSB with that,
and than we go from there to install, otherwise we mght try to solve any side-effects.
I'll in the meantime do the same on my "nvme"-equipped laptop and see what we can compare.
:puppy:
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
dolphin_oracle
Forum Veteran
Forum Veteran
Posts: 11496
Joined: Sun Dec 16, 2007 1:17 pm

Re: grub-efi not compatible?

#12

Post by dolphin_oracle » Sun Dec 30, 2018 5:35 pm

One other item.

In my tests, while its a little weird, if you select "mbr" in the installer grub install portion, the drive selection will become active. If your device appears there, then you can select the ESP again if one is present.

I don't have an nvme device, so I just tried all this with a sda and a sdb.


also, with mx-boot-repair, the /boot location is NOT the ESP, but rather where ever the /boot directory is located, by default in the root partition but it doesn't have to be there.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad T530 - MX-18
lenovo s21e - MX-18, antiX-17.3.1 (live-USB)
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Paul..
Forum Guide
Forum Guide
Posts: 2615
Joined: Sun Mar 18, 2007 6:34 pm

Re: grub-efi not compatible?

#13

Post by Paul.. » Sun Dec 30, 2018 5:41 pm

dolphin_oracle wrote:
Sun Dec 30, 2018 5:35 pm
In my tests, while its a little weird, if you select "mbr" in the installer grub install portion, the drive selection will become active. If your device appears there, then you can select the ESP again if one is present.

I don't have an nvme device, so I just tried all this with a sda and a sdb.
I can confirm that this is true on my system with /dev/sda1 (an SSD) and /dev/nvme01np1 (where the ESP is located)...the installer pull-down menu identifies /dev/sda1 first and then when I switch to /dev/nvme01np1, the radio button auto-selects install GRUB to ESP.

Asus Prime X470-Pro | AMD Ryzen 5 1400 (8 threads)
16 Gig DDR4 3000 | nVidia - GeForce GTX 750 Ti
Samsung 970 NVMe SSD | 860 500GB SSD

User avatar
pinako
Forum Novice
Forum  Novice
Posts: 4
Joined: Sun Dec 30, 2018 1:39 pm

Re: grub-efi not compatible?

#14

Post by pinako » Sun Dec 30, 2018 5:54 pm

dolphin_oracle wrote:
Sun Dec 30, 2018 5:29 pm
grub-efi-amd64-bin and grub-efi-ia32-bin are preinstalled
Yes, I now realize that I didn't need to manipulate any packages at all! All I needed to do was mount the ESP in the chroot (as well as /sys to access /sys/firmware/efi) and run

Code: Select all

grub-install /dev/nvme0n1
pinako wrote:
Sun Dec 30, 2018 5:26 pm
I think I'll try it with the mx-bootrepair tool first.
Alas, that one failed. I changed the partition type of /dev/sda1 to 0700, i.e., something that's not EF00, and mx-bootrepair now couldn't find any ESP...
screenie-esp-hack.png
Reversing the change allows mx-bootrepair to see the ESP on /dev/sda1 again. I guess it's not searching the NVMe devices?
pinako wrote:
Sun Dec 30, 2018 5:26 pm
It seems that grub-pc would coexist peacefully with grub-efi-amd64-bin, and grub-efi and grub-efi-amd64 could be removed without breaking the boot.
I just installed mx-apps with mx-bootrepair, which pulled in grub-pc and evicted grub-efi. I then removed /boot/efi/EFI/mx/grubx64.efi and reinstalled GRUB...

Code: Select all

# rm /boot/efi/EFI/mx/grubx64.efi
# grub-install /dev/nvme0n1
Installing for x86_64-efi platform.
Installation finished. No error reported.
# ls /boot/efi/EFI/mx/
grubx64.efi
... still boots :D
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Installation”