Help! /bin/bash not found on chroot

Volker Wysk post at volker-wysk.de
Sun Nov 28 11:11:09 UTC 2021


I've been able to recover from a backup.

Bye, Volker


Am Samstag, dem 27.11.2021 um 16:47 +0100 schrieb Volker Wysk:
> Hello!
> 
> Something happened to my system. Suddenly, next to nothing worked any
> more. For instance "ls" won't be found any longer.
> 
> I made a reboot and the system asks for the disk password, and
> afterwards dies. When going into the recovery, then there are messages
> stating that /sbin/init and /etc/init aren't found. Then the system
> stops with a kernel panic.
> 
> I'm trying to fix the problem by booting from an USB stick. Then I
> mount the faulty system at /mnt/rootneu and do this:
> 
> mount BOOTPART /mnt/rootneu/boot
> mount EFIPART /mnt/rootneu/boot/efi
> mount --rbind /dev /mnt/rootneu/dev
> mount --rbind /proc /mnt/rootneu/proc
> mount --rbind /sys /mnt/rootneu/sys
> 
> I do this so I can "update-initramfs -u", "grub-install ..." and
> "update-grub" later.
> 
> So far, it works. But then I try to chroot to the system that fails
> with:
> 
> chroot /mnt/rootneu
> 
> This FAILS with:
> 
> chroot: failed to run command '/bin/bash': No such file or directory
> 
> Even though /bin/bash and /mnt/rootneu/bin/bash are both present and
> can be started.
> 
> So here I'm in need for help. Why doesn't chroot work?
> 
> It's a Ubunut 20.04.3 LTS system.
> 
> Thanks in advance,
> Volker
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20211128/6b96c799/attachment.sig>


More information about the ubuntu-users mailing list