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
 

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

reply to topic new topic new poll
Topic: hroot: cannot run command `/bin/bash': No such fil, hroot: cannot run command `/bin/bash':< Next Oldest | Next Newest >
new_user_lol Offline





Group: Members
Posts: 18
Joined: Mar. 2005
Posted: Sep. 01 2005,11:40 QUOTE

hey, i just coppyed my remastered dsl to a difrent computer and now when i chroot into it i get the following error, "chroot: cannot run command `/bin/bash': No such file or directory" the file is clearly there has anyone got any idears??
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 01 2005,14:45 QUOTE

The only idea i have is that you are chrooting to the wrong directory.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
new_user_lol Offline





Group: Members
Posts: 18
Joined: Mar. 2005
Posted: Sep. 02 2005,05:40 QUOTE

root@nick:/home/fester # chroot /new/new/source/
chroot: cannot run command `/bin/bash': No such file or directory
root@nick:/home/fester # cd /new/new/source/
.bash_profile     etc/              menu.sh           sbin/
.bash_profile~    floppy/           menu.sh~          sys/
.bash_profileold  home/             mnt/              tmp
bin/              knoppix/          none/             usr/
boot/             lib/              opt/              var/
cdrom/            menu              proc/
dev/              menu~             root/

seems fine to me
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 02 2005,14:11 QUOTE

I dunno what else to say, except maybe there's a weird thing with DSL's chroot or bash.  It does seem to be picky about using trailing slashes, so you might try that.  For instance, I've noticed that "ls directory" returns the directory itself, when "ls directory/" returns the contents.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
clivesay Offline





Group: Guests
Posts: 935
Joined: Dec. 2003
Posted: Sep. 02 2005,14:52 QUOTE

Make sure you have mounted the partition as root:

Code Sample
mount /dev/hda3 /mnt/hda3


Or whatever your HD partition's name is.

Chris
Back to top
Profile PM MSN YIM 
4 replies since Sep. 01 2005,11:40 < Next Oldest | Next Newest >

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

 
reply to topic new topic new poll
Quick Reply: hroot: cannot run command `/bin/bash': No such fil

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