Debug - Sawangg/dotfiles GitHub Wiki

Live system debugging

If you need to access to your system with a live environment after you messed up, follow those steps

First connect to your live session. Shutdown your computer, plug the USB containing your live environment, use the boot menu to select the USB drive. If you're using artix, use the default credentials

username: root
password: artix

Next open your luks partition if your drive is encrypted

cryptsetup luksOpen /dev/your-disk-lvm-partition alpha

And activate the logical volumes

vgchange -ay

Then mount the root volume

mount /dev/alpha/volRoot /mnt

Optionally you can mount your home volume or EFI partition using those commands

mount /dev/alpha/volHome /mnt/home
mount /dev/your-disk-efi-partition /mnt/boot/efi

Finally you can access to your system

artix-chroot /mnt /bin/bash

When you're done with whatever, run

umount -R /mnt
vgchange -an
cryptsetup luksClose alpha
reboot

You can then unplug your USB key and hopefully you're good to go!

Update your LUKS passphrase

Here is the command to update your passphrase (ref install schema to understand the partition name)

cryptsetup luksChangeKey /dev/your-disk-2 -S 0

[!NOTE] This will change the passphrase for the key at slot 0. Use cryptsetup luksDump /dev/your-disk-2 for more info

Debug your Wayland

You can use the tool called wev to test your key presses and more

doas pacman -S wev