You are not logged in.
hey,
after following the instructions in the wiki (installation, dm-crypt, GRUB etc.) the system doesn't boot anymore.
after turning on the machine (lenovo x1 carbon) i just get a black screen. after a few seconds it is switching to the 'boot menu'.
what is strange there: the boot menu still shows 'ubuntu' which was previously installed.
i followed the "Dm-crypt/Drive preparation." (https://wiki.archlinux.org/index.php/Dm … reparation) manual.
partitioning the disk i was confused whether i should create an efi partition because in the "ESP" wiki it says:
'[..]in the main partition table of the disk, not under LVM' (https://wiki.archlinux.org/index.php/EF … _Partition)
my disk is partitioned as followig:
# lsblk
nvme0n1
|--nvme0n1p1 --- 1M
|--nvme0n1p2 --- 128M ## (the \boot partition)
|--nvme0n1p2 --- 476G ## (the encrypted part)
|--cryptolvm
|--myVol-swap --- 8G
|--myVol-root ----- 15G
|--myVol-home -- 453 G
the wiki is a bit too compressed for my taste especially when it comes to the boot section.
i am mainly confused with
- partition with lvm on luks
- efi partition needed?
- grub installation
- systemd
i set the
/etc/default/grub
to:
GRUB_PRELOAD_MODULES="lvm"
GRUB_ENABLE_CRYPTODISC=y
GRUB_CMDLINE_LINUX="resume=/dev/mapper/myVol-swap"
GRUB_CMDLINE_LINUX="root=/dev/mapper/myVol-root"
GRUB_CMDLINE_LINUX="luks.uuid=<the uuid of the nvme0n1p3>"
GRUB_CMDLINE_LINUX="luks.name=<uuid of cryptolvm>=/dev/mapper/cryptolvm"
GRUB_CMDLINE_LINUX="luks.key=<path/to/key.key>"
the hooks in
/etc/mkinitcpio.conf
HOOKS=(base systemd autodetect keyboard keymap sd-vconsole modconf block sd-encrypt sd-lvm2 filesystems fsck)
and i did
grub-install --target=i386-pc /dev/nvme0n1p2
that may be wrong.. (as well)?!
any clues are appreciated
thanks
Last edited by whomen (2018-02-05 13:10:05)
Offline
EFI System Partition is only required for UEFI booting, if you'll only boot in BIOS mode you do not require it.
Do want a setup similar to https://wiki.archlinux.org/index.php/Dm … .28GRUB.29 ?
# lsblk ... |--nvme0n1p2 --- 128M ## (the \boot partition) ...
Is nvme0n1p2 encrypted?
GRUB_PRELOAD_MODULES="lvm" GRUB_ENABLE_CRYPTODISC=y GRUB_CMDLINE_LINUX="resume=/dev/mapper/myVol-swap" GRUB_CMDLINE_LINUX="root=/dev/mapper/myVol-root" GRUB_CMDLINE_LINUX="luks.uuid=<the uuid of the nvme0n1p3>" GRUB_CMDLINE_LINUX="luks.name=<uuid of cryptolvm>=/dev/mapper/cryptolvm" GRUB_CMDLINE_LINUX="luks.key=<path/to/key.key>"
Are multiple GRUB_CMDLINE_LINUX lines allowed? Try combining them in one.
"luks.name=<uuid of cryptolvm>=/dev/mapper/cryptolvm" is wrong, it should be "luks.name=<uuid of cryptolvm>=cryptolvm".
Use "rd.luks." instead of "luks." (see warning in https://wiki.archlinux.org/index.php/Dm … crypt_hook ) .
grub-install --target=i386-pc /dev/nvme0n1p2
You need to use `grub-install` on the disk not the partition: grub-install --target=i386-pc /dev/nvme0n1
Offline