You are not logged in.
Hello!
I had an encrypted laptop in use for about a year.
I set it up with an encrypted container but now, after a normal update, and not using it for two days, am greeted with:
:: running hook [encrypt]
Waiting 10 seconds for device /dev/disk/by-uuid/{uuid-here}
:: running hooks [btrfs]
Waiting 10 seconds for device /dev/mapper/krypton ...
:: mounting '/dev/mapper/krypton' on real root
mount: /new_root: no valid filesystem type specified.
ERROR: Failed to mount '/dev/mapper/krypton' on real root
You are now being dropped into an emergency shell.
sh: can't access tty: job control turned offInside the emergency shell:
df -hjust shows 15.1G /dev and /run
uname -r
6.3.9-arch1-1I also am seeing ACPI BIOS Error (bug): Could not resolve symbol AE_NOT_FOUND and a lot more... ![]()
I have the same setup running on my desktop from which I am writing to you
What now? Am I facing a hardware defect or did the last update just break my setup.
In any case, how should I proceed?
Any help appreciated!
Edit: Hm, I may be experiencing https://bugs.archlinux.org/task/77780 *sighs* There goes my Friday afternoon
Last edited by Humar (2023-06-30 13:09:46)
Offline
Now inside an install medium I did
cryptsetup luksOpen /dev/nvme0n1p2 luksEntered my password and it was decrypted.
I then proceeded mounting it:
mount /dev/mapper/luks /oldThen I entered /old
Here I have:
ls -la
total 16
.
..
.snapshots
boot
btrfs
home
var
@
@home
@pkg
@snapshotsEntered @
cd /old/@Checking /old/@/etc/fstab and /old/@/etc/crypttab
comparing the uuids from the fstab to output from `blkid`
Not sure what I should see...
blkid
/dev/mapper/luks: LABEL="ROOT" UUID="733...32e" UUID_SUB="5d...efe9" BLOCKS_SIZE="4096" TYPE="btrfs"Looks the same as in /old/@/etc/fstab ![]()
Mounted /dev/nvme0n1p1 under /old-boot
Checked the entries of the /old-boot...
there is EFI folder, amd-ucode.img, initramfs-linux.img vmlinuz-linux and loader folder
inside /old-boot/loader there are my configs under entries/
Going there and checking the UUID...
Hm, it's the one from /dev/nvme0n1p2... should it be the one from /dev/mapper/krypton instead? It's worth a try (albeit a long shot)
Rebooting and .... same issue ![]()
Last edited by Humar (2023-06-30 12:30:41)
Offline
FIX in the end:
inside an install usb stick
# Decrypt container
cryptsetup luksOpen /dev/nvme0n1p2 luks
# Mount the container
mount -o subvol=@ /dev/mapper/luks /mnt
# Mount the /boot
mount /dev/nvme0n1p1 /mnt/boot
# Change root
arch-chroot /mnt
# Regenerate image
mkinitcpio -P
This time without any USB stuff attached
Because indeed I found some stuff in /mnt/var/log/pacman.log (or /old/@/var/log/pacman.log as previously mounted) like:
==> Starting build: '6.3.9-arch1-1'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
sort: cannot read: '/sys/devices/pci0000:00/0000:00:08.1/0000:2a:00.3/usb2/2-1/2-1.3/2-1.3.3/2-1.3.3:1.2/ep_88/uevent': No such file or directory
modprobe: ERROR: missing parameters. See -h.
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
==> Image generation successful
Important:
sort: cannot read: '/sys/devices/pci0000:00/0000:00:08.1/0000:2a:00.3/usb2/2-1/2-1.3/2-1.3.3/2-1.3.3:1.2/ep_88/uevent': No such file or directory
See:
https://gitlab.archlinux.org/archlinux/ … issues/177
https://bugs.archlinux.org/task/77780
https://bbs.archlinux.org/viewtopic.php … 3#p2107313
Offline
Just ran into the same problem with my P14s. Thank you for sharing your solution here, it also worked for me. ![]()
Offline
Glad it helped!
Today I had the same problem on my desktop... no issues for many years. What a faulty usb device can do -.-
Stupid switch/usb-hub, it wasn't even a cheap one!
Offline