On 21/03/2025 20:38, J wrote:
But i must mention that *this passage from Debian Wiki seems incorrect*
Bind mount various virtual filesystems:
# for i in /dev /dev/pts /proc /sys /sys/firmware/efi/efivars /run;
do mount -B $i /mnt/$i; done
https://wiki.debian.org/GrubEFIReinstall#Using_the_rEFInd_rescue_media
*I had to use*
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
Sorry, but I can not spot anything apparently incorrect. Did you try to
execute the compound shell command by adding just "sudo" in front of it?
With leading "#" it is assumed that it is already a root shell (obtained
by e.g. "sudo -i") and in this case it is important.
And *copy /etc/resolv.conf to mounted disk*, to make the internet work
under *chroot*.
Ideally the *same* content describing chroot for rescue should be
included into GrubEFIReinstall and into
https://wiki.debian.org/RescueLive
I expected that bind mounts for recovery should be described in official
Debian docs, but quick search gave not results.