You are not logged in.

#1 2023-06-30 11:25:21

Humar
Member
Registered: 2013-09-13
Posts: 73

[SOLVED] ThinkPad P16s problems booting/decrypting after update

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 off

Inside the emergency shell:

df -h

just shows 15.1G /dev and /run

uname -r
6.3.9-arch1-1

I also am seeing ACPI BIOS Error (bug): Could not resolve symbol AE_NOT_FOUND and a lot more... sad

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

#2 2023-06-30 12:07:46

Humar
Member
Registered: 2013-09-13
Posts: 73

Re: [SOLVED] ThinkPad P16s problems booting/decrypting after update

Now inside an install medium I did

cryptsetup luksOpen /dev/nvme0n1p2 luks

Entered my password and it was decrypted.
I then proceeded mounting it:

mount /dev/mapper/luks /old

Then I entered /old

Here I have:

ls -la

total 16
.
..
.snapshots
boot
btrfs
home
var
@
@home
@pkg
@snapshots

Entered @

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 sad

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 sad

Last edited by Humar (2023-06-30 12:30:41)

Offline

#3 2023-06-30 13:09:22

Humar
Member
Registered: 2013-09-13
Posts: 73

Re: [SOLVED] ThinkPad P16s problems booting/decrypting after update

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

#4 2023-07-11 11:49:35

BlkChockr
Member
Registered: 2016-09-01
Posts: 14

Re: [SOLVED] ThinkPad P16s problems booting/decrypting after update

Just ran into the same problem with my P14s. Thank you for sharing your solution here, it also worked for me. smile

Offline

#5 2023-08-10 11:56:45

Humar
Member
Registered: 2013-09-13
Posts: 73

Re: [SOLVED] ThinkPad P16s problems booting/decrypting after update

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

Board footer

Powered by FluxBB