slackware 14.0, chroot: failed to run command ‘/bin/bash’: No such file or directory
Hi,
1. I have installed slackware14.0 (64bit) in my local machine. 2. I have created the 10 gb image space in slackware machine using below command. (dd if=/dev/zero of=slack14.img bs=1M count=10075). 3. I have format the image (slack14.img). andmount the slack14.img in /mnt/slack1464. Also I have mount the slackware14.0 ISO image in /mnt/slackwae14_cd. 4. I have installed the custom package through ruby script. The custom package for installed without any error. After that While login the mounting image (/mnt/slack1464). root@slack1464bit:~# chroot /mnt/slack1464 chroot: failed to run command ‘/bin/bash’: No such file or directory root@slack1464bit:~# earlier I have created the .img image in (slackware13.1 & 13.37) I am able to login the without any error. But I am getting the error in Slackware14.0 64bit only. Thanks for advance. BY DAVID |
Quote:
|
Quote:
I am getting the same error after executing: Code:
# cd /mnt/rescue What am I missing. thanks john |
There his simply no /bin/bash in /mnt/rescue, that's why you get that error. Just check with "ls /mnt/rescue/bin/bash" This is what unSpwan meant I presume.
Additionally you should use the "-o bind" option for all "mount" commands but AFAIK there is no need to mount devpts. And there is no need to append /bin/bash to the chroot command anyway as it defaults to /bin/sh which in Slackware is a symlink to /bin/bash. |
Quote:
-rwxr-xr-x 1 root root 986120 Aug 10 18:09 /mnt/rescue/bin/bash* Quote:
Quote:
John |
@AlleyTrotter: I Have a dual boot Slackware 13.37 + Slackware 14, mounted as /current in Slackware 13.37.
I have no problem doing either "chroot /current" or "cd /current; chroot ." from Slackware 13.37 as root. Furthermore, what do you mean by "the same error". is it the same error as rameshoty's? This could be a different problem anyway so please open your own thread. |
Quote:
Thank you for your response I will start a new thread. John |
All times are GMT -5. The time now is 10:59 AM. |