Professional Web Applications Themes

Broken shell - I can't login at all - FreeBSD

On Tue, Feb 15, 2005 at 09:56:30AM -0500, epilogue wrote: > On Mon, 14 Feb 2005 20:57:28 -0800 > Jeff BSD <jeff.bsd> wrote: > > > Hi- > > I'm in the process of upgrading a 4.6 system to 5.3. When I boot the > > machine it gets to: <snip> > > ---- > > Enter full pathname of shell of RETURN for /bin/sh: > > pid # (sh), uid 0: exited on signal 12 > > init: bin/sh on /etc/rc terminated abnormally, going to single user > > mode > > Enter root password, or ^D to go ...

  1. #1

    Default Re: Broken shell - I can't login at all

    On Tue, Feb 15, 2005 at 09:56:30AM -0500, epilogue wrote:
    > On Mon, 14 Feb 2005 20:57:28 -0800
    > Jeff BSD <jeff.bsd> wrote:
    >
    > > Hi-
    > > I'm in the process of upgrading a 4.6 system to 5.3. When I boot the
    > > machine it gets to:
    <snip>
    > > ----
    > > Enter full pathname of shell of RETURN for /bin/sh:
    > > pid # (sh), uid 0: exited on signal 12
    > > init: bin/sh on /etc/rc terminated abnormally, going to single user
    > > mode
    > > Enter root password, or ^D to go multi-user
    > > Password:
    > > ----
    > >
    > > Round and round I go.
    > >
    > > Sounds like I broke /bin/sh to me. I've messed around in safe mode
    > > but I can't see how I can use it to possibly fix my problem, assuming
    > > I did do anything to /bin/sh (which I don't think I did -
    > > intentionally/directly that is).
    > >
    > > How do I fix it so I can boot it? A bit of the chicken and the egg,
    > > what?
    >
    > hello jeff,
    >
    > please see if it will accept /rescue/sh (the statically compiled rescue
    > binary)
    Or you could try entering a differnt shell altogether. tcsh and csh are
    both in /bin, but appear to be single file, hardlinked by those two
    names. In any case, one of those may well work. Personally, one of the
    first things I do with a new install is to add the bash port/package and
    then make a copy of the binary (/usr/local/bin/bash) in /bin. This way
    I can use the shell that is most familiar to me.

    Nathan

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.4 (GNU/Linux)

    iD8DBQFCElHvO0ZIEthSfkkRApqOAJwKwaMTOm9EnN0EnLmR43 z575dH1QCfV2S5
    XsGfPV4Zo2rPXaY90RHAf20=
    =mFP7
    -----END PGP SIGNATURE-----

    Nathan Kinkade Guest

  2. #2

    Default Re: Broken shell - I can't login at all

    On Tue, 15 Feb 2005 14:34:46 +0100, Ruben de Groot
    <rubenjail2.bzerk.org> wrote:
    >
    > Hi,
    >
    > On Mon, Feb 14, 2005 at 08:57:28PM -0800, Jeff BSD typed:
    > > Hi-
    > > I'm in the process of upgrading a 4.6 system to 5.3. When I boot the
    > > machine it gets to:
    >
    > How are you doing the upgrade? There are some specific steps about
    > upgrading from 4.x to 5.x all the way down in /usr/src/UPGRADING.
    > Also, I believe only upgrades from 4-STABLE are supported, so since
    > 4.6 is pretty old, you probably should upgrade in 2 steps: 4.6 ->
    > 4-STABLE followed by 4-STABLE -> 5.3 (This counts for source upgrades,
    > not binary upgrades)
    >
    > > ----
    > > init: bin/sh on /etc/rc terminated abnormally, going to single user
    > > mode
    > > Enter root password, or ^D to go multi-user
    > > Password:
    > > ----
    > >
    > > I enter the password, then:
    > >
    > > ----
    > > Enter full pathname of shell of RETURN for /bin/sh:
    > > pid # (sh), uid 0: exited on signal 12
    > > init: bin/sh on /etc/rc terminated abnormally, going to single user
    > > mode
    > > Enter root password, or ^D to go multi-user
    > > Password:
    > > ----
    > >
    > > Round and round I go.
    > >
    > > Sounds like I broke /bin/sh to me. I've messed around in safe mode
    > > but I can't see how I can use it to possibly fix my problem, assuming
    > > I did do anything to /bin/sh (which I don't think I did -
    > > intentionally/directly that is).
    > >
    > > How do I fix it so I can boot it? A bit of the chicken and the egg,
    > > what?
    >
    > Yes, it sounds like the easiest way for you would be to boot from a 5.3
    > installation CD and just do a binary upgrade. The problem is you now
    > have a mixed 4.6/5.3 system with out-of-sync binaries, libs and kernel
    > and there really isn't much fun in trying to troubleshoot that.
    >
    > If you want to continue down this road, there is a chance that you can at
    > least get a working shell by entering /rescue/sh on the above "Enter full
    > pathname of shell of RETURN for /bin/sh:" prompt. From there you can use
    > other tools from /rescue (if they were allready installed before your
    > system got hosed) to try and finish the installworld
    >
    > G'luck
    >
    > Ruben
    >
    >
    Thanks all-
    Turned out I was booting the wrong kernel (new kernels are in
    /boot/kernel/... duh!) Took me hours to figure that one out. As
    always, upgrading provides a unique learning experience. Your advice
    was useful and appreciated however.

    Jeff
    Jeff BSD Guest

Similar Threads

  1. Replies: 4
    Last Post: September 18th, 11:58 PM
  2. Problem with Login Feature By Login Wizard...Please Help
    By ifeanyii in forum Macromedia ColdFusion
    Replies: 0
    Last Post: April 29th, 03:18 PM
  3. Broken login issue
    By Defuse in forum Coldfusion - Getting Started
    Replies: 12
    Last Post: March 9th, 01:15 AM
  4. Replies: 1
    Last Post: November 24th, 08:24 PM
  5. Replies: 0
    Last Post: June 25th, 06:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139