Apps :: chroot : /bin/bash No such file?



having difficulty chrooting?

error is:

*****************
root&ttyp(0)[bin]: chroot /mnt/sda1/source/knoppix
chroot: /bin/bash: No such file or directory
****************

Appreciate help.
Trying to remaster......

I am not for sure but it may have something to do with the fact that dsl uses busybox instead of the gnu core utilities. (If someone could confirm/deny this I would appreciate it.) You could try installing the following extension to install the gnu core utilities from here:
http://distro.ibiblio.org/pub....m

make sure the partition has been mounted as root.

Code Sample
mount /dev/sda1 /mnt/sda1


If you have copied everything to 'source' then just chroot in

Code Sample
chroot source/


Good luck

Chris

My guess is that your source/knoppix directory was empty.

I use chroot for remastering.  Normally I'll create a /home/dsl/sources directory (because I have enough memory) and copy /KNOPPIX into it.  I become root with sudo su and then run the following script to create the directories:

Code Sample
#!/bin/bash
mkdir source
mkdir newcd
mkdir newcd/KNOPPIX
cp -Rp /cdrom/boot newcd
cp -Rp /cdrom/lost+found newcd
cp -p /cdrom/index.html newcd
cp -Rp /KNOPPIX source


Copy any files you need (dpkg.dsl or whatever) into the source/KNOPPIX directory so you can reach them after the chroot command.

Then (still as root) I'll run chroot /source/KNOPPIX and that works for me.  When you're done, type <CNTRL>D or type exit to exit the chroot.

Thanks so far.

However no luck.
Cant see gnu-utils on the web site listed

have mounted as root rw, no luck.

anyone else?

regards
Simon

Next Page...
original here.