Page 1 of 1
chroot failed to run command
Posted: 01 Nov 2021, 15:13
by Liquidpaper
Hi,
I am trying to chroot from porteus to a slack VM client over PXE and I mounted:
Code: Select all
mount /dev/sda1 /mnt
mount -o bind /dev /mnt/dev
mount -o bind /dev/pts /mnt/dev/pts
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys
chroot /mnt /bin/bash
chroot: failed to run command '/bin/bash': no such file or directory
I check /bin/bash and *bash is there
Did I miss something? I did that with ubuntu live and every time worked flawlessly. Thanks, guys!
chroot failed to run command
Posted: 01 Nov 2021, 21:39
by Ed_P
FWIW
Code: Select all
guest@porteus:~$ chroot /bin/bash
chroot: cannot change root directory to '/bin/bash': Not a directory
guest@porteus:~$ chroot /mnt /bin/bash
chroot: cannot change root directory to '/mnt': Operation not permitted
guest@porteus:~$
chroot failed to run command
Posted: 02 Nov 2021, 15:24
by Liquidpaper
thanks for reproducing it, Ed. Firstly you do not have a jail /bin/bash to go in so the error is legitimate, secondly based on first + you do not have a mounted point /mnt and lastly, you are not root, legitimate output again.
chroot failed to run command
Posted: 02 Nov 2021, 17:49
by beny
this is what i use for the mount of dd image for the software upgrade:/mnt/arch is only a directory that i use for... slackware environment
mount -o bind /proc /mnt/arch/proc
mount -o bind /sys /mnt/arch/sys
mount -o bind /dev /mnt/arch/dev
mount -o bind /tmp /mnt/arch/tmp
mount --bind /etc/resolv.conf /mnt/arch/etc/resolv.conf
chroot /mnt/arch /bin/bash -l
chroot failed to run command
Posted: 02 Nov 2021, 21:22
by Liquidpaper
I know gents, I used hundreds of times before and this is the first time when fails. Actually this is a machine (host) I never chrooted from before. But machine should be kind of neutral (of course x64) because I am in a VBOX.
chroot failed to run command
Posted: 03 Nov 2021, 16:22
by Liquidpaper
chroot failed to run command
Posted: 03 Nov 2021, 16:24
by Liquidpaper
how to cancel if I do not want to submit? I know using the browser back, but should not be a <cancel> button beside submit?
chroot failed to run command
Posted: 03 Nov 2021, 16:36
by Ed_P
Liquidpaper wrote: ↑03 Nov 2021, 16:24
how to cancel if I do not want to submit?
After you post the X next to the Edit option is for Delete.
