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

Joey 1507505 at bugs.launchpad.net
Mon Jul 17 04:26:50 UTC 2017


Similar to the other bug reports, I receive the following error when
following the installation wizard on Ubuntu 16.04: "Unable to install
GRUB in /dev/nvme"

I was able to get an encrypted install of Ubuntu with v16.04 with the
bootloader on /dev/nvme0n1 working with UEFI boot, with some small
tweaks following comments #14 (https://bugs.launchpad.net/ubuntu/+source
/grub-installer/+bug/1507505/comments/14) and #19
(https://bugs.launchpad.net/ubuntu/+source/grub-
installer/+bug/1507505/comments/19),


The steps I followed in the installer were:

1) Select manual partition setup
2) make sure drive /dev/nvme0n1 is blank
3) create a partition at front of drive, 1000MB (whatever size you need), mapped to /boot
4) create "physical encrypted partition" following the boot partition with the remaining space
5) assign new encrypted partition with the / mount point
6) select /dev/nvme0n1 as the partition to install the boot loader

-- 
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