devfs and proc is not monted when you chroot. i suggest to chroot without shell, then mont proc and devfs then run bash
Hi guys
I am playing around with my WL500gx - great toy, but I seem to have a small issue with chroot. I am running Oleg's 1.9.2.7-4 firmware, and get this everything I try to use chroot :
But as you can see, the dir DOES exits, and it is even a complete linux structure :-)Code:[root@utopia /]$ chroot /tmp/harddisk/debian /bin/bash chroot: cannot execute /bin/bash: Input/output error
Code:[root@utopia /]$ cd /tmp/harddisk/debian/ [root@utopia debian]$ ls bin boot dev etc home lib mnt proc root sbin sys tmp usr var
macsat
http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.
devfs and proc is not monted when you chroot. i suggest to chroot without shell, then mont proc and devfs then run bash
I must admit, I dont get it :-)
What do you mean "without shell" ?
...could be do a fast step4step ?
macsat
http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.
Your command work on my wlhdd. It might be something with your install.
As for my steps, I would try a simple
then a mount -t proc none /procCode:chroot /tmp/harddisk/debian
and mount -t devfs devfs /dev
then a /bin/bash
If you still get an errot, try removing the package and re add it.
Which package do you mean I should remove?
I believe chroot is part of busybox, so it is not really a package, it "comes with" the firmware...
Really strange...I still get :
damn annoying, since it kindda stops me from moving beoynd this point :-(Code:[root@utopia root]$ chroot /tmp/harddisk/debian chroot: cannot execute /bin/sh: Input/output error
Last edited by macsat; 27-04-2005 at 19:06.
macsat
http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.
Your debian tree has something wrong. Try to redo it completly on your PC.
Sounds like a reasonable idea...
Can it be done on other distros than a debian?
I made it on a debian install in Virtual PC, since I dont run debian myselves....
I run Fedora on my desktop PC....(The Virtual PC is run at my work computer, so cant access it right now - that is why I ask ;-) )
macsat
http://www.macsat.com - Tutorials and information on using ASUS WL-500G and family.