On 4/7/07, Joe Hart <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Matt Miller wrote:
> I've attached an external hard drive to my etch AMD64 box, and I want to
> build an etch i386 system on it. I partitioned the drive, and used
> debootstrap to lay down a minimal i386 system on the drive. The problem
> is that I want to chroot into that system to do some more stuff, but the
> chroot fails:
>
> [EMAIL PROTECTED]:~$ sudo chroot /mnt/debinst /bin/bash chroot: cannot run
> command `/bin/bash': Exec format error
>
> So, what's next? Don't I need to be able to get into that i386 system
> and install a kernel and do some other things? Can this type of cross-
> system build be done?
>
>
Maybe my newbieness is showing here, or I have true insight, don't know
which, but it looks to me as there is an extra space in there.
chroot /mnt/debinst/bin/bash. Does that not work?
The first arg to chroot is the directory you want to change root to.
That is /mnt/debinst here. The second arg is the program you want to
run in the chroot. That is /bin/bash. The space is correct and
needed.
--
Kushal
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]