Re: Oops no ash (:-()

From: Ross J. Reedstrom <reedstrm_at_rice.edu>
Date: Mon, 18 Jun 2001 10:20:26 -0500

Alban -

I did the exact same thing: after installing bash, and changing the
/bin/sh symlink, I uninstalled ash: poof goes the symlink!

The trick is to get to the boot> prompt via the serial console, and
launch a bash shell. The trick is to copy you existing linuxparams,
and replace 'init=/initrc' with 'init=/bin/bash'.

boot>set linuxargs "noinitrd root=/dev/mtdblock/3 init=/bin/bash console=ttySA0"

Don't write the params to flash: we'll only want to boot this way once!

boot>boot

[linux boot flashes by]

You'll see lots of complaints about not being able to find the modules:
you can ignore them.

Now, you've got a bash shell in place of init. so just:
#cd /bin
#ln -s bash sh
#sync
#sync
#sync

(and wait a minute or two: I'm not sure sync forces the bits into the flash)

#exit
kernel panic: init killed!

Or some such error. Reset via the reset button (bottom front right) and you
should be all set.

Ross

On Mon, Jun 18, 2001 at 03:55:52AM +0100, alban_at_mycroft.u-net.com wrote:
> I have inadvertantly deleted ash so when it boots i cannot login to
> the ipaq or get any display ....
> after a reboot
> os there any way to pass a parameter on boot to use bash (i had
> bash installed )
>
> or can i re install the familiar base image and preserve the /
> filesystem ????
> _______________________________________________
> Familiar mailing list
> Familiar_at_handhelds.org
> http://handhelds.org/mailman/listinfo/familiar
> irc://irc.openprojects.net #familiar
>
Received on Mon Jun 18 2001 - 08:18:43 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:12:27 EDT