You are not logged in.

#1 2019-03-27 20:08:22

B612
Member
Registered: 2019-03-27
Posts: 10

[SOLVED] UEFI + LVM (grub)

Hello,

I first did a UEFI installation and it worked
Under https://wiki.archlinux.org/index.php/LVM , it is written
"Warning: /boot cannot reside in LVM when using a boot loader which does not support LVM; you must create a separate /boot partition and format it directly. Only GRUB is known to support LVM."

So because i use GRUB i did the same as the first install, but with LVM.
And the system does not boot

root@archiso ~ # lsblk
NAME                MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0                 7:0    0 489.5M  1 loop /run/archiso/sfs/airootfs
sda                   8:0    0 465.8G  0 disk
└─sda1                8:1    0 465.8G  0 part
  ├─vg_sda1-lv_root 254:0    0    30G  0 lvm 
  ├─vg_sda1-lv_boot  254:1    0   552M  0 lvm 
  ├─vg_sda1-lv_swap 254:2    0     4G  0 lvm 
  └─vg_sda1-lv_home 254:3    0 431.2G  0 lvm

So do i have to create a separate partition for boot or not ?

Thanks a lot

Last edited by B612 (2019-03-28 12:11:55)

Offline

#2 2019-03-28 01:02:41

Maniaxx
Member
Registered: 2014-05-14
Posts: 732

Re: [SOLVED] UEFI + LVM (grub)

B612 wrote:

So do i have to create a separate partition for boot or not ?

No, not needed.
Try 'vgchange -ay' in grub shell and 'exit'. If it activates the LV properly you have to delay the boot process on kernel cmdline (rootdelay=2).

Check that 'grub-mkconfig' properly injected the lvm module (by the lvm2 hook you should have activated in /etc/mkinitcpio.conf).
https://wiki.archlinux.org/index.php/GRUB#LVM

Last edited by Maniaxx (2019-03-28 01:08:40)


sys2064

Offline

#3 2019-03-28 12:08:35

B612
Member
Registered: 2019-03-27
Posts: 10

Re: [SOLVED] UEFI + LVM (grub)

Hi...

It's an installation problem but i m a newbie... so where do i need to post this question... because it seems to be quite complicated for me.

If the system does not boot, where do I have to try 'vgchange -ay'
Also... how to access the "grub shell" or the 'kernel cmdline'

And how to check that "that 'grub-mkconfig' properly injected the lvm module"

OK... : )

I'll install without LVM

Thanks

Offline

#4 2019-03-28 20:26:38

Maniaxx
Member
Registered: 2014-05-14
Posts: 732

Re: [SOLVED] UEFI + LVM (grub)

During installation, before installing the bootloader with 'grub-mkconfig', you have to install 'lvm2' and edit '/etc/mkinitcpio.conf' to enable it.
https://wiki.archlinux.org/index.php/LV … mkinitcpio


sys2064

Offline

Board footer

Powered by FluxBB