Martin, On Monday 13 November 2006 03:51, Martin Mielke wrote: > Hi all, > > I'm getting that ugly error message: > > # chroot /disk2/mnt/sources > chroot: cannot run command `/bin/bash': No such file or directory
Once you've chroot'ed, you cannot see anything you could before because the "/" directory is the chroot directory. After that, all path name interpretation uses that root. If you want to run programs in chroot jails, then you need to replicate everything that will be needed to run the code in the jail. That includes binaries and any shared libraries they reference. And you cannot use symbolic links to create the files in the chroot jail, but you can use hard links providing the jail is on the same file system as the original files. > ... > > Any ideas on how to get rid of that error and make chroot work > properly? > > TIA, > Martin Randall Schulz --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
