<div dir="ltr"><div>tl;dr I hit this error while trying to reinstall grub:</div><div>grub-probe: error: can't mount encrypted volume '/dev/sda5': no such partition<br></div><div><br></div>Hello, we've seen fixes suggested for non-encrypted installs which involve either reinstalling grub or running dpkg-configure grub-pc from chroot.<div><br></div><div>How do we go about fixing an LLVM LUKS encrypted installation though? It's a fairly common way of setting up the desktop I gather as it's the last option on the Debian Installer menu.</div><div><br></div><div>Here's what I've discovered so far:<br>----------------------------------------------<br></div><div>fdisk -l /dev/sda<br><br>- this reveals the default LUKS/LVM setup<br>/dev/sda1<br>/dev/sda2<br>/dev/sda5<br><br>- further details can be found here, since I tried the Ubuntu boot repair<br>  USB but it failed to offer the repair option since I have a /boot directory<br>  but it scanned my system<br><br><a href="http://paste.ubuntu.com/p/5vpH3rGM9h">paste.ubuntu.com/p/5vpH3rGM9h</a><br><br>udisksctl unlock -b /dev/sda5<br>- enter password here, LUKs partition gets unlocked<br>apt update<br>apt install lvm2<br>vgchange -ay # makes LVM volumes active<br>udisksctl mount -b /dev/mapper/$HOSTNAME--vg-root<br><br>ls /media/root/$UUID<br>apt install grub<br>grub-install --root-directory=/media/root/$UUID /dev/sda<br><br>- here's the main error<br><br>grub-probe: error: can't mount encrypted volume '/dev/sda5': no such partition<br><br>- trying the dpkg-reconfigre grub-pc solution gets me no further<br><br>chroot /media/root/$UUID<br>dpkg-reconfigure grub-pc<br><br>- I select th defaults in dpkg-configure, which is blank command line then 'quiet'<br><br>/var/lib/dpkg/info/grub-pc.postint: line 340: /dev/null: Permission denied<br>[ warnings about locale]<br>Can't open /dev/null: Permission denied<br><br>--------------------------------------------------<br>I am at an impasse, help? I'm stuck!<br></div><div><br></div><div>Todd</div></div>