public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] grub-install error
@ 2023-10-05  3:28 dhk
  0 siblings, 0 replies; only message in thread
From: dhk @ 2023-10-05  3:28 UTC (permalink / raw
  To: gentoo-user


After setting up a new laptop the grub-install command produces an 
error:  "grub-install: error: disk `lvm/nvme0n1p1' not found."

A few comments about the system . . it is a basic setup except that it 
uses luks2 on each partition; lvm is not used, but the decrypted 
partitions are in /dev/mapper and may be the reason lvm is in the error 
message.  The device.map file does not exist on my other working 
machines so it is not clear if that is even necessary.  Also the 
/dev/mapper/nvme0n1p1 partition is certainly there, it is vfat and 
mounted on /efi. The intent is to use a custom initramfs to do the 
decryption.

The laptop will be rebuilt a couple times to work out some ideas, but 
before starting over it would be helpful to understand this error (it is 
not one of the two errors mentioned in the Debugging GRUB section of the 
Handbook).  Responses to questions will be slow since all my traffic 
goes through the weekly digest.

Thanks in advance.

Below is the output of some commands.

* The grub-install command run twice first without and second with 
--verbose.
(chroot) livecd / # grub-install --target=x86_64-efi --efi-directory=/efi
Installing for x86_64-efi platform.
grub-install: error: disk `lvm/nvme0n1p1' not found.

(chroot) livecd / # grub-install --target=x86_64-efi 
--efi-directory=/efi --verbose
Installing for x86_64-efi platform.
grub-install: info: cannot open `/boot/grub/device.map': No such file or 
directory.
grub-install: info: changing current directory to /dev/mapper.
grub-install: info: /dev/mapper/nvme0n1p1 is not present.
grub-install: info: /dev/mapper/nvme0n1p1 is not present.
grub-install: info: /dev/mapper/nvme0n1p1 is not present.
grub-install: info: Scanning for DISKFILTER devices on disk host.
grub-install: info: Scanning for mdraid1x devices on disk host.
grub-install: info: Scanning for mdraid09_be devices on disk host.
grub-install: info: Scanning for mdraid09 devices on disk host.
grub-install: info: Scanning for dmraid_nv devices on disk host.
grub-install: info: Scanning for ldm devices on disk host.
grub-install: info: scanning host for LDM.
grub-install: info: no LDM signature found.
grub-install: info: Scanning for lvm devices on disk host.
grub-install: info: Scanning for DISKFILTER devices on disk proc.
grub-install: info: Scanning for mdraid1x devices on disk proc.
grub-install: info: Scanning for mdraid09_be devices on disk proc.
grub-install: info: Scanning for mdraid09 devices on disk proc.
grub-install: info: Scanning for dmraid_nv devices on disk proc.
grub-install: info: Scanning for ldm devices on disk proc.
grub-install: info: scanning proc for LDM.
grub-install: info: no LDM signature found.
grub-install: info: Scanning for lvm devices on disk proc.
grub-install: info: drive = -1.
grub-install: error: disk `lvm/nvme0n1p1' not found.

* The /efi partition is vfat.
(chroot) livecd / # fdisk -l /dev/mapper/nvme0n1p1
Disk /dev/mapper/nvme0n1p1: 34 MiB, 35651584 bytes, 69632 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

* The lsblk command on the drive.
(chroot) livecd /usr/src/linux # lsblk /dev/nvme0n1
NAME          MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
nvme0n1       259:0    0 238.5G  0 disk
├─nvme0n1p1   259:1    0    50M  0 part
│ └─nvme0n1p1 253:0    0    34M  0 crypt /efi
├─nvme0n1p2   259:2    0     2G  0 part
│ └─nvme0n1p2 253:1    0   1.9G  0 crypt /boot
├─nvme0n1p3   259:3    0    16G  0 part
│ └─nvme0n1p3 253:2    0    16G  0 crypt [SWAP]
├─nvme0n1p4   259:4    0    10G  0 part
│ └─nvme0n1p4 253:3    0    10G  0 crypt /
├─nvme0n1p5   259:5    0     2G  0 part
│ └─nvme0n1p5 253:4    0     2G  0 crypt /tmp
├─nvme0n1p6   259:6    0    60G  0 part
│ └─nvme0n1p6 253:5    0    60G  0 crypt /usr
├─nvme0n1p7   259:7    0    25G  0 part
│ └─nvme0n1p7 253:6    0    25G  0 crypt /var
├─nvme0n1p8   259:8    0    20G  0 part
│ └─nvme0n1p8 253:7    0    20G  0 crypt /opt
└─nvme0n1p9   259:9    0 103.5G  0 part
   └─nvme0n1p9 253:8    0 103.5G  0 crypt /home

* The emerge --info
(chroot) livecd / # emerge --info
!!! CONFIG_PROTECT is empty
Portage 3.0.51 (python 3.11.5-final-0, 
default/linux/amd64/17.1/no-multilib, gcc-13, glibc-2.37-r7, 
6.1.28-gentoo-x86_64 x86_64)
=================================================================
System uname: 
Linux-6.1.28-gentoo-x86_64-x86_64-11th_Gen_Intel-R-_Core-TM-_i5-1145G7_@_2.60GHz-with-glibc2.37
KiB Mem:    16154684 total,  15575452 free
KiB Swap:   16760828 total,  16760828 free
Timestamp of repository gentoo: Wed, 04 Oct 2023 03:00:01 +0000
Head commit of repository gentoo: 5194d8a0709d5d13abf436928bd7d6299e404a43
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.5::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
     location: /var/db/repos/gentoo
     sync-type: rsync
     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
     priority: -1000
     volatile: False
     sync-rsync-verify-metamanifest: yes
     sync-rsync-verify-jobs: 1
     sync-rsync-extra-opts:
     sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* @FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf 
/etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--ask=y --alert=y --with-bdeps=y --quiet=n --jobs=4"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 
GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX 
PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME 
XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -march=native -mtune=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 
binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks 
ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict 
network-sandbox news parallel-fetch pid-sandbox preserve-libs 
protect-owned qa-unresolved-soname-deps sandbox sfperms strict 
unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv 
usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirrors.mit.edu/gentoo-distfiles/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times 
--omit-dir-times --compress --force --whole-file --delete --stats 
--human-readable --timeout=180 --exclude=/distfiles --exclude=/local 
--exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="acl alsa amd64 bluetooth bzip2 cli crypt dri elogind ffmpeg fortran 
gdbm iconv ipv6 libtirpc ncurses nls nptl openmp pam pcre readline 
seccomp split-usr ssl test-rust unicode xattr zlib" ABI_X86="64" 
ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core 
socache_shmcb unixd actions alias auth_basic authn_alias authn_anon 
authn_dbm authn_default authn_file authz_dbm authz_default 
authz_groupfile authz_host authz_owner authz_user autoindex cache cgi 
cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter 
file_cache filter headers include info log_config logio mem_cache mime 
mime_magic negotiation rewrite setenvif speling status unique_id userdir 
usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" 
COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 
CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" 
GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt 
gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver 
oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip 
tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="synaptics 
evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 
lb216 lcdm001 mtxorb ncurses text" 
LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 
LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" 
OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" 
POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" 
PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" 
XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p 
iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark 
ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, 
CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, 
FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, 
MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, 
PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, 
PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, 
STRIP, YACC, YFLAGS





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-05  3:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-05  3:28 [gentoo-user] grub-install error dhk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox