GRUB doesn't find /boot in LVMafter adding one more physical volume and enlarging logical volume, grub...

Clear text passwords in Unix

I transpose the source code, you transpose the input!

Is there a concept of "peer review" in Rabbinical Judaism?

What are examples of EU policies that are beneficial for one EU country, disadvantagious for another?

Is a Middle Name a Given Name?

Why does (inf + 0j)*1 evaluate to inf + nanj?

Does the app TikTok violate trademark?

Why is 6. Nge2 better, and 7. d5 a necessary push in this game?

Help in drawing resonance structures in case of polybasic acids

Reorder a matrix, twice

Would you write key signatures for non-conventional scales?

How can this Stack Exchange site have an animated favicon?

Character Transformation

Suffocation while cooking under an umbrella?

My manager quit. Should I agree to defer wage increase to accommodate budget concerns?

Is differentiation as a map discontinuous?

Why, even after his imprisonment, people keep calling Hannibal Lecter "Doctor"?

Why is STARTTLS still used?

Beyond Futuristic Technology for an Alien Warship?

Interchange `colon` and `:`

Is the iPhone's eSim for the home or roaming carrier?

Another student has been assigned the same MSc thesis as mine (and already defended)

Algorithm that generates orthogonal vectors: C++ implementation

How can I tell the difference between fishing for rolls and being involved?



GRUB doesn't find /boot in LVM


after adding one more physical volume and enlarging logical volume, grub failsHow to get grub Ubuntu 12.04 to boot from secondary boot partition and use new separate rootLuks Partition Mounting After Removing From fstabGrub-install: embedding is not possible in Bios/GPTHow to mount sdb directly or using LVM partitions on sda?Problem with GRUB for dual-boot installation of LMDE 2 (and Windows) on encrypted luks-lvm (truecrypt)Lost space in LVMSetting GRUB_DISABLE_LINUX_UUID=true in /etc/default/grub not working as expectedubuntu 18 lvm move to another disk (also lvm) - backup and restoreWhy will this LVM RAID1 system not boot?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















My system was installed with the Antergos installer and it runs encrypted GRUB. This works fine, just have to insert decryption key twice.



Then I added LVM and created three LVM volumes, boot root and swap. Now I want to update my GRUB with this LVM setup so I can choose to boot the second OS from LVM or just boot Arch.



NAME                                            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 65.2G 0 part
│ └─luks 254:0 0 65.2G 0 crypt /
├─sda2 8:2 0 3.7G 0 part
│ └─luks-14a10aeb-01ec-44f4-b908-0c09685a03ed 254:4 0 3.7G 0 crypt /run/media/thijs/74ec47c2-64ed-4fe5-a965-a5e414b7a129
└─sda3 8:3 0 396.9G 0 part
├─triagia-kaliboot 254:1 0 500M 0 lvm /run/media/thijs/f1eb6904-c17e-40b7-8740-60e67b8d04de
├─triagia-kaliroot 254:2 0 50G 0 lvm
│ └─luks-26028d27-8a95-41c3-9d80-9415b8c170dc 254:6 0 50G 0 crypt /run/media/thijs/65c769fd-ea4a-4854-928c-3c28f15745aa
└─triagia-kaliswap 254:3 0 4G 0 lvm
└─luks-a0fa8f9e-e6d0-42d7-b54c-7c275ddc328a 254:5 0 4G 0 crypt


But when I use grub-mkconfig, the script never finds the boot partition in the LVM. I've used vgscan and vgchange to make them active and mounted the LVM volumes but still grub-mkconfig only reports the boot on sda1.



Research points a lot to taking /boot out of the LVM but I don't like that. I'd add the needed GRUB config manually but I couldn't find an example.



Volumes:



  --- Logical volume ---
LV Path /dev/triagia/kaliboot
LV Name kaliboot
VG Name triagia
LV UUID e68eqU-zP3Q-YnwY-ds6M-MG34-zAB5-VhZcAQ
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:50:52 +0200
LV Status available
# open 0
LV Size 500.00 MiB
Current LE 125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0

--- Logical volume ---
LV Path /dev/triagia/kaliroot
LV Name kaliroot
VG Name triagia
LV UUID Bco7iM-ZlQR-NyeI-Nl1r-N1IK-kooC-oBCfV6
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:51:09 +0200
LV Status available
# open 0
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1

--- Logical volume ---
LV Path /dev/triagia/kaliswap
LV Name kaliswap
VG Name triagia
LV UUID POkVXd-UMoe-yHaB-nfrV-lbpO-Fv3l-86N7AT
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:54:32 +0200
LV Status available
# open 0
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2


After some extra-extra reading on the Arch forums I've added lvm2 to mkinitcpio.conf under HOOKS.



HOOKS="base udev autodetect modconf block keyboard keymap encrypt resume lvm2 filesystems fsck"


And then I ran again:



mkinitcpio -p linux
systemctl enable lvm2-lvmetad.service
grub-mkconfig -o /boot/grub/grub.cfg


But this didn't change anything.



Boot volume



drwxr-x---+ 4 root root       80 Aug 23 19:19 ..
drwxr-xr-x 4 root root 1024 Aug 21 18:18 .
-rw-r--r-- 1 root root 19692558 Aug 21 18:18 initrd.img-4.0.0-kali1-amd64
drwxr-xr-x 2 root root 1024 Aug 21 18:14 grub
drwx------ 2 root root 12288 Aug 21 18:00 lost+found
-rw-r--r-- 1 root root 165968 Jun 3 10:08 config-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 2790804 Jun 3 10:08 System.map-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 3274048 Jun 3 10:07 vmlinuz-4.0.0-kali1-amd64


grub dir:



drwxr-xr-x 4 root root    1024 Aug 21 18:18 ..
drwxr-xr-x 2 root root 1024 Aug 21 18:14 .
-rw-r--r-- 1 root root 2400500 Aug 21 18:14 unicode.pf2


I've created a manual Grub config in 40_custom and this almost works. The LVM is found and luks on root is decrypted but then I get this error:



Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.


Then I'm left with command line: (initramfs) _



Manual GRUB config:



menuentry 'Kali' {
insmod lvm
insmod gzio
insmod part_msdos
insmod ext2
set root=lvm/triagia-kaliboot
search --no-floppy --fs-uuid --set=root f1eb6904-c17e-40b7-8740-60e67b8d04de
linux /vmlinuz-4.0.0-kali1-amd64 root=/dev/mapper/triagia-kaliboot setkmap=us
initrd /initrd.img-4.0.0-kali1-amd64
}









share|improve this question

















bumped to the homepage by Community 47 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from serverfault.com Aug 22 '15 at 16:55


This question came from our site for system and network administrators.




















  • How confident are you that your core.img is built to support reading from LVM? I know you're not getting as far as failing to boot, but the problems may well be related.

    – womble
    Aug 22 '15 at 9:46











  • Absolutely not confident. It's created during initial installation of Arch using the Antergos installer. I can see that GRUB loads the lvm module so that may be a good sign..

    – Thijs
    Aug 22 '15 at 9:52


















2















My system was installed with the Antergos installer and it runs encrypted GRUB. This works fine, just have to insert decryption key twice.



Then I added LVM and created three LVM volumes, boot root and swap. Now I want to update my GRUB with this LVM setup so I can choose to boot the second OS from LVM or just boot Arch.



NAME                                            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 65.2G 0 part
│ └─luks 254:0 0 65.2G 0 crypt /
├─sda2 8:2 0 3.7G 0 part
│ └─luks-14a10aeb-01ec-44f4-b908-0c09685a03ed 254:4 0 3.7G 0 crypt /run/media/thijs/74ec47c2-64ed-4fe5-a965-a5e414b7a129
└─sda3 8:3 0 396.9G 0 part
├─triagia-kaliboot 254:1 0 500M 0 lvm /run/media/thijs/f1eb6904-c17e-40b7-8740-60e67b8d04de
├─triagia-kaliroot 254:2 0 50G 0 lvm
│ └─luks-26028d27-8a95-41c3-9d80-9415b8c170dc 254:6 0 50G 0 crypt /run/media/thijs/65c769fd-ea4a-4854-928c-3c28f15745aa
└─triagia-kaliswap 254:3 0 4G 0 lvm
└─luks-a0fa8f9e-e6d0-42d7-b54c-7c275ddc328a 254:5 0 4G 0 crypt


But when I use grub-mkconfig, the script never finds the boot partition in the LVM. I've used vgscan and vgchange to make them active and mounted the LVM volumes but still grub-mkconfig only reports the boot on sda1.



Research points a lot to taking /boot out of the LVM but I don't like that. I'd add the needed GRUB config manually but I couldn't find an example.



Volumes:



  --- Logical volume ---
LV Path /dev/triagia/kaliboot
LV Name kaliboot
VG Name triagia
LV UUID e68eqU-zP3Q-YnwY-ds6M-MG34-zAB5-VhZcAQ
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:50:52 +0200
LV Status available
# open 0
LV Size 500.00 MiB
Current LE 125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0

--- Logical volume ---
LV Path /dev/triagia/kaliroot
LV Name kaliroot
VG Name triagia
LV UUID Bco7iM-ZlQR-NyeI-Nl1r-N1IK-kooC-oBCfV6
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:51:09 +0200
LV Status available
# open 0
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1

--- Logical volume ---
LV Path /dev/triagia/kaliswap
LV Name kaliswap
VG Name triagia
LV UUID POkVXd-UMoe-yHaB-nfrV-lbpO-Fv3l-86N7AT
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:54:32 +0200
LV Status available
# open 0
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2


After some extra-extra reading on the Arch forums I've added lvm2 to mkinitcpio.conf under HOOKS.



HOOKS="base udev autodetect modconf block keyboard keymap encrypt resume lvm2 filesystems fsck"


And then I ran again:



mkinitcpio -p linux
systemctl enable lvm2-lvmetad.service
grub-mkconfig -o /boot/grub/grub.cfg


But this didn't change anything.



Boot volume



drwxr-x---+ 4 root root       80 Aug 23 19:19 ..
drwxr-xr-x 4 root root 1024 Aug 21 18:18 .
-rw-r--r-- 1 root root 19692558 Aug 21 18:18 initrd.img-4.0.0-kali1-amd64
drwxr-xr-x 2 root root 1024 Aug 21 18:14 grub
drwx------ 2 root root 12288 Aug 21 18:00 lost+found
-rw-r--r-- 1 root root 165968 Jun 3 10:08 config-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 2790804 Jun 3 10:08 System.map-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 3274048 Jun 3 10:07 vmlinuz-4.0.0-kali1-amd64


grub dir:



drwxr-xr-x 4 root root    1024 Aug 21 18:18 ..
drwxr-xr-x 2 root root 1024 Aug 21 18:14 .
-rw-r--r-- 1 root root 2400500 Aug 21 18:14 unicode.pf2


I've created a manual Grub config in 40_custom and this almost works. The LVM is found and luks on root is decrypted but then I get this error:



Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.


Then I'm left with command line: (initramfs) _



Manual GRUB config:



menuentry 'Kali' {
insmod lvm
insmod gzio
insmod part_msdos
insmod ext2
set root=lvm/triagia-kaliboot
search --no-floppy --fs-uuid --set=root f1eb6904-c17e-40b7-8740-60e67b8d04de
linux /vmlinuz-4.0.0-kali1-amd64 root=/dev/mapper/triagia-kaliboot setkmap=us
initrd /initrd.img-4.0.0-kali1-amd64
}









share|improve this question

















bumped to the homepage by Community 47 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from serverfault.com Aug 22 '15 at 16:55


This question came from our site for system and network administrators.




















  • How confident are you that your core.img is built to support reading from LVM? I know you're not getting as far as failing to boot, but the problems may well be related.

    – womble
    Aug 22 '15 at 9:46











  • Absolutely not confident. It's created during initial installation of Arch using the Antergos installer. I can see that GRUB loads the lvm module so that may be a good sign..

    – Thijs
    Aug 22 '15 at 9:52














2












2








2








My system was installed with the Antergos installer and it runs encrypted GRUB. This works fine, just have to insert decryption key twice.



Then I added LVM and created three LVM volumes, boot root and swap. Now I want to update my GRUB with this LVM setup so I can choose to boot the second OS from LVM or just boot Arch.



NAME                                            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 65.2G 0 part
│ └─luks 254:0 0 65.2G 0 crypt /
├─sda2 8:2 0 3.7G 0 part
│ └─luks-14a10aeb-01ec-44f4-b908-0c09685a03ed 254:4 0 3.7G 0 crypt /run/media/thijs/74ec47c2-64ed-4fe5-a965-a5e414b7a129
└─sda3 8:3 0 396.9G 0 part
├─triagia-kaliboot 254:1 0 500M 0 lvm /run/media/thijs/f1eb6904-c17e-40b7-8740-60e67b8d04de
├─triagia-kaliroot 254:2 0 50G 0 lvm
│ └─luks-26028d27-8a95-41c3-9d80-9415b8c170dc 254:6 0 50G 0 crypt /run/media/thijs/65c769fd-ea4a-4854-928c-3c28f15745aa
└─triagia-kaliswap 254:3 0 4G 0 lvm
└─luks-a0fa8f9e-e6d0-42d7-b54c-7c275ddc328a 254:5 0 4G 0 crypt


