Author Topic: Bash with OpenZaurus 3.3.5 and SL-5500 boot problem  (Read 2102 times)

Anonymous

  • Guest
Bash with OpenZaurus 3.3.5 and SL-5500 boot problem
« on: June 02, 2004, 09:15:52 am »
I installed Bash. After that i tried rebooting and now im prompted with a login box in the OpenZaurus terminal. If i try login with \'root\' or \'user\' it says:

\"cannot run /bin/sh: No such file or directory\"

I\'m not able to boot at all because of this. What can i do?

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Bash with OpenZaurus 3.3.5 and SL-5500 boot problem
« Reply #1 on: June 02, 2004, 09:31:33 am »
Let me guess... you did install it not on root?
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

bluey

  • Full Member
  • ***
  • Posts: 125
    • View Profile
    • http://
Bash with OpenZaurus 3.3.5 and SL-5500 boot problem
« Reply #2 on: June 02, 2004, 09:37:25 am »
Reflash the Z.

Did you installed bash to SD?

That could be a problem with the link /bin/sh -] /bin/bash not existing or /bin/bash not being found.

[EDIT] Which can happen if you installed bash to SD and while booting it isn\'t mounted yet, so your /bin/bash -] /mnt/card/bin/bash points to someplace which doesn\'t exist. [/EDIT]

Next time you install bash, make /bin/sh link to busybox like it should, and use /bin/bash in /etc/passwd as your shell. Since bash and busyboxs\' sh aren\'t always compatible and bash being used instead of sh can break some scripts.

You\'ll have to:

If you have the repositories configured:
# ipkg -V1 install bash -dest root
# cd /bin
delete the symlink from sh to bash
# rm -f sh
create a new one which points to busybox
# ln -s busybox sh
edit /etc/passwd and change /bin/sh to /bin/bash for root

bash needs libncurses, which has to be installed too.
SL-5500 - OZ 3.5.3
256Mb Kingston SD Card
64Mb PQI CF Card
Netgear MA701 WiFi CF Card
Mandriva GNU/Linux LE2005
Dreaming of a C model...