From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B5FFF158089 for ; Thu, 5 Oct 2023 03:28:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCF492BC0F5; Thu, 5 Oct 2023 03:28:41 +0000 (UTC) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 57FD82BC016 for ; Thu, 5 Oct 2023 03:28:41 +0000 (UTC) Received: by mail-qt1-x82f.google.com with SMTP id d75a77b69052e-4194d89a6dfso3060191cf.0 for ; Wed, 04 Oct 2023 20:28:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696476520; x=1697081320; darn=lists.gentoo.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=3Ak+CKkYvLaJHkHhIgRKn9sLE/7aOPDeEEdjJKzq2QA=; b=NAUV8GcibAKdp0IdFij6aAdePZAJ1/JJPdyQq/kUt/MtTFQPYReEzB8rdSYdFTIRT+ GUZx9FVqJrXnmaN6Ash8M404faVNi7SlwR+0icGLjNusM+cTrqBs8JWB1bDln7MpH4G+ VFfS/Cnhw8FWTJASEEeegWV93uo0ZeWJC5peGUs47kvmRrDXgyDqThAK4t+jPtda0daf xPZtGIyh0TJPo0LDBiobORRXyp/bTPHu9lDTgjJ/qfoWMWfFDSrHFVGga1lCAL0NsPXe 8t6msQzWnJSX2XDYg71G3hkO3YCjNoQkHqAIAbVHf2QjnrbGAQ+iujgaWLmQftyYt2zo imxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696476520; x=1697081320; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3Ak+CKkYvLaJHkHhIgRKn9sLE/7aOPDeEEdjJKzq2QA=; b=DHMgyAKmWY/eR2KV8UEXuTUJgAX5gj0r3XJqogtlQqT/CL6j1TnARvhkk3Tto0XFgT mRNkG1ocSSOiVytlEQRtaAXgp4LChXRgExLAaeCm3KWdlIbCwAJimGwO1eNB3Qk0mMHB CuKa0V69JPhIoAYJvPB/5Zc1nhwh2NpG28tu6gIlXmofAGv3awNEMH3C2Q+OODZ5QjVU BGwhoNlryv/o/IeVx19vL3qQxxyzugVxuaANMY43tPO4YPh8F7qD/kAyrqFSr55Mk6kE QNEu7yT3cjC3ndoQUlRyatI4Jcp5c4xDRvnnX9rVWpXN8QulEwCGkvfpkI4/CqdJdu+6 YIDw== X-Gm-Message-State: AOJu0YxB6XBv9LgJgKUYR/BLY0zFu/cWN18tXH8FpkgHByzjtgY/uvlE 5I+vv5AnmxobTqDmql55FBB8vmiKlLI= X-Google-Smtp-Source: AGHT+IGh4AQUEj9wn2+mMVhijdjCHBAfbIEGyy67Um9gZElxW4DQp74i9o9po04JADIMguKmF2EA0Q== X-Received: by 2002:a05:622a:e:b0:410:87a:be98 with SMTP id x14-20020a05622a000e00b00410087abe98mr4935457qtw.20.1696476520401; Wed, 04 Oct 2023 20:28:40 -0700 (PDT) Received: from ?IPV6:2601:84:c702:c880:4f8d:3e9c:7d:418e? ([2601:84:c702:c880:4f8d:3e9c:7d:418e]) by smtp.gmail.com with ESMTPSA id e9-20020ac84b49000000b004199c98f87dsm206352qts.74.2023.10.04.20.28.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 20:28:39 -0700 (PDT) Message-ID: <968c0ddf-3347-463b-89de-e4e9a2b91628@gmail.com> Date: Wed, 4 Oct 2023 23:28:38 -0400 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: gentoo-user@lists.gentoo.org From: dhk Subject: [gentoo-user] grub-install error Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: 29bdd38e-90bd-434b-85e0-e1d809b8ef2c X-Archives-Hash: 31ae4c2c6e40f3962834b67b4a1dd3f0 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