Comment 25 for bug 1507505

Revision history for this message
George White (co2isnotevil) wrote :

I have the same problem with the latest version installed on an nvme drive (4.15.0-29). It seems that when there's a single nvme drive and no other disks it may work, but when other drives are present, grub-install doesn't seem to install the bootloader on the nvme device. The workaround I found was to put the EFI partition on an attached s/ata disk (/dev/sda1) and put root and everything that needed to be fast in an LVM on the nvme drive. I did need to boot to the installer, mount the nvme root on /mnt and the other efi directory on /mnt/boot/efi, create the required devices in /mnt, chroot to /mnt and then run install-grub /dev/sda followed by grub-update, after which, the newly installed system came up as it should by booting to the EFI device, /dev/sda1 which booted to the root on the nvme device.

Afterwards, I dd'd the first 2K sectors of /dev/sda and /dev/nvme0n1 and while the partition table was present on the nvme drive, where the boot loader should have been contained zeros. Oddly enough, using the -d option on install-grub seemed to indicate that something was written somewhere.