You are not logged in.

#1 2006-07-26 21:20:14

brucebertrand
Member
Registered: 2006-07-24
Posts: 52

chroot problem

Ok...I'm new to ArchLinux, so perhaps chroot works differently here.

I want to do a simple chroot bash shell.  This is what I get.

root@localhost# chroot /foo /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory

Of course /bin/bash exists and works just fine.
What's going on?

Thanks in advance.

Offline

#2 2006-07-26 22:34:03

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: chroot problem

You should mount first /dev and /proc after that you're ready to chroot.Have you did this?

Offline

#3 2006-07-26 22:46:09

brucebertrand
Member
Registered: 2006-07-24
Posts: 52

Re: chroot problem

Thanks,
I figured out what was wrong.  I hadn't copied over the required libraries to the chroot environment.

Offline

Board footer

Powered by FluxBB