[Bug 1507505] Re: Unable to install GRUB in /dev/nvme

axel 1507505 at bugs.launchpad.net
Thu Oct 25 14:52:17 UTC 2018


Experiencing a similar problem here using 18.10 64b on a laptop featuring 2 nvme-drives.
Installation was started through legacy bios (UEFI off) and proceeded simlilar to #23:
1) Select manual partition setup
2) install to blank /dev/nvme0n1 is blank
3) create a partition at front of drive, 500MB , mapped to /boot
4) create "physical encrypted partition" following the boot partition of 80 GB
5) assign new encrypted partition with the / mount point
6) select /dev/nvme1n1 (yes, this is THE OTHER DRIVE, because win10 resides on this one and this is the drive set as primary boot-device in th BIOS setting) as the partition to install the boot loader.

Grub-installation then fails and a dialogue asking how to proceed is shown with the options:
A) choose a different device to install the bootloader on (with a drop-down list showing all disks and partitions present on the system but neiter re-tying to install on nvme0n1 nor nvme1n1 succeeds)
B) continue without a bootloader
C) cancel the installation

I suspect my issues are related to not using UEFI in conjunction with
installing on a nvme-drive rather than cross-installing the bootloader
to a differing nvme-drive from where the ubuntu-system resides on. I'll
try to install via UEFI next and check out #14...

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1507505

Title:
  Unable to install GRUB in /dev/nvme

Status in grub-installer:
  New
Status in Linux:
  Unknown
Status in grub-installer package in Ubuntu:
  Confirmed

Bug description:
  On T460s, I tried to install the wily daily build,  it could detect
  the nvme partition, at the end of installation, it prompt ' Unable to
  install GRUB in /dev/nvme'

  Oct 19 16:47:01 ubuntu grub-installer: info: Installing grub on '/dev/nvme'
  Oct 19 16:47:01 ubuntu grub-installer: info: grub-install does not support --no-floppy
  Oct 19 16:47:01 ubuntu grub-installer: info: Running chroot /target grub-install  --force "/dev/nvme"
  Oct 19 16:47:01 ubuntu grub-installer: Installing for i386-pc platform.
  Oct 19 16:47:02 ubuntu grub-installer: grub-install: error: cannot find a GRUB drive for /dev/nvme.  Check your device.map.
  Oct 19 16:47:02 ubuntu grub-installer: error: Running 'grub-install  --force "/dev/nvme"' failed.
  Oct 19 16:48:30 ubuntu systemd[1]: Started Session c2 of user ubuntu.

  Why it install to /dev/nvme, while not the /dev/nvme0n1?

  $ sudo grub-install --boot-directory /target/boot/grub /dev/nvme
  Installing for i386-pc platform
  grub-install: error: cannot find a GRUB drive for /dev/nvme.  Check your device.map.

  $ sudo grub-install --boot-directory /target/boot/grub /dev/nvme0
  Installing for i386-pc platform
  grub-install: error: attempt to read or write outside of disk `hostdisk/dev/nvme0'.

  $ sudo grub-install --boot-directory /target/boot/grub /dev/nvme0n1
  Installing for i386-pc platform
  Inatalltion finished. No error reported.

  But even it's no error reported, I still cant' find any grub after
  reboot.

To manage notifications about this bug go to:
https://bugs.launchpad.net/grub-installer/+bug/1507505/+subscriptions



More information about the foundations-bugs mailing list