[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lmvid not found
From: |
Andrei Borzenkov |
Subject: |
Re: lmvid not found |
Date: |
Tue, 26 Mar 2024 20:45:33 +0300 |
User-agent: |
Mozilla Thunderbird |
On 26.03.2024 19:05, Eduardo Suarez wrote:
Hi,
I recently moved my disks to a new computer and I'd like to avoid legacy CSM
and boot from UEFI. So far I can boot fine with CSM enabled.
My setup is:
sda -> GPT
├─sda1 95,4M part /boot/efi
├─sda2 4M part BIOS boot partition
├─sda3 166,7G part
│ ├─vgssd-slash 35G lvm /
│ ├─vgssd-var 116,7G lvm /var
│ └─vgssd-usrlocal 15G lvm /usr/local
├─sda4 2G part [SWAP]
└─sda5 54,8G part (not important)
sdb... (data, not important)
I install grub like this
# grub-install --verbose --target=x86_64-efi
with GRUB_PRELOAD_MODULES="lvm ext2 part_gpt", and it creates and 'efi' file in
a subdirectory in /boot/efi/EFI/ as expected.
GRUB_PRELOAD_MODULES is used by grub-mkconfig, not by grub-install.
Then I reboot, get into the BIOS setup, select the option to boot, disable CSM
and try to boot from the grub efi image.
However, what I get is:
error: disk `lvmid/yc9Fs5-...(long string)...-rF8WbQ' not found.
Entering rescue mode...
grub rescue>
The lvmid tag refers to the root partition (vgssd-slash). From there I have a
reduced shell where I only see (hd0) and (hd1) with no partitions.
The obvious first possible reason - generated grub image does not embed
part_gpt (or whatever partition scheme is used), so grub does not detect
partitions. Which is rather strange, because grub-install should
auto-detect it.
I have tried different options like trying to set up a device.map file or
adding the 'lvm' module like this:
grub-install --verbose --target=x86_64-efi --modules="part_gpt part_msdos lvm"
and the error turns into:
Unknown command 'search.fs_uuid'.
error: unknown filesystem.
Entering rescue mode...
grub rescue>
However, I can't see any 'search.fs_uuid' in the grub.cfg file. Adding the
How is the content of grub.cfg relevant at this point?
'search_fs_uuid' module does not solve it.
You do not show the error in this case so it is entirely unclear and
useless. But to search for UUID grub image must include the correct
filesystem driver (you did not show filesystem type).
Any ideas on how to fix this?
No. But showing the full output of your command(s) may give some hint.
Start with the very first one
grub-install --verbose --target=x86_64-efi
- lmvid not found, Eduardo Suarez, 2024/03/26
- Re: lmvid not found,
Andrei Borzenkov <=
- Re: lmvid not found, Eduardo Suarez, 2024/03/27
- Re: lmvid not found, Andrei Borzenkov, 2024/03/27
- Re: lmvid not found, Eduardo Suarez, 2024/03/27
- Re: lmvid not found, Andrei Borzenkov, 2024/03/27
- Re: lmvid not found, Eduardo Suarez, 2024/03/27
- Message not available
- Fwd: lmvid not found, Randy Goldenberg, 2024/03/27
- Re: Fwd: lmvid not found, Eduardo Suarez, 2024/03/27
- Re: Fwd: lmvid not found, Randy Goldenberg, 2024/03/27
Re: lmvid not found, Randy Goldenberg, 2024/03/26