On 12/24/21, Felix Miata <mrmazda@earthlink.net> wrote:
Dave Plater composed on 2021-12-24 07:22 (UTC+0200):
...I'd forgotten that grub2 and xfs don't like each other and the system was unbootable. Ok backup root again and create an ext3 boot partition before the root partition and perform the mount --bind on sys proc and dev then chroot into root partition then use yast2 bootloader on it. Fine except "chroot /mnt" no longer appears to work, it says: "chroot: failed to run command ‘/bin/bash’: Permission denied"
mount <rootfilesystem> /mnt mount -o bind /dev /mnt/dev mount -o bind /sys /mnt/sys mount -o bind /proc /mnt/proc chroot /mnt mount -a <proceed to fix/update/yast/whatever>
With a separate partition for /boot/ in fstab, /boot/ will be empty until the the boot filesystem is mounted. mount -a is doubly important if / is BTRFS. -- Evolution as taught in public schools is, like religion, based on faith, not based on science.
Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!
Felix Miata
Thanks Felix but at the point " chroot /mnt " I can't continue because I get: "chroot: failed to run command ‘/bin/bash’: Permission denied" I've used your method many times in the past but now I'm stuck. When I did the change over from fading drive to new drive I used boot installed system on the new hard drive, I think I'll try it after I've sorted the root and boot partitions, moving boot to bootbu then back to the newly mounted boot partition. Thanks again, have a good christmas Dave P