Appendix B.  Troubleshooting and Recovery

Procedure B.1.  Console is unusable
  1. Fix keyboard layout

    If keyboard not set to Dvorak in command line: sudo apt install console-data loadkeys -C /dev/console dvorak or in some cases (GUI?) setkbdmap …

  2. Make font bigger

    If the console font is too small, do this in the console: setfont sun12x22 Or do this in Xorg: xterm -fa 'Monospace' -fs 14

Procedure B.2.  Encrypted drive isn't mounted
  1. Current approach

    mkdir /mnt/drivename cryptsetup luksOpen /dev/sda1 drivename mount /dev/mapper/drivename /mnt/drivename

  2. This worked

    From the command line, mount an encrypted drive: modprobe dm-crypt fdisk -l cryptsetup open /dev/nvme0n1p3 filesys

    Note

    This is (im)possible from grub but maybe with different incantations?

  3. Even messier way

    Some more wizardry from the internet …. Let's hope this is never needed again. mkdir filesys vgscan echo 'vgdisplay | grep UUID | awk '{print $3}' > foo.txt vgrename $($lt; foo.txt) new_name vgdisplay modprobe dm-mod vgchange -ay vgdisplay lvscan mount /dev/new_name/root filesys Not sure how much, if any, of renaming part of the last part is necessary; maybe I just needed to include /root in the initial mount command?

Procedure B.3.  Errors making Docbook
Procedure B.4.  Printer failures