But when I use grub-mkconfig, the script never finds the boot partition in the LVM. I've used vgscan and vgchange to make them active and mounted the LVM volumes but still grub-mkconfig only reports the boot on sda1.



Research points a lot to taking /boot out of the LVM but I don't like that. I'd add the needed GRUB config manually but I couldn't find an example.



Volumes:



  --- Logical volume ---
LV Path /dev/triagia/kaliboot
LV Name kaliboot
VG Name triagia
LV UUID e68eqU-zP3Q-YnwY-ds6M-MG34-zAB5-VhZcAQ
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:50:52 +0200
LV Status available
# open 0
LV Size 500.00 MiB
Current LE 125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0

--- Logical volume ---
LV Path /dev/triagia/kaliroot
LV Name kaliroot
VG Name triagia
LV UUID Bco7iM-ZlQR-NyeI-Nl1r-N1IK-kooC-oBCfV6
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:51:09 +0200
LV Status available
# open 0
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1

--- Logical volume ---
LV Path /dev/triagia/kaliswap
LV Name kaliswap
VG Name triagia
LV UUID POkVXd-UMoe-yHaB-nfrV-lbpO-Fv3l-86N7AT
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:54:32 +0200
LV Status available
# open 0
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2


After some extra-extra reading on the Arch forums I've added lvm2 to mkinitcpio.conf under HOOKS.



HOOKS="base udev autodetect modconf block keyboard keymap encrypt resume lvm2 filesystems fsck"


And then I ran again:



mkinitcpio -p linux
systemctl enable lvm2-lvmetad.service
grub-mkconfig -o /boot/grub/grub.cfg


But this didn't change anything.



Boot volume



drwxr-x---+ 4 root root       80 Aug 23 19:19 ..
drwxr-xr-x 4 root root 1024 Aug 21 18:18 .
-rw-r--r-- 1 root root 19692558 Aug 21 18:18 initrd.img-4.0.0-kali1-amd64
drwxr-xr-x 2 root root 1024 Aug 21 18:14 grub
drwx------ 2 root root 12288 Aug 21 18:00 lost+found
-rw-r--r-- 1 root root 165968 Jun 3 10:08 config-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 2790804 Jun 3 10:08 System.map-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 3274048 Jun 3 10:07 vmlinuz-4.0.0-kali1-amd64


grub dir:



drwxr-xr-x 4 root root    1024 Aug 21 18:18 ..
drwxr-xr-x 2 root root 1024 Aug 21 18:14 .
-rw-r--r-- 1 root root 2400500 Aug 21 18:14 unicode.pf2


I've created a manual Grub config in 40_custom and this almost works. The LVM is found and luks on root is decrypted but then I get this error:



Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.


Then I'm left with command line: (initramfs) _



Manual GRUB config:



menuentry 'Kali' {
insmod lvm
insmod gzio
insmod part_msdos
insmod ext2
set root=lvm/triagia-kaliboot
search --no-floppy --fs-uuid --set=root f1eb6904-c17e-40b7-8740-60e67b8d04de
linux /vmlinuz-4.0.0-kali1-amd64 root=/dev/mapper/triagia-kaliboot setkmap=us
initrd /initrd.img-4.0.0-kali1-amd64
}









share|improve this question
















My system was installed with the Antergos installer and it runs encrypted GRUB. This works fine, just have to insert decryption key twice.



Then I added LVM and created three LVM volumes, boot root and swap. Now I want to update my GRUB with this LVM setup so I can choose to boot the second OS from LVM or just boot Arch.



NAME                                            MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda 8:0 0 465.8G 0 disk
├─sda1 8:1 0 65.2G 0 part
│ └─luks 254:0 0 65.2G 0 crypt /
├─sda2 8:2 0 3.7G 0 part
│ └─luks-14a10aeb-01ec-44f4-b908-0c09685a03ed 254:4 0 3.7G 0 crypt /run/media/thijs/74ec47c2-64ed-4fe5-a965-a5e414b7a129
└─sda3 8:3 0 396.9G 0 part
├─triagia-kaliboot 254:1 0 500M 0 lvm /run/media/thijs/f1eb6904-c17e-40b7-8740-60e67b8d04de
├─triagia-kaliroot 254:2 0 50G 0 lvm
│ └─luks-26028d27-8a95-41c3-9d80-9415b8c170dc 254:6 0 50G 0 crypt /run/media/thijs/65c769fd-ea4a-4854-928c-3c28f15745aa
└─triagia-kaliswap 254:3 0 4G 0 lvm
└─luks-a0fa8f9e-e6d0-42d7-b54c-7c275ddc328a 254:5 0 4G 0 crypt


