You are not logged in.
Pages: 1
So when i boot after my fresh install (not that fresh no because it's been some day i tried to fix it)
after the arch linux splash screen i have this error message
[ TIME ] Timed out waiting for device /dev/gpt-auto-root.
[DEPEND] Dependency failed for File system Check on /dev/gpt-auto-root.
[DEPEND] Dependency failed for Root Partition.
[DEPEND] Dependency failed for Initrd Root File System.
[DEPEND] Dependency failed for Mountpoints Configured in the Real Root.
[DEPEND] Dependency failed for Initrd Root Device.
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, or "exit" to continue bootup.
Cannot open acces to console, the root account is locked
See sulogin(8) man page for more details.
Press Enter to continue
If i press enter, i wait something like 2 minute and have the error message again start from "You are in emergency mode."
Actually the goal of the install is to have a lapdtop for school, so i have try to secure it the best i know.
For that i have choose to make 2 partion, one for /efi and one for the rest of arch (who is encrypt)
For the idea i follow the wiki ( https://wiki.archlinux.org/title/EFI_sy … unt_points ) so mount the esp to /efi
If using system encryption with the appropriate setup, it allows to leave only a few required files unencrypted while /boot remains protected:
Some setup i made
root@archiso ~ # lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 820.6M 1 loop
sda 8:0 1 0B 0 disk
sdb 8:16 1 7.5G 0 disk
└─sdb1 8:17 1 7.5G 0 part
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 1G 0 part /mnt/efi
└─nvme0n1p2 259:2 0 475.9G 0 part
└─lvm 254:0 0 475.9G 0 crypt
├─volgroup0-lv_root 254:1 0 50G 0 lvm /mnt
└─volgroup0-lv_home 254:2 0 300G 0 lvm /mnt/home
In "/etc/fstab"
# Static information about the filesystems.
# See fstab(5) for details.
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/mapper/volgroup0-lv_root
UUID=6eea19e1-aa9e-4f8f-aeb9-5a8db0ed32bc / ext4 rw,relatime 0 1
# /dev/mapper/volgroup0-lv_home
UUID=bd836a76-ffe5-4406-87df-8e7a7cdb9aef /home ext4 rw,relatime 0 2
# /dev/nvme0n1p1 LABEL=EFI
UUID=AA05-E5CC /efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2
In "/etc/mkinitcpio.conf"
MODULES=()
BINARIES=()
FILES=()
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base systemd autodetect microcode modconf kms keyboard keymap sd-vconsole sd-encrypt block lvm2 filesystems fsck)
In /etc/mkinitcpio.d/linux-hardened.preset
# mkinitcpio preset file for the 'linux-hardened' package
#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux-hardened"
PRESETS=('default' 'fallback')
#default_config="/etc/mkinitcpio.conf"
#default_image="/boot/initramfs-linux-hardened.img"
default_uki="/efi/EFI/Linux/arch-linux-hardened.efi"
default_options="--splash /usr/share/systemd/bootctl/splash-arch.bmp"
#fallback_config="/etc/mkinitcpio.conf"
#fallback_image="/boot/initramfs-linux-hardened-fallback.img"
fallback_uki="/efi/EFI/Linux/arch-linux-hardened-fallback.efi"
fallback_options="-S autodetect"
And after i generate initramfs
I setup some other thing with "systemd-firstboot --root /mnt --prompt"
And add a root psw and a user on the wheel
After that i reboot and here i have the error i give on the start of this message.
Last edited by Wateir (2025-01-19 17:48:21)
Offline
the article you linked to also instructed to mount the ESP to /boot, which you did not do, as shown in /etc/fstab.
It is inside your root partition, which is encrypted. So the system has nothing to boot from.
Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.
Offline
Okay thanks the solution is
additionally mount an "Extended Boot Loader Partition" (XBOOTLDR) to /boot
If i understand weel what the wiki tell, gonna try that thanks
Offline
Solved
efibootmgr --unicode --disk /dev/nvme0n1 --part 1 --create --label "Archlinux Hardened" --loader /EFI/Linux/arch-linux-hardened.efi
create the file /etc/cmdline.d/00-root.conf with in it
rd.luks.name=2e242df4-36bc-4393-9664-ec0435283577=lv_root root=/dev/volgroup0/lv_root rw
regen the intraf with mkcpio
Reboot
Offline
Pages: 1