Page 1 of 1
[SOLVED] Chroot fails
Posted: 17. Nov 2016, 02:35
by Atip
Untill not long ago I could use chroot. Now suddenly it fails
giving error
Code: Select all
]# chroot /hd
chroot: failed to run command '/bin/bash': Exec format error
Booted into Slackel and got same error.
I assume it has something to do with one of the latest upgrades,
of what file I wouldnot know..
Re: Chroot fails
Posted: 17. Nov 2016, 11:52
by gapan
What is inside that /hd directory? Are you sure it worked before? With the same directory? My guess is it never worked before and you are confused.
Re: Chroot fails
Posted: 22. Nov 2016, 02:36
by Atip
Have no Internet connection at the house at the moment.
Inside the /hd directory is the the entire directory
I want to chroot to.
Yes it worked before when I followed your instruction.
It does not work in Slackel.
It does work in SalixLive.
Re: Chroot fails
Posted: 22. Nov 2016, 08:49
by DidierSpaier
Two things to check:
1) Is there a file /hd/bin/bash?
2) Does the system in /hd have the same architecture (32-bit or 64-bit ) as the one from where you type the chroot command?
To check, compare the results of these commands:
Re: [SOLVED] Chroot fails
Posted: 24. Nov 2016, 03:18
by Atip
Thanks! That was the problem, the architecture. I forgot that
the directory I wanted to chroot is on 64-bit and mine on 32-bit.
Got my Internet back after one week w/o. Problem was at base station
something blew-up they said.