But when I use grub-mkconfig, the script never finds the boot partition in the LVM. I've used vgscan and vgchange to make them active and mounted the LVM volumes but still grub-mkconfig only reports the boot on sda1.



Research points a lot to taking /boot out of the LVM but I don't like that. I'd add the needed GRUB config manually but I couldn't find an example.



Volumes:



  --- Logical volume ---
LV Path /dev/triagia/kaliboot
LV Name kaliboot
VG Name triagia
LV UUID e68eqU-zP3Q-YnwY-ds6M-MG34-zAB5-VhZcAQ
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:50:52 +0200
LV Status available
# open 0
LV Size 500.00 MiB
Current LE 125
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:0

--- Logical volume ---
LV Path /dev/triagia/kaliroot
LV Name kaliroot
VG Name triagia
LV UUID Bco7iM-ZlQR-NyeI-Nl1r-N1IK-kooC-oBCfV6
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:51:09 +0200
LV Status available
# open 0
LV Size 50.00 GiB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:1

--- Logical volume ---
LV Path /dev/triagia/kaliswap
LV Name kaliswap
VG Name triagia
LV UUID POkVXd-UMoe-yHaB-nfrV-lbpO-Fv3l-86N7AT
LV Write Access read/write
LV Creation host, time conDoin, 2015-08-21 17:54:32 +0200
LV Status available
# open 0
LV Size 4.00 GiB
Current LE 1024
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 254:2


After some extra-extra reading on the Arch forums I've added lvm2 to mkinitcpio.conf under HOOKS.



HOOKS="base udev autodetect modconf block keyboard keymap encrypt resume lvm2 filesystems fsck"


And then I ran again:



mkinitcpio -p linux
systemctl enable lvm2-lvmetad.service
grub-mkconfig -o /boot/grub/grub.cfg


But this didn't change anything.



Boot volume



drwxr-x---+ 4 root root       80 Aug 23 19:19 ..
drwxr-xr-x 4 root root 1024 Aug 21 18:18 .
-rw-r--r-- 1 root root 19692558 Aug 21 18:18 initrd.img-4.0.0-kali1-amd64
drwxr-xr-x 2 root root 1024 Aug 21 18:14 grub
drwx------ 2 root root 12288 Aug 21 18:00 lost+found
-rw-r--r-- 1 root root 165968 Jun 3 10:08 config-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 2790804 Jun 3 10:08 System.map-4.0.0-kali1-amd64
-rw-r--r-- 1 root root 3274048 Jun 3 10:07 vmlinuz-4.0.0-kali1-amd64


grub dir:



drwxr-xr-x 4 root root    1024 Aug 21 18:18 ..
drwxr-xr-x 2 root root 1024 Aug 21 18:14 .
-rw-r--r-- 1 root root 2400500 Aug 21 18:14 unicode.pf2


I've created a manual Grub config in 40_custom and this almost works. The LVM is found and luks on root is decrypted but then I get this error:



Begin: Running /scripts/init-bottom ... mount: mounting /dev on /root/dev failed: No such file or directory
done.
No init found. Try passing init= bootarg.


Then I'm left with command line: (initramfs) _



Manual GRUB config:



menuentry 'Kali' {
insmod lvm
insmod gzio
insmod part_msdos
insmod ext2
set root=lvm/triagia-kaliboot
search --no-floppy --fs-uuid --set=root f1eb6904-c17e-40b7-8740-60e67b8d04de
linux /vmlinuz-4.0.0-kali1-amd64 root=/dev/mapper/triagia-kaliboot setkmap=us
initrd /initrd.img-4.0.0-kali1-amd64
}






lvm arch-linux grub2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 23 '15 at 18:50







Thijs

















asked Aug 22 '15 at 9:37









ThijsThijs

1582 silver badges12 bronze badges




1582 silver badges12 bronze badges






