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

Carl Karsten carl at personnelware.com
Mon Apr 10 06:46:23 UTC 2017


> Could someone seeing this issue please run the installer but just
before that, modify grub-installer to add "set -x"


~ # grub-installer 

+ [  ]
+ ROOT=
+ chroot=
+ . /usr/share/grub-installer/functions.sh
+ . /usr/share/grub-installer/otheros.sh
+ newline=

+ db_capb backup
+ _db_cmd CAPB backup
+ IFS=  printf %s\n CAPB backup
+ IFS=
 read -r _db_internal_line
+ RET=multiselect backup progresscancel align escape plugin-terminal
+ return 0
+ archdetect
+ ARCH=amd64/generic
+ info architecture: amd64/generic
+ log info: architecture: amd64/generic
+ logger -t grub-installer info: architecture: amd64/generic
+ ls /proc
+ initial_proc_contents=1
10
100
10066
10067
10129
10130
11
12
123
12438
12439
12444
125
13
15
16
17
18
183
184
185
193
194
195
196
2
20
20501
206
207
208
209
21
210
217
22
23
25
26
27
28
29
29966
29968
3
30
30523
30600
30919
30920
30974
30975
30976
30979
31
32
33
34
35
36
360
362
37
38
39
40
46
47
48
49
5
50
60
631
636
677
679
7
7165
7182
7183
7184
7185
7186
7187
7196
7197
7198
7219
7263
75
76
77
79
8
81
84
85
86
87
88
89
9
90
91
92
93
94
95
96
99
acpi
buddyinfo
bus
cgroups
cmdline
consoles
cpuinfo
crypto
devices
diskstats
dma
driver
execdomains
fb
filesystems
fs
interrupts
iomem
ioports
irq
kallsyms
kcore
key-users
keys
kmsg
kpagecount
kpageflags
loadavg
locks
mdstat
meminfo
misc
modules
mounts
mtrr
net
pagetypeinfo
partitions
sched_debug
self
slabinfo
softirqs
stat
swaps
sys
sysrq-trigger
sysvipc
timer_list
timer_stats
tty
uptime
version
vmallocinfo
vmstat
zoneinfo
+ [ -z 1
10
100
10066
10067
10129
10130
11
12
123
12438
12439
12444
125
13
15
16
17
18
183
184
185
193
194
195
196
2
20
20501
206
207
208
209
21
210
217
22
23
25
26
27
28
29
29966
29968
3
30
30523
30600
30919
30920
30974
30975
30976
30979
31
32
33
34
35
36
360
362
37
38
39
40
46
47
48
49
5
50
60
631
636
677
679
7
7165
7182
7183
7184
7185
7186
7187
7196
7197
7198
7219
7263
75
76
77
79
8
81
84
85
86
87
88
89
9
90
91
92
93
94
95
96
99
acpi
buddyinfo
bus
cgroups
cmdline
consoles
cpuinfo
crypto
devices
diskstats
dma
driver
execdomains
fb
filesystems
fs
interrupts
iomem
ioports
irq
kallsyms
kcore
key-users
keys
kmsg
kpagecount
kpageflags
loadavg
locks
mdstat
meminfo
misc
modules
mounts
mtrr
net
pagetypeinfo
partitions
sched_debug
self
slabinfo
softirqs
stat
swaps
sys
sysrq-trigger
sysvipc
timer_list
timer_stats
tty
uptime
version
vmallocinfo
vmstat
zoneinfo ]
+ get_serial_console
+ sed -e s/.*\(console=[^ ]*\).*/\1/ /proc/cmdline
+ local defconsole=BOOT_IMAGE=linux --- debconf/priority=high DEBCONF_DEBUG=5 auto=true url=192.168.1.194:80 hw-detect/load_firmware=false hostname=gator netcfg/get_domain=lan partman-auto/disk="/dev/nvme0n1" initrd=initrd.gz
+ echo BOOT_IMAGE=linux --- debconf/priority=high DEBCONF_DEBUG=5 auto=true url=192.168.1.194:80 hw-detect/load_firmware=false hostname=gator netcfg/get_domain=lan partman-auto/disk="/dev/nvme0n1" initrd=initrd.gz
+ grep -qe console=\(ttyS\|com\)
+ serial=
+ cached_available_ids=
+ findfs /
+ grub_probe -t device /
+ [  != true ]
+ apt-install grub-common
+ is_grub_common_installed=true
+ grub-probe -t device /
grub-probe: error: failed to get canonical path of `rootfs'.
+ mount
+ grep on  
+ tail -n1
+ cut -d  -f1
+ rootfs=
+ findfs /boot
+ grub_probe -t device /boot
+ [  != true ]
+ apt-install grub-common
+ is_grub_common_installed=true
+ grub-probe -t device /boot
grub-probe: error: failed to get canonical path of `/boot'.
+ mount
+ grep on /boot 
+ tail -n1
+ cut -d  -f1
+ bootfs=
+ [ -n  ]
+ bootfs=
+ findfstype /boot
+ udpkg --print-os
+ mount
+ grep on /boot 
+ tail+ cut -d  -f5
 -n1
+ bootfstype=
+ findfstype /
+ udpkg --print-os
+ mount
+ grep on  
+ + cut -d  -f5
tail -n1
+ rootfstype=
+ [ -n  ]
+ bootfstype=
+ mapdevfs
Wrong number of args: mapdevfs <path>
+ rootfs_nodevfs=

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