You are not logged in.

#1 2018-12-24 09:28:07

jacopastorius
Member
From: Italy
Registered: 2006-05-01
Posts: 134

[SOLVED]grub-mkconfig:lvm and udev problem and no windows grub entries

Hi all. I installed arch in a laptop with UEFI boot and gpt partition table. Windows 10 is already present. So i already have a efi partition and mounted it under /efi. I installed grub and efibootmgr, then issued

# grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB

but when went the moment of

# grub-mkconfig -o /boot/grub/grub.cfg

i had errors

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
  /run/lvm/lvmetad.socket: connect failed: No such file or directory
  WARNING: Failed to connect to lvmetad: No such file or directory. Falling back to internal scanning.
WARNING: device /dev/sda not initialized in udev database even after waiting 100000000 microseconds

the second warning is for all of my partitions.

Then i followed a workaround from this thread https://unix.stackexchange.com/question … n-lvm-disk that made the grub generating configuration file process end correctly.

Then rebooted but in grub menu i can't see the option for booting windows

Last edited by jacopastorius (2018-12-25 09:55:41)

Offline

#2 2018-12-25 09:53:42

jacopastorius
Member
From: Italy
Registered: 2006-05-01
Posts: 134

Re: [SOLVED]grub-mkconfig:lvm and udev problem and no windows grub entries

About lvm and udev problems, solved doing that said in link in first post:


I ran across the same issue just now, and found another workaround. Basically, it involves making the hosts /run directory available to the guest.

First, we mount /run where it can be accessed by the guest. I will assume that your install partition is mounted at /mnt

mkdir /mnt/hostrun
mount --bind /run /mnt/hostrun

Then, we chroot into the guest, and mount our host's /run/lvm in the guest's /run

arch-chroot /mnt /bin/bash
mkdir /run/lvm
mount --bind /hostrun/lvm /run/lvm

You can then run grub-mkconfig and grub-install without any LVM errors. This also makes the commands behave if you are installing with LVM, for what it's worth.

When done, remember to umount /run/lvm before exiting the chroot.

After making grub config file that not shows windows in grub entries:
Solved installing ntfs-3d package and disabling fast boot in power settings in windows 10 (don't know if both or just one of those settings was necessary)

Last edited by jacopastorius (2018-12-25 09:59:32)

Offline

Board footer

Powered by FluxBB