bumped to the homepage by Community 47 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from serverfault.com Aug 22 '15 at 16:55


This question came from our site for system and network administrators.












bumped to the homepage by Community 47 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 47 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.






migrated from serverfault.com Aug 22 '15 at 16:55


This question came from our site for system and network administrators.









migrated from serverfault.com Aug 22 '15 at 16:55


This question came from our site for system and network administrators.















  • How confident are you that your core.img is built to support reading from LVM? I know you're not getting as far as failing to boot, but the problems may well be related.

    – womble
    Aug 22 '15 at 9:46











  • Absolutely not confident. It's created during initial installation of Arch using the Antergos installer. I can see that GRUB loads the lvm module so that may be a good sign..

    – Thijs
    Aug 22 '15 at 9:52



















  • How confident are you that your core.img is built to support reading from LVM? I know you're not getting as far as failing to boot, but the problems may well be related.

    – womble
    Aug 22 '15 at 9:46











  • Absolutely not confident. It's created during initial installation of Arch using the Antergos installer. I can see that GRUB loads the lvm module so that may be a good sign..

    – Thijs
    Aug 22 '15 at 9:52

















How confident are you that your core.img is built to support reading from LVM? I know you're not getting as far as failing to boot, but the problems may well be related.

– womble
Aug 22 '15 at 9:46





How confident are you that your core.img is built to support reading from LVM? I know you're not getting as far as failing to boot, but the problems may well be related.

– womble
Aug 22 '15 at 9:46













Absolutely not confident. It's created during initial installation of Arch using the Antergos installer. I can see that GRUB loads the lvm module so that may be a good sign..

– Thijs
Aug 22 '15 at 9:52





Absolutely not confident. It's created during initial installation of Arch using the Antergos installer. I can see that GRUB loads the lvm module so that may be a good sign..

– Thijs
Aug 22 '15 at 9:52










1 Answer
1






active

oldest

votes


















0
















You will need to add the kernel parameter in order for GRUB to decrypt the disk so that it can load your kernel.



Add command below into GRUB's kernel parameter:



cryptdevice=UUID=device-UUID:lvm root=/dev/mapper/MyVol-root
The <device-UUID> refers to the UUID of /dev/sdaX


Decrypt and then boot, that's it.
For more information, please refer to Arch Wiki.






share|improve this answer






























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });















    draft saved

    draft discarded
















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224816%2fgrub-doesnt-find-boot-in-lvm%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0
















    You will need to add the kernel parameter in order for GRUB to decrypt the disk so that it can load your kernel.



    Add command below into GRUB's kernel parameter:



    cryptdevice=UUID=device-UUID:lvm root=/dev/mapper/MyVol-root
    The <device-UUID> refers to the UUID of /dev/sdaX


    Decrypt and then boot, that's it.
    For more information, please refer to Arch Wiki.






    share|improve this answer
































      0
















      You will need to add the kernel parameter in order for GRUB to decrypt the disk so that it can load your kernel.



      Add command below into GRUB's kernel parameter:



      cryptdevice=UUID=device-UUID:lvm root=/dev/mapper/MyVol-root
      The <device-UUID> refers to the UUID of /dev/sdaX


      Decrypt and then boot, that's it.
      For more information, please refer to Arch Wiki.






      share|improve this answer






























        0














        0










        0









        You will need to add the kernel parameter in order for GRUB to decrypt the disk so that it can load your kernel.



        Add command below into GRUB's kernel parameter:



        cryptdevice=UUID=device-UUID:lvm root=/dev/mapper/MyVol-root
        The <device-UUID> refers to the UUID of /dev/sdaX


        Decrypt and then boot, that's it.
        For more information, please refer to Arch Wiki.






        share|improve this answer















        You will need to add the kernel parameter in order for GRUB to decrypt the disk so that it can load your kernel.



        Add command below into GRUB's kernel parameter:



        cryptdevice=UUID=device-UUID:lvm root=/dev/mapper/MyVol-root
        The <device-UUID> refers to the UUID of /dev/sdaX


        Decrypt and then boot, that's it.
        For more information, please refer to Arch Wiki.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 22 '17 at 8:29

























        answered Jul 19 '16 at 9:38









        李智修李智修

        931 gold badge1 silver badge7 bronze badges




        931 gold badge1 silver badge7 bronze badges


































            draft saved

            draft discarded



















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f224816%2fgrub-doesnt-find-boot-in-lvm%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

            The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

            Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...