You are not logged in.

#1 2017-03-29 15:58:49

applesea
Member
Registered: 2017-03-29
Posts: 12

[solved] Grub Installation Failed: Failed to connect to lvmetad

I have been trying to install grub with UEFI GPT partitioning with a dualboot, but it fails after I update grub. Here is a link to the error.

https://drive.google.com/open?id=1jjnGN … 17HYyE5zDA

Last edited by applesea (2017-04-05 21:41:31)

Offline

#2 2017-03-29 21:43:05

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: [solved] Grub Installation Failed: Failed to connect to lvmetad

https://wiki.archlinux.org/index.php/In … le_systems

says to mount the root filesystem, then mount boot - you're posted image shows you've tried to do this the other way round.

BTW - you should post the actual text and not an image...

Offline

#3 2017-04-05 03:03:27

applesea
Member
Registered: 2017-03-29
Posts: 12

Re: [solved] Grub Installation Failed: Failed to connect to lvmetad

OK I mounted my root partition first followed by the boot and the same error occurs.I tried formatting my drive completely and the same issue persists. Why would grub say it can't find find an ext4 file system on a windows recovery partition and the other windows partitions? I just installed fedora and everything went flawlessly so what do you think is the issue?

Offline

#4 2017-04-05 03:13:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] Grub Installation Failed: Failed to connect to lvmetad

Please paste the exact commands you used. Telling us you did something is not that useful.


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2017-04-05 04:05:47

applesea
Member
Registered: 2017-03-29
Posts: 12

Re: [solved] Grub Installation Failed: Failed to connect to lvmetad

1. First I mounted my root partition (sdb5) to /mnt/

2. Then I created and mounted a home partition to /mnt/home
mount /dev/sdb6 /mnt/home

3. Thne I mounted my efi partition to /boot
mkdir /mnt/boot && mount /dev/sdb2 /mnt/boot

3. Then I installed the base system
pacstrap /mnt base base-devel

4. Then generated fstab
genfstab -U /mnt > /mnt/etc/fstab

5. Then chrooted
arch-chroot /mnt

6. Then install grub
grub-install-efi --target=x86_64-efi --efi-directory=/boot --bootloader=grub

7. Then generated grub
grub-mkconfig /boot/grub/grub.cfg



I followed all the steps on the wiki and it spit out the same error as above in the post. The sda drive is a secondary drive formatted to ntfs for other files.

Offline

#6 2017-04-05 10:30:34

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: [solved] Grub Installation Failed: Failed to connect to lvmetad

Exactly when did you bump into errors? When grub-install or when grub-mkconfig? (or both?)

Paste exact and all warnings/errors as well. Since you are doing it in chroot, some warnings can be harmless.

Mount everything in proper order and arch-chroot again, then run

grub-install --efi-directory /boot |& curl -F c=@- https://ptpb.pw/

and/or

grub-mkconfig -o /boot/grub/grub.cfg |& curl -F c=@- https://ptpb.pw/

Get back to us with the ptpb link(s) you get.

Offline

#7 2017-04-05 21:28:51

applesea
Member
Registered: 2017-03-29
Posts: 12

Re: [solved] Grub Installation Failed: Failed to connect to lvmetad

Not sure exactly what happened, but I did a reinstall and everything worked perfectly. If I have to reinstall and I get the same error, I'll ask again

Offline

#8 2017-04-05 21:34:30

olegabrielz
Member
From: Norway
Registered: 2015-12-23
Posts: 255

Re: [solved] Grub Installation Failed: Failed to connect to lvmetad

Then please edit your first post and append [SOLVED] to the beginning of the title.


Be aware of my Newbie Powers

Offline

Board footer

Powered by FluxBB