Help! Unable to Boot into Arch
Loader.Conf:
- Default Arch
- timeout 4
- console-mode auto
- editor no
Mkinitcpio:
- MODULES=""
- BINARIES=""
- FILES=""
- HOOKS="base systemd sd-vconsole modconf keyboard block filesystems btrfs sd-encrypt fsck"
I am unable to boot into arch after a new install. Things I have tried :
- Several reinstalls and still the same issue
- changed bootloaders and still the same issue
- I have checked my steps in the wiki and everything seems to be right
System Build :
- BTRFS with luks
- Subvolumes : root,home, swap,snapshots
- I am running with no swap partition
- current Bootloader is System D boot; I have tried refind
What is the cause of this error ? And How do I go about fixing it ?
Edited 13 Sep 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 2 · 100% up
- Kind
- Text
- ID
- d37fs5
14 comments
Your initrd is waiting for
/dev/mapper/cryptsystemto appear, but that never happens.You need to open the encrypted partition in the initramfs, listing it in /etc/crypttab isn't enough. Since you're running systemd in the initrd, you can omit the
root=…kernel parameter and rely on the gpt-auto-generator, provided you correctly flagged your root partition as type "Linux Root (x86-64)". (In that case it is opened as/dev/mapper/rootinstead ofcryptsystem.) Otherwise, list your root partition in/etc/crypttab.initramfs(the file doesn't exist by default), and regenerate your initrd.I have done everything and still receiving the error ; so I have updated the post with my full setup in hopes of finally having a computer that boots up
I noticed that in your entries your UUID is for the drive not the partition. You need to use the one that's labelled crypto_LUKS.
Which entries if you don’t mind me asking ? The arch.conf?
I can also decrypt the device when ch root to fix the issue
/etc/mkinitcpio.conf?/dev/mapper/cryptsystemin your boot loader entries.Check this
Not loader.conf but the one at /boot/loader/entries/arch.conf`filesystems` is usually after `encrypt` but before `fsck`
In the last screenshot you have
/dev/mapper/systeminstead of/dev/mapper/cryptsystemI tried that didn’t work ; same result as above
I fixed the issue by attaching “:luks” to the cryptdevice and changing the path of root = /dev/mapper/luks in the arch.conf.
It still would not boot after that so I then modified the mkinitcpio.conf to :
Then I experimented ; I tried it the original way with the systemd hook and it didn’t work . I want to know why the udev hook works but the systemd hook does not
https://wiki.archlinux.org/index.php/Mkinitcpio#Common_hooks
https://wiki.archlinux.org/index.php/Talk:Mkinitcpio#Improvements_for_the_Common_hooks_table_and_section_about_systemd_hook
This could provide some insight
Looks like you have messed up with systemd boot boot options or you have entered wrong uuid in /etc/crypttab if I remember correctly.
Error mean that system wait for encrypted partition which isn't provided as it start to boot i assume root partition
Check wiki for your setup but I would start with systemd-boot efi file at /boot/efi/loader/loadernane and /etc/crypttab /etc/fstab