Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (3) </ [1] 2 3 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: chroot : /bin/bash No such file?, Cannot chroot for some reason< Next Oldest | Next Newest >
aubads Offline





Group: Members
Posts: 11
Joined: Nov. 2005
Posted: Nov. 16 2005,10:55 QUOTE

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......
Back to top
Profile PM 
adssse Offline





Group: Members
Posts: 505
Joined: Mar. 2005
Posted: Nov. 16 2005,13:47 QUOTE

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
Back to top
Profile PM 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Nov. 16 2005,14:07 QUOTE

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
Back to top
Profile PM MSN YIM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Nov. 16 2005,14:19 QUOTE

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.
Back to top
Profile PM 
aubads Offline





Group: Members
Posts: 11
Joined: Nov. 2005
Posted: Nov. 16 2005,17:15 QUOTE

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
Back to top
Profile PM 
10 replies since Nov. 16 2005,10:55 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (3) </ [1] 2 3 >/
reply to topic new topic new poll
Quick Reply: chroot : /bin/bash No such file?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code